Recent changes

Edit this page

Native InfluxDB exporter

KrakenD can expose detailed and extended metrics via the krakend-metrics). The krakend-influx component lets you send these extended KrakenD metrics to InfluxDB.

Notice that there are two different implementations of InfluxDB in KrakenD:

Which InfluxDB implementation should I choose?

The native implementation exports data from a collector that is tailor-made for KrakenD, and also richer in content and less abstract. On the other hand, the OpenCensus exporter for InfluxDB is more generalistic and abstract, but implements a collector with less data. For our Grafana dahsboard, choose this one.

InfluxDB configuration

Pushing data to InfluxDB requires adding two different configuration pieces:

  • Enabling the extended metrics (collecting the information)
  • Enabling InfluxDB (pushing the data)

You can accomplish it with the following snippet.

{
  "version": 2,
  "extra_config": {
    "github_com/letgoapp/krakend-influx":{
        "address":"http://192.168.99.9:8086",
        "ttl":"25s",
        "buffer_size":0
    },
    "github_com/devopsfaith/krakend-metrics": {
      "collection_time": "30s",
      "listen_address": "127.0.0.1:8090"
    }
  }
}
  • address (string): The complete url of the influxdb including the port if different from defaults in http/https
  • ttl (duration): Expressed as (e.g: 30s,1m). See accepted values.
  • buffer_size (integer): Use 0 to send events immediately or the number of points that should be sent together.

Now you are ready to publish a Grafana.

Unresolved issues?

The documentation is only a piece of the help you can get! Whether you are looking for Open Source or Enterprise support, see more support channels that can help you.