-
Notifications
You must be signed in to change notification settings - Fork 538
Expand file tree
/
Copy pathargs.go
More file actions
64 lines (58 loc) · 2.89 KB
/
args.go
File metadata and controls
64 lines (58 loc) · 2.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package ebpf
import (
"time"
"github.com/grafana/alloy/internal/component/discovery"
"github.com/grafana/alloy/internal/component/pyroscope"
)
type Arguments struct {
ForwardTo []pyroscope.Appendable `alloy:"forward_to,attr"`
Targets []discovery.Target `alloy:"targets,attr,optional"`
CollectInterval time.Duration `alloy:"collect_interval,attr,optional"`
SampleRate int `alloy:"sample_rate,attr,optional"`
PythonEnabled bool `alloy:"python_enabled,attr,optional"`
PerlEnabled bool `alloy:"perl_enabled,attr,optional"`
PHPEnabled bool `alloy:"php_enabled,attr,optional"`
HotspotEnabled bool `alloy:"hotspot_enabled,attr,optional"`
RubyEnabled bool `alloy:"ruby_enabled,attr,optional"`
V8Enabled bool `alloy:"v8_enabled,attr,optional"`
DotNetEnabled bool `alloy:"dotnet_enabled,attr,optional"`
GoEnabled bool `alloy:"go_enabled,attr,optional"`
Demangle string `alloy:"demangle,attr,optional"`
OffCPUThreshold float64 `alloy:"off_cpu_threshold,attr,optional"`
LoadProbe bool `alloy:"load_probe,attr,optional"`
UProbeLinks []string `alloy:"u_probe_links,attr,optional"`
VerboseMode bool `alloy:"verbose_mode,attr,optional"`
LazyMode bool `alloy:"lazy_mode,attr,optional"`
DeprecatedArguments DeprecatedArguments `alloy:",squash"`
// undocumented
PyroscopeDynamicProfilingPolicy bool `alloy:"targets_only,attr,optional"`
SymbCachePath string `alloy:"symb_cache_path,attr,optional"`
SymbCacheSizeEntries int `alloy:"symb_cache_size,attr,optional"`
ReporterUnsymbolizedStubs bool `alloy:"reporter_unsymbolized_stubs,attr,optional"`
}
type DeprecatedArguments struct {
// deprecated
PidCacheSize int `alloy:"pid_cache_size,attr,optional"`
// deprecated
BuildIDCacheSize int `alloy:"build_id_cache_size,attr,optional"`
// deprecated
SameFileCacheSize int `alloy:"same_file_cache_size,attr,optional"`
// deprecated
CacheRounds int `alloy:"cache_rounds,attr,optional"`
// deprecated
GoTableFallback bool `alloy:"go_table_fallback,attr,optional"`
// deprecated
SymbolsMapSize int `alloy:"symbols_map_size,attr,optional"`
// deprecated
PIDMapSize int `alloy:"pid_map_size,attr,optional"`
// deprecated
CollectUserProfile bool `alloy:"collect_user_profile,attr,optional"`
// deprecated
CollectKernelProfile bool `alloy:"collect_kernel_profile,attr,optional"`
// deprecated
ContainerIDCacheSize uint32 `alloy:"container_id_cache_size,attr,optional"`
}
// Validate implements syntax.Validator.
func (args *Arguments) Validate() error {
return nil
}