Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectorConfig ¶
type CollectorConfig struct {
SelfTelemetry *SelfTelemetryConfig `json:"self_telemetry" yaml:"self_telemetry"`
Monitors []*MonitorConfig `json:"monitors" yaml:"monitors"`
}
type GlobalSamplingConfig ¶
type GlobalSamplingConfig struct {
Allocs *SamplerConfig `json:"allocs" yaml:"allocs"`
Block *SamplerConfig `json:"block" yaml:"block"`
Goroutine *SamplerConfig `json:"goroutine" yaml:"goroutine"`
Heap *SamplerConfig `json:"heap" yaml:"heap"`
Mutex *SamplerConfig `json:"mutex" yaml:"mutex"`
Profile *SamplerConfig `json:"profile" yaml:"profile"`
ThreadCrate *SamplerConfig `json:"threadcreate" yaml:"threadcreate"`
Trace *SamplerConfig `json:"trace" yaml:"trace"`
// TODO : unused fields
Compression string
}
func (*GlobalSamplingConfig) DeepCopyInto ¶
func (g *GlobalSamplingConfig) DeepCopyInto(out *GlobalSamplingConfig)
FIXME: didn't check this is fully working as expected
type MonitorConfig ¶
type MonitorConfig struct {
// Name starting with `__“ are reserved for internal monitors
Name string `json:"name" yaml:"name"`
Endpoint string `json:"endpoint" yaml:"endpoint"`
Labels map[string]string `json:"labels" yaml:"labels"`
GlobalSampling GlobalSamplingConfig `json:"sampling" yaml:"sampling"`
}
type SamplerConfig ¶
type SamplerConfig struct {
Seconds int `json:"seconds" yaml:"seconds"`
}
type SelfTelemetryConfig ¶
Click to show internal directories.
Click to hide internal directories.