Document updated on Sep 28, 2022
The preconfigured 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:
These are the different Grafana data sources you can use for our dashboards:
Datasource | Description | Cloud ID | Source |
---|---|---|---|
InfluxDB v2.x | Latest. Uses Flux queries | 17074 | for-influxdb-v2.json |
InfluxDB v1.x | Uses InfluxQL queries | 15029 | for-influxdb-v1.json |
To import them, there are several options, being the most common:
+
icon in the side menu, and then click Import. Choose import via Grafana.com and use the IDs above.volumes:
- "./grafana/datasources/all.yml:/etc/grafana/provisioning/datasources/all.yml"
- "./grafana/dashboards/all.yml:/etc/grafana/provisioning/dashboards/all.yml"
- "./grafana/krakend:/var/lib/grafana/dashboards/krakend"
You can see an example integrated on KrakenD Playground’s Docker compose file.
Grafana does not require any specific configuration on KrakenD, but its data source does.
For the data sources listed above, you will need to add the InfluxDb exporterinto your krakend.json
, which is a configuration like this:
{
"version": 3,
"extra_config": {
"telemetry/influx": {
"address": "http://localhost:8086",
"ttl": "25s",
"buffer_size": 100,
"db": "krakend_db",
"username": "user",
"password": "password"
},
"telemetry/metrics": {
"collection_time": "30s",
"listen_address": "127.0.0.1:8090"
}
}
}
For more in-depth explanation, see the InfluxDB exporter configuration
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.