API Gateway Community v1.3

Older version: v1.3

Released on February 24, 2021

Document updated on

Exporting metrics and events to InfluxDB

InfluxDB is a time series database designed to handle high write and query loads.

The Opencensus exporter allows you export data to InfluxDB for monitoring metrics and events. Enabling it only requires you to add the influxdb exporter in the opencensus module.

The following configuration snippet sends data to your InfluxDB:

"github_com/devopsfaith/krakend-opencensus": {
  "exporters": {
    "influxdb": {
        "address": "http://192.168.99.100:8086",
        "db": "krakend",
        "timeout": "1s",
        "username": "your-influxdb-user",
        "password": "your-influxdb-password"
    }
  }
}
  • address is the URL (including port) where your InfluxDB is installed.
  • db is the database name.
  • timeout is the maximum time you will wait for InfluxDB to respond.
  • username and password are optional and used to authenticate against InfluxDB.

See also the additional settings of the Opencensus module that can be declared.