3.2 KiB
3.2 KiB
InfluxDB v2
To enable the InfluxDB2:
metrics:
influxDB2: {}
[metrics]
[metrics.influxDB2]
--metrics.influxdb2=true
address
Required, Default="http://localhost:8086"
Address of the InfluxDB v2 instance.
metrics:
influxDB2:
address: http://localhost:8086
[metrics]
[metrics.influxDB2]
address = "http://localhost:8086"
--metrics.influxdb2.address=http://localhost:8086
token
Required, Default=""
Token with which to connect to InfluxDB v2.
metrics:
influxDB2:
token: secret
[metrics]
[metrics.influxDB2]
token = "secret"
--metrics.influxdb2.token=secret
org
Required, Default=""
Organisation where metrics will be stored.
metrics:
influxDB2:
org: my-org
[metrics]
[metrics.influxDB2]
org = "my-org"
--metrics.influxdb2.org=my-org
bucket
Required, Default=""
Bucket where metrics will be stored.
metrics:
influxDB2:
bucket: my-bucket
[metrics]
[metrics.influxDB2]
bucket = "my-bucket"
--metrics.influxdb2.bucket=my-bucket
addEntryPointsLabels
Optional, Default=true
Enable metrics on entry points.
metrics:
influxDB2:
addEntryPointsLabels: true
[metrics]
[metrics.influxDB2]
addEntryPointsLabels = true
--metrics.influxdb2.addEntryPointsLabels=true
addRoutersLabels
Optional, Default=false
Enable metrics on routers.
metrics:
influxDB2:
addRoutersLabels: true
[metrics]
[metrics.influxDB2]
addRoutersLabels = true
--metrics.influxdb2.addrouterslabels=true
addServicesLabels
Optional, Default=true
Enable metrics on services.
metrics:
influxDB2:
addServicesLabels: true
[metrics]
[metrics.influxDB2]
addServicesLabels = true
--metrics.influxdb2.addServicesLabels=true
pushInterval
Optional, Default=10s
The interval used by the exporter to push metrics to InfluxDB server.
metrics:
influxDB2:
pushInterval: 10s
[metrics]
[metrics.influxDB2]
pushInterval = "10s"
--metrics.influxdb2.pushInterval=10s
additionalLabels
Optional, Default={}
Additional labels (InfluxDB tags) on all metrics.
metrics:
influxDB2:
additionalLabels:
host: example.com
environment: production
[metrics]
[metrics.influxDB2]
[metrics.influxDB2.additionalLabels]
host = "example.com"
environment = "production"
--metrics.influxdb2.additionallabels.host=example.com --metrics.influxdb2.additionallabels.environment=production