Documentation ¶
Overview ¶
Package influx enables writing metric values to influxdb.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { // The influxdb endpoint. Required. HostAndPort string `yaml:"hostAndPort"` // The user name. Optional. UserName string `yaml:"username"` // The password. Optional. Password string `yaml:"password"` // The database name. Required. Database string `yaml:"database"` // The precision. Optional. Defaults to "ns" Precision string `yaml:"precision"` // The retention policy to use when writing. Optional. RetentionPolicy string `yaml:"retentionPolicy"` // The write consistency. Optional. "any", "one", "quorum", or "all" WriteConsistency string `yaml:"writeConsistency"` }
Config represents the configuration of influx db. Config implements yamlutil.Config
func (*Config) UnmarshalYAML ¶
Click to show internal directories.
Click to hide internal directories.