Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{ Metrics: metrics.DefaultConfig, Integrations: integrations.DefaultManagerConfig, EnableEndpoint: false, }
DefaultConfig holds default settings for all the subsystems.
Functions ¶
func CheckSecret ¶ added in v0.20.1
CheckSecret is a helper function to ensure the original value is overwritten with <secret>
Types ¶
type Config ¶
type Config struct {
Server server.Config `yaml:"server,omitempty"`
Metrics metrics.Config `yaml:"metrics,omitempty"`
Integrations integrations.ManagerConfig `yaml:"integrations,omitempty"`
Traces traces.Config `yaml:"traces,omitempty"`
Logs *logs.Config `yaml:"logs,omitempty"`
// We support a secondary server just for the /-/reload endpoint, since
// invoking /-/reload against the primary server can cause the server
// to restart.
ReloadAddress string `yaml:"-"`
ReloadPort int `yaml:"-"`
// Deprecated fields user has used. Generated during UnmarshalYAML.
Deprecations []string `yaml:"-"`
// Toggle for config endpoint(s)
EnableEndpoint bool `yaml:"-"`
}
Config contains underlying configurations for the agent
func Load ¶
Load loads a config file from a flagset. Flags will be registered to the flagset before parsing them with the values specified by args.
func (*Config) ApplyDefaults ¶
ApplyDefaults sets default values in the config
func (*Config) LogDeprecations ¶ added in v0.19.0
LogDeprecations will log use of any deprecated fields to l as warn-level messages.
func (Config) MarshalYAML ¶ added in v0.20.1
MarshalYAML implements yaml.Marshaler.
func (*Config) RegisterFlags ¶
RegisterFlags registers flags in underlying configs
func (*Config) UnmarshalYAML ¶ added in v0.14.0
UnmarshalYAML implements yaml.Unmarshaler.
Click to show internal directories.
Click to hide internal directories.