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 = "db"
  1. metrics:
  2. influxDB:
  3. database: "db"
  1. --metrics.influxdb.database=db

retentionPolicy

Optional, Default=""

InfluxDB retention policy used when protocol is http.

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

username

Optional, Default=""

InfluxDB username (only with http).

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

password

Optional, Default=""

InfluxDB password (only with http).

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

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