Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Arguments{ ListenUDP: statsd_exporter.DefaultConfig.ListenUDP, ListenTCP: statsd_exporter.DefaultConfig.ListenTCP, UnixSocketMode: statsd_exporter.DefaultConfig.UnixSocketMode, CacheSize: statsd_exporter.DefaultConfig.CacheSize, CacheType: statsd_exporter.DefaultConfig.CacheType, EventQueueSize: statsd_exporter.DefaultConfig.EventQueueSize, EventFlushThreshold: statsd_exporter.DefaultConfig.EventFlushThreshold, EventFlushInterval: statsd_exporter.DefaultConfig.EventFlushInterval, ParseDogStatsd: statsd_exporter.DefaultConfig.ParseDogStatsd, ParseInfluxDB: statsd_exporter.DefaultConfig.ParseInfluxDB, ParseLibrato: statsd_exporter.DefaultConfig.ParseLibrato, ParseSignalFX: statsd_exporter.DefaultConfig.ParseSignalFX, }
DefaultConfig holds non-zero default options for the Config when it is unmarshaled from YAML.
Some defaults are populated from init functions in the github.com/grafana/agent/pkg/integrations/statsd_exporter package.
Functions ¶
This section is empty.
Types ¶
type Arguments ¶
type Arguments struct { ListenUDP string `river:"listen_udp,attr,optional"` ListenTCP string `river:"listen_tcp,attr,optional"` ListenUnixgram string `river:"listen_unixgram,attr,optional"` UnixSocketMode string `river:"unix_socket_mode,attr,optional"` MappingConfig string `river:"mapping_config_path,attr,optional"` ReadBuffer int `river:"read_buffer,attr,optional"` CacheSize int `river:"cache_size,attr,optional"` CacheType string `river:"cache_type,attr,optional"` EventQueueSize int `river:"event_queue_size,attr,optional"` EventFlushThreshold int `river:"event_flush_threshold,attr,optional"` EventFlushInterval time.Duration `river:"event_flush_interval,attr,optional"` ParseDogStatsd bool `river:"parse_dogstatsd_tags,attr,optional"` ParseInfluxDB bool `river:"parse_influxdb_tags,attr,optional"` ParseLibrato bool `river:"parse_librato_tags,attr,optional"` ParseSignalFX bool `river:"parse_signalfx_tags,attr,optional"` }
func (*Arguments) Convert ¶
func (c *Arguments) Convert() (*statsd_exporter.Config, error)
Convert gives a config suitable for use with github.com/grafana/agent/pkg/integrations/statsd_exporter.
func (*Arguments) UnmarshalRiver ¶
UnmarshalRiver implements River unmarshalling for Config.
Click to show internal directories.
Click to hide internal directories.