Document updated on Nov 17, 2020
Since | v0.5 |
---|---|
Namespace | github_com/letgoapp/krakend-influx github_com/devopsfaith/krakend-metrics |
Scope | service |
Source | https://grafana.com/dashboards/5722 |
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:
Add the following configuration to your krakend.json
at the root level:
{
"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"
}
}
}
For more details of this configuration see the InfluxDb exporter
Then, import our Grafana dashboard for Krakend.
To import the dashboard: From the Grafana UI, click the + icon in the side menu, and then click Import. Choose import via Grafana.com and use the ID 5722
.
After adding your configuration to KrakenD, to test the configuration locally with Docker, you will need to:
$docker run -p 8086:8086 \
-e INFLUXDB_DB=krakend \
-e INFLUXDB_USER=letgo -e INFLUXDB_USER_PASSWORD=pas5w0rd \
-e INFLUXDB_ADMIN_USER=admin -e INFLUXDB_ADMIN_PASSWORD=supersecretpassword \
-it --name=influx \
influxdb
$docker exec -it influx influx
$docker run \
-d \
-p 3000:3000 \
--name=grafana \
grafana/grafana
Go to the browser and open http://localhost:3000. Use admin
for both user and password
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:
http://localhost:8086
Browser
krakend
supersecretpassword
GET
5722
and click on Load. The Dashboard will be ready for you!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.