config

package
v0.1.0-pre-alpha.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

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

type SelfTelemetryConfig struct {
	PprofPort       int `json:"pprof_port" yaml:"pprof_port"`
	IntervalSeconds int `json:"interval_seconds" yaml:"interval_seconds"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL