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