Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ListenAddress string `yaml:"listen_address"` MetricsPath string `yaml:"metrics_path"` Targets []*Target `yaml:"targets"` StringValueMapping map[string]map[string]int `yaml:"string_value_mapping"` Version string }
Config is the configuration of the prom-telemetry-gw
func (*Config) LoadDefaults ¶
func (c *Config) LoadDefaults()
LoadDefaults loads default settings for config c
type Path ¶
type Path struct { Path string `yaml:"path"` SuppressUnchanged *bool `yaml:"suppress_unchanged"` MaxSilentIntervalMS uint64 `yaml:"max_silent_interval_ms"` SampleFrequencyMS uint64 `yaml:"sample_frequency_ms"` }
Path represents a resource identifier, e.g. /junos/system/linecard/cpu/memory/ See https://www.juniper.net/documentation/en_US/junos/topics/reference/configuration-statement/sensor-edit-services-analytics.html for more examples.
Click to show internal directories.
Click to hide internal directories.