InfluxDB

To enable the InfluxDB:

File (YAML)

  1. metrics:
  2. influxDB: {}

File (TOML)

  1. [metrics]
  2. [metrics.influxDB]

CLI

  1. --metrics.influxdb=true

address

Required, Default=”localhost:8089”

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

File (YAML)

  1. metrics:
  2. influxDB:
  3. address: localhost:8089

File (TOML)

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

CLI

  1. --metrics.influxdb.address=localhost:8089

protocol

Required, Default=”udp”

InfluxDB’s address protocol (udp or http).

File (YAML)

  1. metrics:
  2. influxDB:
  3. protocol: udp

File (TOML)

  1. [metrics]
  2. [metrics.influxDB]
  3. protocol = "udp"

CLI

  1. --metrics.influxdb.protocol=udp

database

Optional, Default=””

InfluxDB database used when protocol is http.

File (YAML)

  1. metrics:
  2. influxDB:
  3. database: "db"

File (TOML)

  1. [metrics]
  2. [metrics.influxDB]
  3. database = "db"

CLI

  1. --metrics.influxdb.database=db

retentionPolicy

Optional, Default=””

InfluxDB retention policy used when protocol is http.

File (YAML)

  1. metrics:
  2. influxDB:
  3. retentionPolicy: "two_hours"

File (TOML)

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

CLI

  1. --metrics.influxdb.retentionPolicy=two_hours

username

Optional, Default=””

InfluxDB username (only with http).

File (YAML)

  1. metrics:
  2. influxDB:
  3. username: "john"

File (TOML)

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

CLI

  1. --metrics.influxdb.username=john

password

Optional, Default=””

InfluxDB password (only with http).

File (YAML)

  1. metrics:
  2. influxDB:
  3. password: "secret"

File (TOML)

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

CLI

  1. --metrics.influxdb.password=secret

addEntryPointsLabels

Optional, Default=true

Enable metrics on entry points.

File (YAML)

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

File (TOML)

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

CLI

  1. --metrics.influxdb.addEntryPointsLabels=true

AddRoutersLabels

Optional, Default=false

Enable metrics on routers.

File (TOML)

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

File (YAML)

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

CLI

  1. --metrics.influxdb.addrouterslabels=true

addServicesLabels

Optional, Default=true

Enable metrics on services.

File (YAML)

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

File (TOML)

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

CLI

  1. --metrics.influxdb.addServicesLabels=true

pushInterval

Optional, Default=10s

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

File (YAML)

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

File (TOML)

  1. [metrics]
  2. [metrics.influxDB]
  3. pushInterval = 10s

CLI

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