News Improving The Developer Experience of Your APIs

Enterprise Documentation

Recent changes

You are viewing a previous version of KrakenD Enterprise Edition (v1.3) , go to the latest version

Preconfigured Grafana dashboard

Document updated on Nov 17, 2020

The Grafana dashboard for KrakenD offers valuable information to understand the performance of your services and detect anomalies in the service.

The dashboard is extensive and offers you metrics like:

  • Requests from users to KrakenD
  • Requests from KrakenD to your backends
  • Response times
  • Memory usage and details
  • Endpoints and status codes
  • Heatmaps
  • Open connections
  • Throughput
  • Distributions, timers, garbage collection and a long etcetera

Configure Grafana

Add the following configuration to your krakend.json at the root level:

  "version": 2,
  "extra_config": {
    "github_com/devopsfaith/krakend-metrics": {
      "collection_time": "30s",
      "listen_address": ""

For more details of this configuration see the InfluxDb exporter

Then, import our Grafana dashboard for Krakend.

Importing the Grafana dashboard

To import the dashboard: From the Grafana UI, click the + icon in the side menu, and then click Import. Choose import via and use the ID 5722.

Local testing with Docker

After adding your configuration to KrakenD, to test the configuration locally with Docker, you will need to:

  1. Start an InfluxDB:
Start InfluxDB 
$docker run -p 8086:8086 \
	  -e INFLUXDB_DB=krakend \
	  -e INFLUXDB_ADMIN_USER=admin -e INFLUXDB_ADMIN_PASSWORD=supersecretpassword \
	  -it --name=influx \
  1. Open the CLI:
$docker exec -it influx influx
  1. Start Grafana:
$docker run \
  -d \
  -p 3000:3000 \
  --name=grafana \
  1. Go to the browser and open http://localhost:3000. Use admin for both user and password

  2. Find the button to add the Data Source in the home screen. Select InfluxDB as the database and fill the details you provided when starting influxdb:

  • URL: http://localhost:8086
  • Access: Browser
  • database: krakend
  • password: supersecretpassword
  • HTTP Method : GET
  1. Import the Dashboard via Type 5722 and click on Load. The Dashboard will be ready for you!

Grafana KrakenD Dashboard


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.