Documentation ¶
Index ¶
Constants ¶
View Source
const ( ValueModeAuto = "auto" ValueModeHttp = "http" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CounterConfig ¶
type CounterConfig struct { Prefix string `yaml: prefix` Number int `yaml: number,omitempty` Labels []LabelSetting `yaml: labels,omitempty` ValueMode ValueMode `yaml: valuemode,omitempty` }
type GaugeConfig ¶
type GaugeConfig struct { Prefix string `yaml: prefix` Number int `yaml: number,omitempty` Labels []LabelSetting `yaml: labels,omitempty` Range GaugeRange `yaml: range,omitempty` ValueMode ValueMode `yaml: valuemode,omitempty` }
type GaugeRange ¶
type GeneratorConfig ¶
type GeneratorConfig struct { Counters []*CounterConfig `yaml: counters,omitempty` Gauges []*GaugeConfig `yaml: gauges,omitempty` }
func ParseConfig ¶
func ParseConfig(file string) (*GeneratorConfig, error)
type LabelSetting ¶
Click to show internal directories.
Click to hide internal directories.