Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
GlobalConfig GlobalConfig `yaml:"global"`
MeasurementsConfig []*MeasurementConfig `yaml:"measurements,omitempty"`
}
func (*Config) UnmarshalYAML ¶
UnmarshalYAML implements the yaml.Unmarshaler interface.
type GlobalConfig ¶
type GlobalConfig struct {
MeasurementsWhitelist []string `yaml:"measurements_whitelist,omitempty"`
TagsWhitelist []string `yaml:"tags_whitelist,omitempty"`
}
GlobalConfig configures values that are used across other configuration objects.
func (*GlobalConfig) UnmarshalYAML ¶
func (c *GlobalConfig) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements the yaml.Unmarshaler interface.
type MeasurementConfig ¶
type MeasurementConfig struct {
Name string `yaml:"name"`
Tags []string `yaml:"tags,omitempty"`
Database string `yaml:"database,omitempty"`
Fields []string `yaml:"fields,omitempty"`
DropLabels []string `yaml:"drop_labels,omitempty"`
}
func (*MeasurementConfig) UnmarshalYAML ¶
func (c *MeasurementConfig) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements the yaml.Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.