Integrate Prometheus with Grafana for Monitoring

|
Last Updated:
|
|

This guide will take you through how to integrate Prometheus with Grafana for Monitoring. As much as Prometheus can give you some excellent visualization graphs, Grafana is the best, easy to use metrics analytics and visualization tool.

In our previous guides, we have covered;

Install Prometheus on Ubuntu 18.04

Monitor Linux System Metrics with Prometheus Node Exporter

Integrate Prometheus with Grafana for Monitoring

Once you have setup Prometheus and have it scrape the metrics from different end points, you may want to integrate with Grafana for the most beautiful visualization dashboards.

You can install Grafana on Fedora/Ubuntu/Debian servers by following the links below;

Install Grafana 6.2.x on Ubuntu 18.04/Debian 9

Install Grafana Monitoring Tool on Fedora 29

Install Grafana Metrics Monitoring Tool on Debian 9

Add Grafana Prometheus Data Source

Once your Grafana and Prometheus servers are up and running, login to your Grafana and add the Prometheus data source by navigating to Configuration > Datasources > Add data source.

From the data source types, select Prometheus. This opens up Prometheus datasource configuration page.

Enter the Prometheus server URL. If you are running Grafana and Prometheus on the same server, use the address http://localhost:9090 otherwise, use the address http://<prometheus-server-IP>:9090.

After that, click Save & Test.

integrate Prometheus with Grafana: Add Grafana Prometheus datasource

Next, you can now create your own dashboards for data visualization or import any that has been created by the community from the Grafana Dashboards. For example, the dashboard, Grafana-Prometheus-Node_Exporter_Host_Metrics_Dashboard, has been imported and used in this demo and used to display the metrics collected using the Prometheus Node Exporter. The dashboard looks like in below;

integrate Prometheus with Grafana for Monitoring
integrate Prometheus with Grafana for Monitoring: Memory Disk IO

Well, that is all on how to integrate Prometheus with Grafana for Monitoring. Feel free to improve the dashboards above, or just create one that suits your needs. Enjoy.

Other Tutorials;

Integrate Prometheus with Grafana for Monitoring

Monitor Linux System Metrics with Prometheus Node Exporter

Monitoring Gitlab Metrics with Prometheus and Grafana

Monitor OpenVPN Connections with Prometheus and Grafana

SUPPORT US VIA A VIRTUAL CUP OF COFFEE

We're passionate about sharing our knowledge and experiences with you through our blog. If you appreciate our efforts, consider buying us a virtual coffee. Your support keeps us motivated and enables us to continually improve, ensuring that we can provide you with the best content possible. Thank you for being a coffee-fueled champion of our work!

Photo of author
koromicha
I am the Co-founder of Kifarunix.com, Linux and the whole FOSS enthusiast, Linux System Admin and a Blue Teamer who loves to share technological tips and hacks with others as a way of sharing knowledge as: "In vain have you acquired knowledge if you have not imparted it to others".

1 thought on “Integrate Prometheus with Grafana for Monitoring”

Leave a Comment