Since | v0.5 |
---|---|
Namespace | telemetry/influx telemetry/metrics |
Log prefix | [SERVICE: InfluxDB] |
Scope | service |
Source | devopsfaith/krakend-influx |
KrakenD can expose very detailed metrics to provide a monitoring dashboard. One of the richest monitoring solutions at the metrics level is the combination of krakend-metrics with the native krakend-influx exporter. The two components let you send detailed metrics to InfluxDB and draw them later on our preconfigured Grafana dashboard can feed from here and provide you a useful.
Notice that there are two different implementations of InfluxDB in KrakenD:
Pushing data to InfluxDB requires adding two different configuration pieces:
You can accomplish it with the following snippet.
{
"version": 3,
"extra_config": {
"telemetry/influx":{
"address":"http://192.168.99.9:8086",
"ttl":"25s",
"buffer_size":0,
"db": "krakend",
"username": "your-influxdb-user",
"password": "your-influxdb-password"
},
"telemetry/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/httpsttl
(duration): Valid time units are: ns
(nanoseconds), us
or µs
(microseconds), ms
(milliseconds), s
(seconds), m
(minutes - don’t!), h
(hours - don’t!)buffer_size
(integer): Use 0
to send events immediately or set the number of points that should be sent together.db
(string): Name of the database, defaults to krakend.username
and password
are optional and used to authenticate against InfluxDB.Now you are ready to publish a Grafana dashboard.
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.
We use cookies to understand how you use our site and to improve your overall experience. By continuing to use our site, you accept our Privacy Policy. More information