InfluxDB
To enable the InfluxDB:
File (YAML)
metrics:
influxDB: {}
File (TOML)
[metrics]
[metrics.influxDB]
CLI
--metrics.influxdb=true
address
Required, Default=”localhost:8089”
Address instructs exporter to send metrics to influxdb at this address.
File (YAML)
metrics:
influxDB:
address: localhost:8089
File (TOML)
[metrics]
[metrics.influxDB]
address = "localhost:8089"
CLI
--metrics.influxdb.address=localhost:8089
protocol
Required, Default=”udp”
InfluxDB’s address protocol (udp or http).
File (YAML)
metrics:
influxDB:
protocol: udp
File (TOML)
[metrics]
[metrics.influxDB]
protocol = "udp"
CLI
--metrics.influxdb.protocol=udp
database
Optional, Default=””
InfluxDB database used when protocol is http.
File (YAML)
metrics:
influxDB:
database: "db"
File (TOML)
[metrics]
[metrics.influxDB]
database = "db"
CLI
--metrics.influxdb.database=db
retentionPolicy
Optional, Default=””
InfluxDB retention policy used when protocol is http.
File (YAML)
metrics:
influxDB:
retentionPolicy: "two_hours"
File (TOML)
[metrics]
[metrics.influxDB]
retentionPolicy = "two_hours"
CLI
--metrics.influxdb.retentionPolicy=two_hours
username
Optional, Default=””
InfluxDB username (only with http).
File (YAML)
metrics:
influxDB:
username: "john"
File (TOML)
[metrics]
[metrics.influxDB]
username = "john"
CLI
--metrics.influxdb.username=john
password
Optional, Default=””
InfluxDB password (only with http).
File (YAML)
metrics:
influxDB:
password: "secret"
File (TOML)
[metrics]
[metrics.influxDB]
password = "secret"
CLI
--metrics.influxdb.password=secret
addEntryPointsLabels
Optional, Default=true
Enable metrics on entry points.
File (YAML)
metrics:
influxDB:
addEntryPointsLabels: true
File (TOML)
[metrics]
[metrics.influxDB]
addEntryPointsLabels = true
CLI
--metrics.influxdb.addEntryPointsLabels=true
AddRoutersLabels
Optional, Default=false
Enable metrics on routers.
File (TOML)
[metrics]
[metrics.influxDB]
addRoutersLabels = true
File (YAML)
metrics:
influxDB:
addRoutersLabels: true
CLI
--metrics.influxdb.addrouterslabels=true
addServicesLabels
Optional, Default=true
Enable metrics on services.
File (YAML)
metrics:
influxDB:
addServicesLabels: true
File (TOML)
[metrics]
[metrics.influxDB]
addServicesLabels = true
CLI
--metrics.influxdb.addServicesLabels=true
pushInterval
Optional, Default=10s
The interval used by the exporter to push metrics to influxdb.
File (YAML)
metrics:
influxDB:
pushInterval: 10s
File (TOML)
[metrics]
[metrics.influxDB]
pushInterval = 10s
CLI
--metrics.influxdb.pushInterval=10s