InfluxDB v2¶
To enable the InfluxDB2:
metrics:
influxDB2: {}[metrics]
[metrics.influxDB2]--metrics.influxdb2=trueaddress¶
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:8086token¶
Required, Default=""
Token with which to connect to InfluxDB v2.
metrics:
influxDB2:
token: secret[metrics]
[metrics.influxDB2]
token = "secret"--metrics.influxdb2.token=secretorg¶
Required, Default=""
Organisation where metrics will be stored.
metrics:
influxDB2:
org: my-org[metrics]
[metrics.influxDB2]
org = "my-org"--metrics.influxdb2.org=my-orgbucket¶
Required, Default=""
Bucket where metrics will be stored.
metrics:
influxDB2:
bucket: my-bucket[metrics]
[metrics.influxDB2]
bucket = "my-bucket"--metrics.influxdb2.bucket=my-bucketaddEntryPointsLabels¶
Optional, Default=true
Enable metrics on entry points.
metrics:
influxDB2:
addEntryPointsLabels: true[metrics]
[metrics.influxDB2]
addEntryPointsLabels = true--metrics.influxdb2.addEntryPointsLabels=trueaddRoutersLabels¶
Optional, Default=false
Enable metrics on routers.
metrics:
influxDB2:
addRoutersLabels: true[metrics]
[metrics.influxDB2]
addRoutersLabels = true--metrics.influxdb2.addrouterslabels=trueaddServicesLabels¶
Optional, Default=true
Enable metrics on services.
metrics:
influxDB2:
addServicesLabels: true[metrics]
[metrics.influxDB2]
addServicesLabels = true--metrics.influxdb2.addServicesLabels=truepushInterval¶
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=10sadditionalLabels¶
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