{"id":15063,"date":"2020-03-09T11:43:37","date_gmt":"2020-03-09T11:43:37","guid":{"rendered":"https:\/\/dbtut.com\/?p=15063"},"modified":"2020-03-09T14:50:09","modified_gmt":"2020-03-09T14:50:09","slug":"how-to-use-grafana-with-prometheus","status":"publish","type":"post","link":"https:\/\/dbtut.com\/index.php\/2020\/03\/09\/how-to-use-grafana-with-prometheus\/","title":{"rendered":"How To Use Grafana with Prometheus"},"content":{"rendered":"<p>In this article, we will build our own monitoring systems and build a structure to monitor all your systems on an open-source infrastructure. We will use grafana with prometheus.<\/p>\n<p>I will describe Prometheus(Time series database) and Grafana(a technology we will use for the dashboard) installation.<\/p>\n<p>We will perform our installations on Ubuntu 16.04.<\/p>\n<h3>Prometheus Installation<\/h3>\n<p>First, let&#8217;s perform the Prometheus installation.<\/p>\n<h4>Step1: Download Packages<\/h4>\n<p>In the first step, download additional packages that we will use on the server.<\/p>\n<pre class=\"lang:default decode:true \">apt install wget\napt install vim<\/pre>\n<h4>Step2: Download Prometheus<\/h4>\n<p>You can download the version you want at https:\/\/prometheus.io\/download\/ link. In our example, we will download Pre-Release version.<\/p>\n<p id=\"ZdsSfLO\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-15064 aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/02\/img_5e4a44786b693.png\" alt=\"\" width=\"801\" height=\"340\" \/><\/p>\n<pre class=\"lang:default decode:true  \">wget https:\/\/github.com\/prometheus\/prometheus\/releases\/download\/v2.16.0-rc.1\/prometheus-2.16.0-rc.1.linux-amd64.tar.gz<\/pre>\n<p>Extract downloaded file with the command below.<\/p>\n<pre class=\"lang:default decode:true \">tar xvzf prometheus-2.16.0-rc.1.linux-amd64.tar.gz<\/pre>\n<p>Go to the extracted directory.<\/p>\n<pre class=\"lang:default decode:true \">cd prometheus-2.16.0-rc.1.linux-amd64<\/pre>\n<p>We open the config file and make the changes below. (We configure our configuration file as we want.)<\/p>\n<pre class=\"lang:default decode:true \">vim prometheus.yml<\/pre>\n<p>We reduce the scrape_interval to 1 second in our example.<\/p>\n<pre class=\"lang:default decode:true \">global:\n  scrape_interval:     1s<\/pre>\n<p>We also edit static_configs and add 9091. We generally recommend that you write your IP here instead of localhost.<\/p>\n<pre class=\"lang:default decode:true \">static_configs:\n            - targets: ['localhost:9090', 'localhost:9091']\n<\/pre>\n<p>After editing the .yml file, let&#8217;s create our service file. For this we go to the path below.<\/p>\n<pre class=\"lang:default decode:true \">cd \/etc\/systemd\/system<\/pre>\n<p>We create a service file.<\/p>\n<pre class=\"lang:default decode:true \">vi prometheus.service<\/pre>\n<p>Then you need to modify the service content below according to your system.<\/p>\n<p>Service file content;<\/p>\n<pre class=\"lang:default decode:true\">[Unit]\nDescription=Prometheus Service\nDocumentation=sqltr\nAfter=network.target\nStartLimitIntervalSec=0\n \n[Service]\nType=simple\nRestart=on-failure\nRestartSec=10\nExecStart=\/home\/ubuntu\/prometheus-2.16.0-rc.1.linux-amd64\/prometheus \\\n--config.file \/home\/ubuntu\/prometheus-2.16.0-rc.1.linux-amd64\/prometheus.yml\n \n[Install]\nWantedBy=multi-user.target<\/pre>\n<p>Run deamon-reload after creating the service.<\/p>\n<pre class=\"lang:default decode:true\">systemctl daemon-reload<\/pre>\n<p>Then let&#8217;s start our service.<\/p>\n<pre class=\"lang:default decode:true \">systemctl start prometheus.service<\/pre>\n<p>Check the service status.<\/p>\n<pre class=\"lang:default decode:true \">systemctl status prometheus.service<\/pre>\n<p>Now our service is started. We must be able to open prometheus from the browser.<\/p>\n<pre class=\"lang:default decode:true \">http:\/\/localhost:9090\/graph<\/pre>\n<p><strong>NOTE:<\/strong> When configuring the .yml file, I suggested that you write IP information instead of localhost in the static_configs section.<\/p>\n<pre class=\"lang:default decode:true \">http:\/\/&lt;IP&gt;:9090\/graph<\/pre>\n<h3>Grafana Installation<\/h3>\n<p>Now we proceed to the installation steps of Grafana.<\/p>\n<p>We are updating our server before installation;<\/p>\n<pre class=\"lang:default decode:true \">sudo apt update<\/pre>\n<p>Now, we add the Grafana gpg key and install the packages.<\/p>\n<pre class=\"lang:default decode:true \">sudo apt-get install -y gnupg2 curl  software-properties-common\ncurl https:\/\/packages.grafana.com\/gpg.key | sudo apt-key add -<\/pre>\n<p>We are downloading the Grafana APT repository.<\/p>\n<pre class=\"lang:default decode:true \">sudo add-apt-repository \"deb https:\/\/packages.grafana.com\/oss\/deb stable main\"<\/pre>\n<p>We are updating again and downloading the graphana.<\/p>\n<pre class=\"lang:default decode:true \">sudo apt-get update\n \nsudo apt-get -y install grafana<\/pre>\n<p>Start grafana service.<\/p>\n<pre class=\"lang:default decode:true\">sudo systemctl start grafana-server<\/pre>\n<p>Check service status.<\/p>\n<pre class=\"lang:default decode:true\">sudo systemctl status grafana-server\n<\/pre>\n<p>Now we can open grafana in our browser.<\/p>\n<pre class=\"lang:default decode:true\">http:\/\/&lt;IP&gt;:3000\n \nuser - pass information on first logon: \nuser: admin\npass : admin<\/pre>\n<h3>How To Use Grafana With Prometheus?<\/h3>\n<p>We installed grafana and prometheus. Now lets perform a test. We will create a dashbord that monitor PostgreSQL. We use an exporter which created by Wrousnel. You can see his queries from the below link. To see the queries, click queries.yaml from the below link.\u00a0<\/p>\n<p><a href=\"https:\/\/github.com\/wrouesnel\/postgres_exporter\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/github.com\/wrouesnel\/postgres_exporter<\/a><\/p>\n<p>This exporter will listen PostgreSQL and transfer PostgreSQL metrics to prometheus.<\/p>\n<h4>Run PostgreSQL Exporter<\/h4>\n<p>First we run postgres exporter.<\/p>\n<p>It runs the queries by listening to postgresql using the ip and port we specified in the query.<\/p>\n<p>It was run from the docker to make it easier.<\/p>\n<pre class=\"lang:default decode:true\">docker run --net=host -e \nDATA_SOURCE_NAME=\"postgresql:\/\/user:password@your_postgres_ip:your_postgres_port\/postgres?sslmode=disable\" -e PG_EXPORTER_WEB_LISTEN_ ADDRESS=0.0.0.0:9191 wrouesnel\/postgres_exporter<\/pre>\n<p>The above code will run wrouesnel&#8217;s queries in the postgresql we have specified. Exporter will listen from the server we executed the above query from 9191 port.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-15270 aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/03\/Ads\u0131z-5.png\" alt=\"\" width=\"758\" height=\"58\" \/><\/p>\n<h4>Grafana add Prometheus Query<\/h4>\n<p>If you download the above link&#8217;s content as zip file to the docker above, and extract the zip file, you can change queries as you want and integrate prometheus and grafana with your own queries.\u00a0<\/p>\n<p>Let&#8217;s edit Prometheus yml.<\/p>\n<p>Exporter listens on port 9191 and runs the queries in the PostgreSQL in the time interval we set in scrape_interval.<\/p>\n<h4>Configure prometheus yml<\/h4>\n<p>exporter_ip is the ip of the server which we run the exporter script. Its same ip with prometheus_ip since I have executed postgres exporter on prometheus server.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-15279 aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/03\/Ads\u0131z-12.png\" alt=\"\" width=\"514\" height=\"298\" \/><\/p>\n<p>We can add job names as below for exporter working on other ip and ports.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-15281 aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/03\/Ads\u0131z-13.png\" alt=\"\" width=\"344\" height=\"104\" \/><\/p>\n<p>We go to the path where Prometheus is installed. We can run it with the command .\/prometheus.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-15273 aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/03\/Ads\u0131z-8.png\" alt=\"\" width=\"647\" height=\"290\" \/><\/p>\n<p>On the server we run Prometheus, we can look at the metrics from the exporter as below in the default 9090 port. 9090 is the default port of Prometheus. Do not confuse exporter port and prometheus port.\u00a0<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-15274 aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/03\/Ads\u0131z-9.png\" alt=\"\" width=\"876\" height=\"357\" \/><\/p>\n<p>Then we can add the prometheus to the grafana as a data source.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-15275 aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/03\/Ads\u0131z-10.png\" alt=\"\" width=\"639\" height=\"246\" \/><\/p>\n<p>Grafana Dashboard Sample Screenshot:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-15276 aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/03\/Ads\u0131z-11.png\" alt=\"\" width=\"724\" height=\"554\" \/><\/p>\n<p>\u00a0<\/p>\n\n<div class=\"pvc_clear\"><\/div><p id=\"pvc_stats_15063\" class=\"pvc_stats all  \" data-element-id=\"15063\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/dbtut.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p><div class=\"pvc_clear\"><\/div>","protected":false},"excerpt":{"rendered":"<p>In this article, we will build our own monitoring systems and build a structure to monitor all your systems on an open-source infrastructure. We will use grafana with prometheus. I will describe Prometheus(Time series database) and Grafana(a technology we will use for the dashboard) installation. We will perform our installations on Ubuntu 16.04. Prometheus Installation &hellip;<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_15063\" class=\"pvc_stats all  \" data-element-id=\"15063\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/dbtut.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":483,"featured_media":15066,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[3654,3653],"tags":[8863,8869,8865,9016,9015,8862,8861,8864,8852,8853,8855,8856,8877,8868,8857,8851,9018,9017,8854,9019,9020,8858,9021,8845,8872,8874,8871,8860,8876,8867,8850,8847,8844,8843,8846,8849,8866,8873,8875,8859,8870,8848],"class_list":["post-15063","post","type-post","status-publish","format-standard","has-post-thumbnail","","category-analyticdashboard","category-grafana","tag-configure-grafana-with-prometheus","tag-connect-grafana-with-prometheus","tag-grafana-add-prometheus-query","tag-grafana-and-prometheus-docker","tag-grafana-and-prometheus-tutorial","tag-grafana-config-prometheus","tag-grafana-configuration-with-prometheus","tag-grafana-configure-prometheus-datasource","tag-grafana-dashboard","tag-grafana-dashboard-prometheus","tag-grafana-dashboards","tag-grafana-examples","tag-grafana-installation","tag-grafana-integration-with-prometheus","tag-grafana-prometheus","tag-grafana-prometheus-dashboard","tag-grafana-prometheus-query","tag-grafana-prometheus-query-example","tag-grafana-server-monitoring","tag-grafana-with-prometheus-docker","tag-grafana-with-prometheus-docker-example","tag-grafana-with-prometheus-example","tag-grafana-with-prometheus-tutorial","tag-how-to-use-grafana-with-prometheus","tag-install-grafana-and-prometheus","tag-install-grafana-and-prometheus-on-ubuntu","tag-install-grafana-ubuntu","tag-install-grafana-with-prometheus","tag-install-prometheus-ubuntu","tag-integrate-grafana-with-prometheus","tag-prometheus-dashboard","tag-prometheus-grafana","tag-prometheus-installation","tag-prometheus-installation-on-ubuntu","tag-prometheus-monitoring","tag-prometheus-tutorial","tag-setting-up-grafana-with-prometheus","tag-setup-grafana-and-prometheus","tag-setup-grafana-and-prometheus-on-ubuntu","tag-setup-grafana-with-prometheus","tag-use-grafana-with-prometheus","tag-what-is-prometheus"],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How To Use Grafana with Prometheus - Database Tutorials<\/title>\n<meta name=\"description\" content=\"how to use grafana with prometheus\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dbtut.com\/index.php\/2020\/03\/09\/how-to-use-grafana-with-prometheus\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Use Grafana with Prometheus - Database Tutorials\" \/>\n<meta property=\"og:description\" content=\"how to use grafana with prometheus\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dbtut.com\/index.php\/2020\/03\/09\/how-to-use-grafana-with-prometheus\/\" \/>\n<meta property=\"og:site_name\" content=\"Database Tutorials\" \/>\n<meta property=\"article:published_time\" content=\"2020-03-09T11:43:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-03-09T14:50:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/02\/Ads\u0131z-13.png\" \/>\n\t<meta property=\"og:image:width\" content=\"495\" \/>\n\t<meta property=\"og:image:height\" content=\"293\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Yusuf KAHVEC\u0130\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Yusuf KAHVEC\u0130\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/03\/09\/how-to-use-grafana-with-prometheus\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/03\/09\/how-to-use-grafana-with-prometheus\/\"},\"author\":{\"name\":\"Yusuf KAHVEC\u0130\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/695ad69b2bd896864842ba8772930150\"},\"headline\":\"How To Use Grafana with Prometheus\",\"datePublished\":\"2020-03-09T11:43:37+00:00\",\"dateModified\":\"2020-03-09T14:50:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/03\/09\/how-to-use-grafana-with-prometheus\/\"},\"wordCount\":626,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/dbtut.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/03\/09\/how-to-use-grafana-with-prometheus\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/02\/Ads\u0131z-13.png\",\"keywords\":[\"configure grafana with prometheus\",\"connect grafana with prometheus\",\"grafana add prometheus query\",\"grafana and prometheus docker\",\"grafana and prometheus tutorial\",\"grafana config prometheus\",\"grafana configuration with prometheus\",\"grafana configure prometheus datasource\",\"grafana dashboard\",\"grafana dashboard prometheus\",\"grafana dashboards\",\"grafana examples\",\"Grafana Installation\",\"grafana integration with prometheus\",\"grafana prometheus\",\"grafana prometheus dashboard\",\"grafana prometheus query\",\"grafana prometheus query example\",\"grafana server monitoring\",\"grafana with prometheus docker\",\"grafana with prometheus docker example\",\"grafana with prometheus example\",\"grafana with prometheus tutorial\",\"how to use grafana with prometheus\",\"install grafana and prometheus\",\"install grafana and prometheus on ubuntu\",\"install grafana ubuntu\",\"install grafana with prometheus\",\"install prometheus ubuntu\",\"integrate grafana with prometheus\",\"prometheus dashboard\",\"prometheus grafana\",\"prometheus installation\",\"prometheus installation on ubuntu\",\"prometheus monitoring\",\"prometheus tutorial\",\"setting up grafana with prometheus\",\"setup grafana and prometheus\",\"setup grafana and prometheus on ubuntu\",\"setup grafana with prometheus\",\"use grafana with prometheus\",\"what is prometheus\"],\"articleSection\":[\"Analytic&amp;&amp;Dashboard\",\"Grafana\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/dbtut.com\/index.php\/2020\/03\/09\/how-to-use-grafana-with-prometheus\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/03\/09\/how-to-use-grafana-with-prometheus\/\",\"url\":\"https:\/\/dbtut.com\/index.php\/2020\/03\/09\/how-to-use-grafana-with-prometheus\/\",\"name\":\"How To Use Grafana with Prometheus - Database Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/dbtut.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/03\/09\/how-to-use-grafana-with-prometheus\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/03\/09\/how-to-use-grafana-with-prometheus\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/02\/Ads\u0131z-13.png\",\"datePublished\":\"2020-03-09T11:43:37+00:00\",\"dateModified\":\"2020-03-09T14:50:09+00:00\",\"description\":\"how to use grafana with prometheus\",\"breadcrumb\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/03\/09\/how-to-use-grafana-with-prometheus\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dbtut.com\/index.php\/2020\/03\/09\/how-to-use-grafana-with-prometheus\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/03\/09\/how-to-use-grafana-with-prometheus\/#primaryimage\",\"url\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/02\/Ads\u0131z-13.png\",\"contentUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/02\/Ads\u0131z-13.png\",\"width\":495,\"height\":293},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/03\/09\/how-to-use-grafana-with-prometheus\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/dbtut.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Use Grafana with Prometheus\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dbtut.com\/#website\",\"url\":\"https:\/\/dbtut.com\/\",\"name\":\"Database Tutorials\",\"description\":\"MSSQL, Oracle, PostgreSQL, MySQL, MariaDB, DB2, Sybase, Teradata, Big Data, NOSQL, MongoDB, Couchbase, Cassandra, Windows, Linux\",\"publisher\":{\"@id\":\"https:\/\/dbtut.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dbtut.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/dbtut.com\/#organization\",\"name\":\"dbtut\",\"url\":\"https:\/\/dbtut.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg\",\"contentUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg\",\"width\":223,\"height\":36,\"caption\":\"dbtut\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/695ad69b2bd896864842ba8772930150\",\"name\":\"Yusuf KAHVEC\u0130\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b7b4650ddb695869b13831d79f25c19ee915dc2151a7c8fcdf01538c295eb032?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b7b4650ddb695869b13831d79f25c19ee915dc2151a7c8fcdf01538c295eb032?s=96&d=mm&r=g\",\"caption\":\"Yusuf KAHVEC\u0130\"},\"url\":\"https:\/\/dbtut.com\/index.php\/author\/yusufkahveci\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Use Grafana with Prometheus - Database Tutorials","description":"how to use grafana with prometheus","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/dbtut.com\/index.php\/2020\/03\/09\/how-to-use-grafana-with-prometheus\/","og_locale":"en_US","og_type":"article","og_title":"How To Use Grafana with Prometheus - Database Tutorials","og_description":"how to use grafana with prometheus","og_url":"https:\/\/dbtut.com\/index.php\/2020\/03\/09\/how-to-use-grafana-with-prometheus\/","og_site_name":"Database Tutorials","article_published_time":"2020-03-09T11:43:37+00:00","article_modified_time":"2020-03-09T14:50:09+00:00","og_image":[{"width":495,"height":293,"url":"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/02\/Ads\u0131z-13.png","type":"image\/png"}],"author":"Yusuf KAHVEC\u0130","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Yusuf KAHVEC\u0130","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dbtut.com\/index.php\/2020\/03\/09\/how-to-use-grafana-with-prometheus\/#article","isPartOf":{"@id":"https:\/\/dbtut.com\/index.php\/2020\/03\/09\/how-to-use-grafana-with-prometheus\/"},"author":{"name":"Yusuf KAHVEC\u0130","@id":"https:\/\/dbtut.com\/#\/schema\/person\/695ad69b2bd896864842ba8772930150"},"headline":"How To Use Grafana with Prometheus","datePublished":"2020-03-09T11:43:37+00:00","dateModified":"2020-03-09T14:50:09+00:00","mainEntityOfPage":{"@id":"https:\/\/dbtut.com\/index.php\/2020\/03\/09\/how-to-use-grafana-with-prometheus\/"},"wordCount":626,"commentCount":0,"publisher":{"@id":"https:\/\/dbtut.com\/#organization"},"image":{"@id":"https:\/\/dbtut.com\/index.php\/2020\/03\/09\/how-to-use-grafana-with-prometheus\/#primaryimage"},"thumbnailUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/02\/Ads\u0131z-13.png","keywords":["configure grafana with prometheus","connect grafana with prometheus","grafana add prometheus query","grafana and prometheus docker","grafana and prometheus tutorial","grafana config prometheus","grafana configuration with prometheus","grafana configure prometheus datasource","grafana dashboard","grafana dashboard prometheus","grafana dashboards","grafana examples","Grafana Installation","grafana integration with prometheus","grafana prometheus","grafana prometheus dashboard","grafana prometheus query","grafana prometheus query example","grafana server monitoring","grafana with prometheus docker","grafana with prometheus docker example","grafana with prometheus example","grafana with prometheus tutorial","how to use grafana with prometheus","install grafana and prometheus","install grafana and prometheus on ubuntu","install grafana ubuntu","install grafana with prometheus","install prometheus ubuntu","integrate grafana with prometheus","prometheus dashboard","prometheus grafana","prometheus installation","prometheus installation on ubuntu","prometheus monitoring","prometheus tutorial","setting up grafana with prometheus","setup grafana and prometheus","setup grafana and prometheus on ubuntu","setup grafana with prometheus","use grafana with prometheus","what is prometheus"],"articleSection":["Analytic&amp;&amp;Dashboard","Grafana"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/dbtut.com\/index.php\/2020\/03\/09\/how-to-use-grafana-with-prometheus\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/dbtut.com\/index.php\/2020\/03\/09\/how-to-use-grafana-with-prometheus\/","url":"https:\/\/dbtut.com\/index.php\/2020\/03\/09\/how-to-use-grafana-with-prometheus\/","name":"How To Use Grafana with Prometheus - Database Tutorials","isPartOf":{"@id":"https:\/\/dbtut.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/dbtut.com\/index.php\/2020\/03\/09\/how-to-use-grafana-with-prometheus\/#primaryimage"},"image":{"@id":"https:\/\/dbtut.com\/index.php\/2020\/03\/09\/how-to-use-grafana-with-prometheus\/#primaryimage"},"thumbnailUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/02\/Ads\u0131z-13.png","datePublished":"2020-03-09T11:43:37+00:00","dateModified":"2020-03-09T14:50:09+00:00","description":"how to use grafana with prometheus","breadcrumb":{"@id":"https:\/\/dbtut.com\/index.php\/2020\/03\/09\/how-to-use-grafana-with-prometheus\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dbtut.com\/index.php\/2020\/03\/09\/how-to-use-grafana-with-prometheus\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/index.php\/2020\/03\/09\/how-to-use-grafana-with-prometheus\/#primaryimage","url":"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/02\/Ads\u0131z-13.png","contentUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/02\/Ads\u0131z-13.png","width":495,"height":293},{"@type":"BreadcrumbList","@id":"https:\/\/dbtut.com\/index.php\/2020\/03\/09\/how-to-use-grafana-with-prometheus\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dbtut.com\/"},{"@type":"ListItem","position":2,"name":"How To Use Grafana with Prometheus"}]},{"@type":"WebSite","@id":"https:\/\/dbtut.com\/#website","url":"https:\/\/dbtut.com\/","name":"Database Tutorials","description":"MSSQL, Oracle, PostgreSQL, MySQL, MariaDB, DB2, Sybase, Teradata, Big Data, NOSQL, MongoDB, Couchbase, Cassandra, Windows, Linux","publisher":{"@id":"https:\/\/dbtut.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dbtut.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/dbtut.com\/#organization","name":"dbtut","url":"https:\/\/dbtut.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/#\/schema\/logo\/image\/","url":"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg","contentUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg","width":223,"height":36,"caption":"dbtut"},"image":{"@id":"https:\/\/dbtut.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/dbtut.com\/#\/schema\/person\/695ad69b2bd896864842ba8772930150","name":"Yusuf KAHVEC\u0130","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b7b4650ddb695869b13831d79f25c19ee915dc2151a7c8fcdf01538c295eb032?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b7b4650ddb695869b13831d79f25c19ee915dc2151a7c8fcdf01538c295eb032?s=96&d=mm&r=g","caption":"Yusuf KAHVEC\u0130"},"url":"https:\/\/dbtut.com\/index.php\/author\/yusufkahveci\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/15063","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/users\/483"}],"replies":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/comments?post=15063"}],"version-history":[{"count":0,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/15063\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/media\/15066"}],"wp:attachment":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/media?parent=15063"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/categories?post=15063"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/tags?post=15063"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}