InfluxDB

To enable the InfluxDB:

  1. [metrics]
  2. [metrics.influxdb]
  1. metrics:
  2. influxdb: {}
  1. --metrics.influxdb=true

address

Required, Default="localhost:8089"

Address instructs exporter to send metrics to influxdb at this address.

  1. [metrics]
  2. [metrics.influxdb]
  3. address = "localhost:8089"
  1. metrics:
  2. influxdb:
  3. address: localhost:8089
  1. --metrics.influxdb.address="localhost:8089"

protocol

Required, Default="udp"

InfluxDB's address protocol (udp or http).

  1. [metrics]
  2. [metrics.influxdb]
  3. protocol = "udp"
  1. metrics:
  2. influxdb:
  3. protocol: udp
  1. --metrics.influxdb.protocol="udp"

database

Optional, Default=""

InfluxDB database used when protocol is http.

  1. [metrics]
  2. [metrics.influxdb]
  3. database = ""
  1. metrics:
  2. influxdb:
  3. database: ""
  1. --metrics.influxdb.database=""

retentionPolicy

Optional, Default=""

InfluxDB retention policy used when protocol is http.

  1. [metrics]
  2. [metrics.influxdb]
  3. retentionPolicy = ""
  1. metrics:
  2. influxdb:
  3. retentionPolicy: ""
  1. --metrics.influxdb.retentionPolicy=""

username

Optional, Default=""

InfluxDB username (only with http).

  1. [metrics]
  2. [metrics.influxdb]
  3. username = ""
  1. metrics:
  2. influxdb:
  3. username: ""
  1. --metrics.influxdb.username=""

password

Optional, Default=""

InfluxDB password (only with http).

  1. [metrics]
  2. [metrics.influxdb]
  3. password = ""
  1. metrics:
  2. influxdb:
  3. password: ""
  1. --metrics.influxdb.password=""

addEntryPointsLabels

Optional, Default=true

Enable metrics on entry points.

  1. [metrics]
  2. [metrics.influxdb]
  3. addEntryPointsLabels = true
  1. metrics:
  2. influxdb:
  3. addEntryPointsLabels: true
  1. --metrics.influxdb.addEntryPointsLabels=true

addServicesLabels

Optional, Default=true

Enable metrics on services.

  1. [metrics]
  2. [metrics.influxdb]
  3. addServicesLabels = true
  1. metrics:
  2. influxdb:
  3. addServicesLabels: true
  1. --metrics.influxdb.addServicesLabels=true

pushInterval

Optional, Default=10s

The interval used by the exporter to push metrics to influxdb.

  1. [metrics]
  2. [metrics.influxdb]
  3. pushInterval = 10s
  1. metrics:
  2. influxdb:
  3. pushInterval: 10s
  1. --metrics.influxdb.pushInterval=10s