InfluxDB v2

To enable the InfluxDB2:

File (YAML)

  1. metrics:
  2. influxDB2: {}

File (TOML)

  1. [metrics]
  2. [metrics.influxDB2]

CLI

  1. --metrics.influxdb2=true

address

Required, Default=”http://localhost:8086

Address of the InfluxDB v2 instance.

File (YAML)

  1. metrics:
  2. influxDB2:
  3. address: http://localhost:8086

File (TOML)

  1. [metrics]
  2. [metrics.influxDB2]
  3. address = "http://localhost:8086"

CLI

  1. --metrics.influxdb2.address=http://localhost:8086

token

Required, Default=””

Token with which to connect to InfluxDB v2.

File (YAML)

  1. metrics:
  2. influxDB2:
  3. token: secret

File (TOML)

  1. [metrics]
  2. [metrics.influxDB2]
  3. token = "secret"

CLI

  1. --metrics.influxdb2.token=secret

org

Required, Default=””

Organisation where metrics will be stored.

File (YAML)

  1. metrics:
  2. influxDB2:
  3. org: my-org

File (TOML)

  1. [metrics]
  2. [metrics.influxDB2]
  3. org = "my-org"

CLI

  1. --metrics.influxdb2.org=my-org

bucket

Required, Default=””

Bucket where metrics will be stored.

File (YAML)

  1. metrics:
  2. influxDB2:
  3. bucket: my-bucket

File (TOML)

  1. [metrics]
  2. [metrics.influxDB2]
  3. bucket = "my-bucket"

CLI

  1. --metrics.influxdb2.bucket=my-bucket

addEntryPointsLabels

Optional, Default=true

Enable metrics on entry points.

File (YAML)

  1. metrics:
  2. influxDB2:
  3. addEntryPointsLabels: true

File (TOML)

  1. [metrics]
  2. [metrics.influxDB2]
  3. addEntryPointsLabels = true

CLI

  1. --metrics.influxdb2.addEntryPointsLabels=true

addRoutersLabels

Optional, Default=false

Enable metrics on routers.

File (YAML)

  1. metrics:
  2. influxDB2:
  3. addRoutersLabels: true

File (TOML)

  1. [metrics]
  2. [metrics.influxDB2]
  3. addRoutersLabels = true

CLI

  1. --metrics.influxdb2.addrouterslabels=true

addServicesLabels

Optional, Default=true

Enable metrics on services.

File (YAML)

  1. metrics:
  2. influxDB2:
  3. addServicesLabels: true

File (TOML)

  1. [metrics]
  2. [metrics.influxDB2]
  3. addServicesLabels = true

CLI

  1. --metrics.influxdb2.addServicesLabels=true

pushInterval

Optional, Default=10s

The interval used by the exporter to push metrics to InfluxDB server.

File (YAML)

  1. metrics:
  2. influxDB2:
  3. pushInterval: 10s

File (TOML)

  1. [metrics]
  2. [metrics.influxDB2]
  3. pushInterval = "10s"

CLI

  1. --metrics.influxdb2.pushInterval=10s

additionalLabels

Optional, Default={}

Additional labels (InfluxDB tags) on all metrics.

File (YAML)

  1. metrics:
  2. influxDB2:
  3. additionalLabels:
  4. host: example.com
  5. environment: production

File (TOML)

  1. [metrics]
  2. [metrics.influxDB2]
  3. [metrics.influxDB2.additionalLabels]
  4. host = "example.com"
  5. environment = "production"

CLI

  1. --metrics.influxdb2.additionallabels.host=example.com --metrics.influxdb2.additionallabels.environment=production