InfluxDB

To enable the InfluxDB:

File (TOML)

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

File (YAML)

  1. metrics:
  2. influxDB: {}

CLI

  1. --metrics.influxdb=true

address

Required, Default=”localhost:8089”

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

File (TOML)

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

File (YAML)

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

CLI

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

protocol

Required, Default=”udp”

InfluxDB’s address protocol (udp or http).

File (TOML)

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

File (YAML)

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

CLI

  1. --metrics.influxdb.protocol=udp

database

Optional, Default=””

InfluxDB database used when protocol is http.

File (TOML)

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

File (YAML)

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

CLI

  1. --metrics.influxdb.database=db

retentionPolicy

Optional, Default=””

InfluxDB retention policy used when protocol is http.

File (TOML)

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

File (YAML)

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

CLI

  1. --metrics.influxdb.retentionPolicy=two_hours

username

Optional, Default=””

InfluxDB username (only with http).

File (TOML)

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

File (YAML)

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

CLI

  1. --metrics.influxdb.username=john

password

Optional, Default=””

InfluxDB password (only with http).

File (TOML)

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

File (YAML)

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

CLI

  1. --metrics.influxdb.password=secret

addEntryPointsLabels

Optional, Default=true

Enable metrics on entry points.

File (TOML)

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

File (YAML)

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

CLI

  1. --metrics.influxdb.addEntryPointsLabels=true

addServicesLabels

Optional, Default=true

Enable metrics on services.

File (TOML)

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

File (YAML)

  1. metrics:
  2. 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 (TOML)

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

File (YAML)

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

CLI

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