Skip to main content

Grafana Integration with Prometheus

https://grafana.com/docs/grafana/latest/introduction/

It's also possible to create panels using Prometheus's own GUI using the GO language. However, Prometheus itself suggests using Grafana for this service. Grafana is even part of the CNCF.

Grafana allows you to query, visualize, alert on, and explore your metrics, logs, and traces wherever they are stored. Grafana provides tools to turn your time series database (TSDB) data into graphs.

After installing Grafana and setting up your first panel using the instructions in Getting Started with Grafana, you will have many options to choose from, depending on your requirements. If you are an enterprise administrator managing Grafana for multiple teams, you can configure provisioning and authentication. Grafana can also generate alerts if Prometheus's AlertManager is not used. It's a matter of choice.

Grafana Labs has other projects besides regular Grafana that we will study. It should be understood that Grafana is a visualizer and the projects below serve as data sources for it, once installed. Besides graphs, Grafana can provide other visualizations.

  • Grafana Loki: Grafana Loki is a set of open-source components used for logging.
    • Logs are events that happen in the system or infrastructure that are recorded in textual form. They mainly serve to debug the application and identify the source of problems.
  • Grafana Tempo: Grafana Tempo is an open-source, easy-to-use, high-volume distributed tracing backend. For more information, see the Grafana Tempo documentation.
  • Grafana Mimir: Grafana Mimir is an open-source software project that provides scalable long-term storage for Prometheus. For more information about Grafana Mimir, see the Grafana Mimir documentation.

Grafana installation

During the Prometheus installation for Kubernetes, the Helm used already installs Grafana in Kubernetes. But an exclusive study of Grafana can be found in the repository https://gitlab.com/davidpuziol/study-grafana. Continue your study in this repository.