Integrating Prometheus, InfluxDB and Grafana
Posted on Wed 29 September 2021 in Kubernetes • Tagged with Kubernetes, Prometheus, Telegraf, InfluxDB, Grafana
I've got a Kubernetes cluster prepared to be be integrated with Prometheus,
i.e., all relevant information is exposed with /metrics
and scraped by a
Prometheus instance. I want to save the information long term and I've decided
that Influx DB is the best option for that. In addition, I want to create
dashboards using Grafana.
This would require moving the information from Prometheus to Influx DB.
According to
this,
for Influx DB v1, this would be accomplished by using directly remote writes in
Prometheus. However, Influx DB v2 doesn't allow this way of working. Instead,
Telegraf has to be inserted in the middle. Therefore, the whole pipeline would
be Prometheus 🠮 Telegraf 🠮 Influx DB 🠮 Grafana
.
I'm using EKS to deploy the cluster, but these instructions should work with any
other Kubernetes cluster. I'll only assume that kubectl
is already configured
to work with your cluster. We are going to deploy many services, so you may
require new nodes in your cluster.
Helm
We'are going to use Helm for installing all the components, so first we …
Continue reading