{"id":3192,"date":"2019-06-02T18:05:55","date_gmt":"2019-06-02T15:05:55","guid":{"rendered":"https:\/\/kifarunix.com\/?p=3192"},"modified":"2021-04-04T09:51:57","modified_gmt":"2021-04-04T06:51:57","slug":"integrate-prometheus-with-grafana-for-monitoring","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/integrate-prometheus-with-grafana-for-monitoring\/","title":{"rendered":"Integrate Prometheus with Grafana for Monitoring"},"content":{"rendered":"\n<p>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.<\/p>\n\n\n\n<p>In our previous guides, we have covered;<\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-prometheus-on-ubuntu-18-04\/\" target=\"_blank\">Install Prometheus on Ubuntu 18.04<\/a><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/monitor-linux-system-metrics-with-prometheus-node-exporter\/\" target=\"_blank\">Monitor Linux System Metrics with Prometheus Node Exporter<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"integrate-prometheus-grafana\"><a href=\"#integrate-prometheus-grafana\" class=\"rank-math-link\">Integrate Prometheus with Grafana for Monitoring<\/a><\/h2>\n\n\n\n<p>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.<\/p>\n\n\n\n<p>You can install Grafana on Fedora\/Ubuntu\/Debian servers by following the links below;<\/p>\n\n\n\n<p><a aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\" href=\"https:\/\/kifarunix.com\/install-grafana-6-2-x-on-ubuntu-18-04-debian-9\/\" target=\"_blank\" class=\"rank-math-link\">Install Grafana 6.2.x on Ubuntu 18.04\/Debian 9<\/a><\/p>\n\n\n\n<p><a aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\" href=\"https:\/\/kifarunix.com\/install-grafana-6-2-x-on-ubuntu-18-04-debian-9\/\" target=\"_blank\" class=\"rank-math-link\">Install Grafana Monitoring Tool on Fedora <\/a><a aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\" href=\"https:\/\/kifarunix.com\/install-grafana-monitoring-tool-on-fedora-29\/\" target=\"_blank\" class=\"rank-math-link\">29<\/a><\/p>\n\n\n\n<p><a aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\" href=\"https:\/\/kifarunix.com\/install-grafana-monitoring-tool-on-fedora-29\/\" target=\"_blank\" class=\"rank-math-link\">Install Grafana Metrics Monitoring Tool on Debian 9<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"add-grafana-prometheus-data-source\"><a href=\"#add-grafana-prometheus-data-source\" class=\"rank-math-link\">Add Grafana Prometheus Data Source<\/a><\/h3>\n\n\n\n<p>Once your Grafana and Prometheus servers are up and running, login to your Grafana and add the Prometheus data source by navigating to <strong>Configuration<\/strong> &gt; <strong>Datasources<\/strong> &gt; <strong>Add data source<\/strong>.<\/p>\n\n\n\n<p>From the data source types, select Prometheus. This opens up Prometheus datasource configuration page.<\/p>\n\n\n\n<p>Enter the Prometheus server URL. If you are running Grafana and Prometheus on the same server, use the address <strong>http:\/\/localhost:9090<\/strong> otherwise, use the address <strong>http:\/\/&lt;prometheus-server-IP&gt;:9090<\/strong>.<\/p>\n\n\n\n<p>After that, click <strong>Save &amp; Test<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1359\" height=\"648\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/05\/Grafana_Prometheus_datasource.png\" alt=\"integrate Prometheus with Grafana: Add Grafana Prometheus datasource\" class=\"wp-image-3193\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/05\/Grafana_Prometheus_datasource.png 1359w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/05\/Grafana_Prometheus_datasource-768x366.png 768w\" sizes=\"(max-width: 1359px) 100vw, 1359px\" \/><\/figure>\n\n\n\n<p>Next, you can now create your own dashboards for data visualization or import any that has been created by the community from the <a rel=\"noreferrer noopener\" aria-label=\"Grafana Dashboards (opens in a new tab)\" href=\"https:\/\/grafana.com\/dashboards\" target=\"_blank\">Grafana Dashboards<\/a>. For example, the dashboard, <em><a rel=\"noreferrer noopener\" aria-label=\"Grafana-Prometheus-Node_Exporter_Host_Metrics_Dashboard (opens in a new tab)\" href=\"https:\/\/grafana.com\/dashboards\/10283\" target=\"_blank\">Grafana-Prometheus-Node_Exporter_Host_Metrics_Dashboard<\/a><\/em>, 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;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/06\/Grafana-Prometheus-dashboard.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1340\" height=\"593\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/06\/Grafana-Prometheus-dashboard.png\" alt=\"integrate Prometheus with Grafana for Monitoring\" class=\"wp-image-3208\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/06\/Grafana-Prometheus-dashboard.png 1340w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/06\/Grafana-Prometheus-dashboard-768x340.png 768w\" sizes=\"(max-width: 1340px) 100vw, 1340px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/06\/Grafana-prometheus-memory-disk-io.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1282\" height=\"389\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/06\/Grafana-prometheus-memory-disk-io.png\" alt=\"integrate Prometheus with Grafana for Monitoring: Memory Disk IO\" class=\"wp-image-3209\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/06\/Grafana-prometheus-memory-disk-io.png 1282w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/06\/Grafana-prometheus-memory-disk-io-768x233.png 768w\" sizes=\"(max-width: 1282px) 100vw, 1282px\" \/><\/a><\/figure>\n\n\n\n<p>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.<\/p>\n\n\n\n<p>Other Tutorials;<\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/integrate-prometheus-with-grafana-for-monitoring\/\" target=\"_blank\" rel=\"noreferrer noopener\">Integrate Prometheus with Grafana for Monitoring<\/a><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/kifarunix.com\/monitor-linux-system-metrics-with-prometheus-node-exporter\/\" target=\"_blank\">Monitor Linux System Metrics with Prometheus Node Exporter<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/monitoring-gitlab-metrics-with-prometheus-and-grafana\/\" target=\"_blank\" rel=\"noreferrer noopener\">Monitoring Gitlab Metrics with Prometheus and Grafana<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/monitor-openvpn-connections-with-prometheus-and-grafana\/\" target=\"_blank\" rel=\"noreferrer noopener\">Monitor OpenVPN Connections with Prometheus and Grafana<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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,<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[301,121,72,969,294],"tags":[302,968,295],"class_list":["post-3192","post","type-post","status-publish","format-standard","hentry","category-grafana","category-howtos","category-monitoring","category-node-exporter","category-prometheus","tag-grafana","tag-node-exporter","tag-prometheus","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/3192"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=3192"}],"version-history":[{"count":6,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/3192\/revisions"}],"predecessor-version":[{"id":8564,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/3192\/revisions\/8564"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=3192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=3192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=3192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}