Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInflux ¶
func NewInflux(serviceName shared.ServiceName, config *InfluxConfig) (metrics.MetricsInterface, error)
Types ¶
type InfluxConfig ¶
type InfluxConfig struct {
Host string `config:"INFLUXDB_HOST" default:"localhost"`
Port int `config:"INFLUXDB_PORT" default:"8086"`
Token shared.Secret `config:"INFLUXDB_TOKEN"`
Organization string `config:"INFLUXDB_ORG"`
Bucket string `config:"INFLUXDB_BUCKET"`
}
func (*InfluxConfig) GetAddress ¶
func (c *InfluxConfig) GetAddress() string
Click to show internal directories.
Click to hide internal directories.