Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultBindAddress = ":25826" DefaultDatabase = "collectd" DefaultRetentionPolicy = "" DefaultBatchSize = 1000 DefaultBatchPending = 5 DefaultBatchDuration = toml.Duration(10 * time.Second) DefaultTypesDB = "/usr/share/collectd/types.db" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Enabled bool `toml:"enabled"` BindAddress string `toml:"bind-address"` Database string `toml:"database"` RetentionPolicy string `toml:"retention-policy"` BatchSize int `toml:"batch-size"` BatchPending int `toml:"batch-pending"` BatchDuration toml.Duration `toml:"batch-timeout"` TypesDB string `toml:"typesdb"` }
Config represents a configuration for the collectd service.
type Service ¶
type Service struct { Config *Config MetaStore metaStore PointsWriter pointsWriter Logger *log.Logger // contains filtered or unexported fields }
Service represents a UDP server which receives metrics in collectd's binary protocol and stores them in InfluxDB.
func NewService ¶
NewService returns a new instance of the collectd service.
Click to show internal directories.
Click to hide internal directories.