Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InfluxDBPlugin ¶
type InfluxDBPlugin struct { Logger *logrus.Logger InfluxURL string HTTPClient *http.Client Statsd *statsd.Client }
InfluxDBPlugin is a plugin for emitting metrics to InfluxDB.
func NewInfluxDBPlugin ¶
func NewInfluxDBPlugin(logger *logrus.Logger, addr string, consistency string, db string, client *http.Client, stats *statsd.Client) *InfluxDBPlugin
NewInfluxDBPlugin creates a new Influx Plugin.
func (*InfluxDBPlugin) Flush ¶
func (p *InfluxDBPlugin) Flush(ctx context.Context, metrics []samplers.InterMetric) error
Flush sends a slice of metrics to InfluxDB
func (*InfluxDBPlugin) Name ¶
func (p *InfluxDBPlugin) Name() string
Name returns the name of the plugin.
Click to show internal directories.
Click to hide internal directories.