{"id":15512,"date":"2021-12-07T11:01:40","date_gmt":"2021-12-07T10:01:40","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/prometheus_installation_chapter1\/"},"modified":"2021-12-07T11:01:40","modified_gmt":"2021-12-07T10:01:40","slug":"prometheus_installation_chapter1","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/prometheus_installation_chapter1\/","title":{"rendered":"Monitoring &#8211; first steps with Prometheus"},"content":{"rendered":"<p>Monitoring is a crucial element of DevOps automation that has to be proactive, meaning it must find ways to improve applications quality before bugs appear.<br \/>\nTherefore, we have to quickly and easily understand what is happening in our infrastructure, which is often more and more complex and constantly evolving.<br \/>\nIn this context, one tool stands out: <strong>Prometheus<\/strong>.<br \/>\nPrometheus is an open-source, metrics-based monitoring system and alerting tool. It collects data about applications and systems in a TSDB and allows you to visualise the data and much more.<br \/>\nOf course, Prometheus is far from the only one of those out there. This is why I suggest you dive in to a series of monitoring blogs on a tool that has the wind in its sails.<\/p>\n<h2>Download and Install Prometheus<\/h2>\n<p>In this billet, we will lay the foundations, starting with the installation of Prometheus hosted on a UNIX server (Red Hat Enterprise Linux release 8.5).<br \/>\nWe will focus specifically on the installation of Prometheus. We will cover the configuration part in another blog.<\/p>\n<h3>Download the pre-compiled binaries<\/h3>\n<p>First of all, let&#8217;s download the latest binaries available on the official website, which is version &#8220;2.32.0-rc.0&#8221; (more precisely a pre-release)<\/p>\n<pre class=\"brush: shell; gutter: true; first-line: 1\">[nla@DBI-POC prometheus]$ mkdir -p \/share\/prometheus; chmod -R 755 share; cd \/share\/prometheus\n[nla@DBI-POC prometheus]$ wget https:\/\/github.com\/prometheus\/prometheus\/releases\/download\/v2.32.0-rc.0\/prometheus-2.32.0-rc.0.linux-amd64.tar.gz\n\n--2021-12-06 16:08:04--  https:\/\/github.com\/prometheus\/prometheus\/releases\/download\/v2.32.0-rc.0\/prometheus-2.32.0-rc.0.linux-amd64.tar.gz\nResolving github.com (github.com)... 140.82.121.3\nConnecting to github.com (github.com)|140.82.121.3|:443... connected.\nHTTP request sent, awaiting response... 302 Found\nLocation: https:\/\/objects.githubusercontent.com\/github-production-release-asset-2e65be\/6838921\/d4b11ccb-c6e4-4401-9d93-1da7f6716c24?X-Amz-Algorithm=AWS4-HMAC-SHA256&amp;X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20211206%2Fus-east-1%2Fs3%2Faws4_request&amp;X-Amz-Date=20211206T150804Z&amp;X-Amz-Expires=300&amp;X-Amz-Signature=56868964a039ed2a6aa1a75620956a1df24099821adc9b8b9e7a525e20df13c4&amp;X-Amz-SignedHeaders=host&amp;actor_id=0&amp;key_id=0&amp;repo_id=6838921&amp;response-content-disposition=attachment%3B%20filename%3Dprometheus-2.32.0-rc.0.linux-amd64.tar.gz&amp;response-content-type=application%2Foctet-stream [following]\n--2021-12-06 16:08:04--  https:\/\/objects.githubusercontent.com\/github-production-release-asset-2e65be\/6838921\/d4b11ccb-c6e4-4401-9d93-1da7f6716c24?X-Amz-Algorithm=AWS4-HMAC-SHA256&amp;X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20211206%2Fus-east-1%2Fs3%2Faws4_request&amp;X-Amz-Date=20211206T150804Z&amp;X-Amz-Expires=300&amp;X-Amz-Signature=56868964a039ed2a6aa1a75620956a1df24099821adc9b8b9e7a525e20df13c4&amp;X-Amz-SignedHeaders=host&amp;actor_id=0&amp;key_id=0&amp;repo_id=6838921&amp;response-content-disposition=attachment%3B%20filename%3Dprometheus-2.32.0-rc.0.linux-amd64.tar.gz&amp;response-content-type=application%2Foctet-stream\nResolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.111.133, ...\nConnecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.\nHTTP request sent, awaiting response... 200 OK\nLength: 75092211 (72M) [application\/octet-stream]\nSaving to: 'prometheus-2.32.0-rc.0.linux-amd64.tar.gz'\n\nprometheus-2.32.0-rc.0.linux-amd64.tar.gz                                                                                  100%[======================================================================================================================================================================================================================================================================================================================================&gt;]  71.61M  9.15MB\/s    in 9.4s\n\n2021-12-06 16:08:14 (7.61 MB\/s) - 'prometheus-2.32.0-rc.0.linux-amd64.tar.gz' saved [75092211\/75092211]\n[nla@DBI-POC prometheus]$<\/pre>\n<p>Once the binaries are downloaded, let&#8217;s uncompress the tarball.<\/p>\n<pre class=\"brush: shell; gutter: true; first-line: 1\">[nla@DBI-POC prometheus]$ tar -xvf prometheus-2.32.0-rc.0.linux-amd64.tar.gz\nprometheus-2.32.0-rc.0.linux-amd64\/\nprometheus-2.32.0-rc.0.linux-amd64\/consoles\/\nprometheus-2.32.0-rc.0.linux-amd64\/consoles\/index.html.example\nprometheus-2.32.0-rc.0.linux-amd64\/consoles\/node-cpu.html\nprometheus-2.32.0-rc.0.linux-amd64\/consoles\/node-disk.html\nprometheus-2.32.0-rc.0.linux-amd64\/consoles\/node-overview.html\nprometheus-2.32.0-rc.0.linux-amd64\/consoles\/node.html\nprometheus-2.32.0-rc.0.linux-amd64\/consoles\/prometheus-overview.html\nprometheus-2.32.0-rc.0.linux-amd64\/consoles\/prometheus.html\nprometheus-2.32.0-rc.0.linux-amd64\/console_libraries\/\nprometheus-2.32.0-rc.0.linux-amd64\/console_libraries\/menu.lib\nprometheus-2.32.0-rc.0.linux-amd64\/console_libraries\/prom.lib\nprometheus-2.32.0-rc.0.linux-amd64\/prometheus.yml\nprometheus-2.32.0-rc.0.linux-amd64\/LICENSE\nprometheus-2.32.0-rc.0.linux-amd64\/NOTICE\nprometheus-2.32.0-rc.0.linux-amd64\/prometheus\nprometheus-2.32.0-rc.0.linux-amd64\/promtool\n[nla@DBI-POC prometheus]$<\/pre>\n<p>Now, let&#8217;s create our system account called <strong>prometheus<\/strong><\/p>\n<pre class=\"brush: shell; gutter: true; first-line: 1\">sudo useradd -M -r -s \/bin\/false prometheus<\/pre>\n<p>We will use <strong>mkdir<\/strong> to create some directories to store the configuration and other files needed by Prometheus and store the data.<\/p>\n<pre class=\"brush: shell; gutter: true; first-line: 1\">sudo mkdir \/etc\/prometheus \/data\/prometheus<\/pre>\n<p>Move the files from the downloaded archive to the appropriate locations, and set ownership to the <strong>prometheus<\/strong> system account:<\/p>\n<pre class=\"brush: shell; gutter: true; first-line: 1\">[nla@DBI-POC prometheus]$sudo cp prometheus-2.32.0-rc.0.linux-amd64\/{prometheus,promtool} \/usr\/local\/bin\/\n[nla@DBI-POC prometheus]$sudo chown prometheus:prometheus \/usr\/local\/bin\/{prometheus,promtool}\n[nla@DBI-POC prometheus]$sudo cp -r prometheus-2.32.0-rc.0.linux-amd64\/{consoles,console_libraries} \/etc\/prometheus\/\n[nla@DBI-POC prometheus]$sudo cp prometheus-2.32.0-rc.0.linux-amd64\/prometheus.yml \/etc\/prometheus\/prometheus.yml\n[nla@DBI-POC prometheus]$sudo chown -R prometheus:prometheus \/etc\/prometheus\n[nla@DBI-POC prometheus]$sudo chown prometheus:prometheus \/data\/prometheus<\/pre>\n<p>Half the work is done; let&#8217;s run Prometheus configured by default in the foreground just to make sure everything is set up correctly\u00a0 :<\/p>\n<pre class=\"brush: shell; gutter: true; first-line: 1\">[nla@DBI-POC prometheus]$prometheus --config.file=\/etc\/prometheus\/prometheus.yml\n\nts=2021-12-06T17:13:06.171Z caller=main.go:406 level=info msg=\"No time or size retention was set so using the default time retention\" duration=15d\nts=2021-12-06T17:13:06.171Z caller=main.go:444 level=info msg=\"Starting Prometheus\" version=\"(version=2.31.1, branch=HEAD, revision=411021ada9ab41095923b8d2df9365b632fd40c3)\"\nts=2021-12-06T17:13:06.172Z caller=main.go:449 level=info build_context=\"(go=go1.17.3, user=root@9419c9c2d4e0, date=20211105-20:35:02)\"\nts=2021-12-06T17:13:06.172Z caller=main.go:450 level=info host_details=\"(Linux 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 8 13:30:15 EST 2021 x86_64 DBI-POC.localdomain (none))\"\nts=2021-12-06T17:13:06.172Z caller=main.go:451 level=info fd_limits=\"(soft=1024, hard=262144)\"\nts=2021-12-06T17:13:06.172Z caller=main.go:452 level=info vm_limits=\"(soft=unlimited, hard=unlimited)\"\nts=2021-12-06T17:13:06.173Z caller=web.go:542 level=info component=web msg=\"Start listening for connections\" address=0.0.0.0:9090\nts=2021-12-06T17:13:06.173Z caller=main.go:839 level=info msg=\"Starting TSDB ...\"\nts=2021-12-06T17:13:06.175Z caller=tls_config.go:195 level=info component=web msg=\"TLS is disabled.\" http2=false\nts=2021-12-06T17:13:06.176Z caller=head.go:479 level=info component=tsdb msg=\"Replaying on-disk memory mappable chunks if any\"\nts=2021-12-06T17:13:06.176Z caller=head.go:513 level=info component=tsdb msg=\"On-disk memory mappable chunks replay completed\" duration=1.628\u00b5s\nts=2021-12-06T17:13:06.176Z caller=head.go:519 level=info component=tsdb msg=\"Replaying WAL, this may take a while\"\nts=2021-12-06T17:13:06.177Z caller=head.go:590 level=info component=tsdb msg=\"WAL segment loaded\" segment=0 maxSegment=0\nts=2021-12-06T17:13:06.177Z caller=head.go:596 level=info component=tsdb msg=\"WAL replay completed\" checkpoint_replay_duration=22.185\u00b5s wal_replay_duration=770.195\u00b5s total_replay_duration=818.18\u00b5s\nts=2021-12-06T17:13:06.177Z caller=main.go:866 level=info fs_type=XFS_SUPER_MAGIC\nts=2021-12-06T17:13:06.178Z caller=main.go:869 level=info msg=\"TSDB started\"\nts=2021-12-06T17:13:06.178Z caller=main.go:996 level=info msg=\"Loading configuration file\" filename=\/etc\/prometheus\/prometheus.yml\nts=2021-12-06T17:13:06.186Z caller=main.go:1033 level=info msg=\"Completed loading of configuration file\" filename=\/etc\/prometheus\/prometheus.yml totalDuration=8.409684ms db_storage=1.003\u00b5s remote_storage=1.343\u00b5s web_handler=271ns query_engine=700ns scrape=8.118036ms scrape_sd=23.72\u00b5s notify=23.188\u00b5s notify_sd=8.332\u00b5s rules=1.081\u00b5s\nts=2021-12-06T17:13:06.186Z caller=main.go:811 level=info msg=\"Server is ready to receive web requests.\"<\/pre>\n<p>Here, we can see the message saying, &#8220;The server is ready to receive web requests, &#8221; confirming that our application is running well.<br \/>\nSend a break to stop the process (<em>Press Ctrl+C<\/em>).<\/p>\n<h2>Configure Prometheus service file<\/h2>\n<p>Create a systemd unit file for Prometheus:<br \/>\n<span style=\"font-family: Consolas, Monaco, monospace\">[nla@DBI-POC prometheus]$sudo vi \/etc\/systemd\/system\/prometheus.service<\/span><\/p>\n<p>Define the Prometheus service in the unit file:<br \/>\n<span style=\"font-family: Consolas, Monaco, monospace\">[Unit]<\/span><\/p>\n<pre class=\"brush: shell; gutter: true; first-line: 1\">Description=Prometheus Time Series Collection and Processing Server\nWants=network-online.target\nAfter=network-online.target\n[Service]\nUser=prometheus\nGroup=prometheus\nType=simple\nExecStart=\/usr\/local\/bin\/prometheus \\\n--config.file \/etc\/prometheus\/prometheus.yml \\\n--storage.tsdb.path \/data\/prometheus\/ \\\n--web.page-title=\"blog.dbi-services: Prometheus Time Series Collection and Processing Server\"\n--web.enable-lifecycle \\\n--web.console.templates=\/etc\/prometheus\/consoles \\\n--web.console.libraries=\/etc\/prometheus\/console_libraries\n[Install]\nWantedBy=multi-user.target<\/pre>\n<p>After saving and exiting the file, we will ensure that Systemd has considered the changes we have made.<br \/>\n<span style=\"font-family: Consolas, Monaco, monospace\">[nla@DBI-POC prometheus]$sudo systemctl daemon-reload<\/span><\/p>\n<p>Start the Prometheus service:<br \/>\n<span style=\"font-family: Consolas, Monaco, monospace\">[nla@DBI-POC prometheus]$sudo systemctl start prometheus<\/span><\/p>\n<p>Think about enable the Prometheus service to allow it starting automatically at boot:<br \/>\n<span style=\"font-family: Consolas, Monaco, monospace\">[nla@DBI-POC prometheus]$sudo systemctl enable prometheus<\/span><\/p>\n<p>Verify the Prometheus service is healthy:<br \/>\n<span style=\"font-family: Consolas, Monaco, monospace\">[nla@DBI-POC prometheus]$ sudo systemctl status prometheus<\/span><\/p>\n<pre class=\"brush: shell; gutter: true; first-line: 1\">\u25cf prometheus.service - Prometheus Time Series Collection and Processing Server\n   Loaded: loaded (\/etc\/systemd\/system\/prometheus.service; enabled; vendor preset: disabled)\n   Active: active (running) since Tue 2021-12-07 10:02:32 CET; 6s ago\n Main PID: 45138 (prometheus)\n    Tasks: 10 (limit: 49348)\n   Memory: 92.4M\n   CGroup: \/system.slice\/prometheus.service\n           \u2514\u250045138 \/usr\/local\/bin\/prometheus --config.file \/etc\/prometheus\/prometheus.yml --storage.tsdb.path \/data\/prometheus\/ --web.enable-lifecycle --web.page-title=blog.dbi-services: Prometheus Time Series Collection and Processing Server --web.console.templates=\/etc\/prometheus\/consoles --web.console.libraries=\/etc\/prometheus\/console_libraries\n\nDec 07 10:02:38 DBI-POC.localdomain prometheus[45138]: ts=2021-12-07T09:02:38.100Z caller=compact.go:518 level=info component=tsdb msg=\"write block\" mint=1638806408045 maxt=1638813600000 ulid=01FPA22V00F7PTC3WFWNJYT653 duration=20.355646ms\nDec 07 10:02:38 DBI-POC.localdomain prometheus[45138]: ts=2021-12-07T09:02:38.102Z caller=head.go:803 level=info component=tsdb msg=\"Head GC completed\" duration=930.334\u00b5s\nDec 07 10:02:38 DBI-POC.localdomain prometheus[45138]: ts=2021-12-07T09:02:38.102Z caller=checkpoint.go:97 level=info component=tsdb msg=\"Creating checkpoint\" from_segment=12 to_segment=14 mint=1638813600000\nDec 07 10:02:38 DBI-POC.localdomain prometheus[45138]: ts=2021-12-07T09:02:38.111Z caller=head.go:972 level=info component=tsdb msg=\"WAL checkpoint complete\" first=12 last=14 duration=9.387086ms\nDec 07 10:02:38 DBI-POC.localdomain prometheus[45138]: ts=2021-12-07T09:02:38.138Z caller=compact.go:459 level=info component=tsdb msg=\"compact blocks\" count=2 mint=1638772668103 maxt=1638784800000 ulid=01FPA22V10HFAYEK62F84PPVZQ sources=\"[01FP82P13KRRXE2TPZBAVTEQPM 01FP82P1491P5PFA8ANPFFG8NB]\" duration=26.366272ms\nDec 07 10:02:38 DBI-POC.localdomain prometheus[45138]: ts=2021-12-07T09:02:38.139Z caller=db.go:1293 level=info component=tsdb msg=\"Deleting obsolete block\" block=01FP82P13KRRXE2TPZBAVTEQPM\nDec 07 10:02:38 DBI-POC.localdomain prometheus[45138]: ts=2021-12-07T09:02:38.141Z caller=db.go:1293 level=info component=tsdb msg=\"Deleting obsolete block\" block=01FP82P1491P5PFA8ANPFFG8NB\nDec 07 10:02:38 DBI-POC.localdomain prometheus[45138]: ts=2021-12-07T09:02:38.164Z caller=compact.go:459 level=info component=tsdb msg=\"compact blocks\" count=2 mint=1638727208042 maxt=1638784800000 ulid=01FPA22V1XK5XXXRPHB3396KR3 sources=\"[01FP77CXPC9Z3ZJVEFK2P5NPCM 01FPA22V10HFAYEK62F84PPVZQ]\" duration=23.315044ms\nDec 07 10:02:38 DBI-POC.localdomain prometheus[45138]: ts=2021-12-07T09:02:38.165Z caller=db.go:1293 level=info component=tsdb msg=\"Deleting obsolete block\" block=01FP77CXPC9Z3ZJVEFK2P5NPCM\nDec 07 10:02:38 DBI-POC.localdomain prometheus[45138]: ts=2021-12-07T09:02:38.167Z caller=db.go:1293 level=info component=tsdb msg=\"Deleting obsolete block\" block=01FPA22V10HFAYEK62F84PPVZQ\n[nla@DBI-POC prometheus]$<\/pre>\n<p>We can see the service is up and running, so good so far.<br \/>\nMake an HTTP request to Prometheus to verify it can respond. Basically, the request should return the page graph is found:<\/p>\n<pre class=\"brush: shell; gutter: true; first-line: 1\">[nla@DBI-POC prometheus]$ curl http:\/\/localhost:9090\/\n<a href=\"\/graph\">Found<\/a>.<\/pre>\n<p>And last but not least, open a new browser to access Prometheus by navigating to http:\/\/{YOUR IP ADDRESS}:9090. This one should open up on the Prometheus expression browser like below.<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/dbi.blog_Prometheus_1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-52916\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/dbi.blog_Prometheus_1.png\" alt=\"\" width=\"600\" height=\"392\" \/><\/a><\/p>\n<p>Congratulations, you have successfully installed a Prometheus; I&#8217;ll see you in a future billet to talk about the configuration of Prometheus and how we can monitor our system.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Monitoring is a crucial element of DevOps automation that has to be proactive, meaning it must find ways to improve applications quality before bugs appear. Therefore, we have to quickly and easily understand what is happening in our infrastructure, which is often more and more complex and constantly evolving. In this context, one tool stands [&hellip;]<\/p>\n","protected":false},"author":40,"featured_media":15513,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[197,229],"tags":[151,101,143,2234,1686],"type_dbi":[],"class_list":["post-15512","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-application-integration-middleware","category-database-administration-monitoring","tag-devops","tag-installation","tag-monitoring","tag-prometheus","tag-rhel8"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Monitoring - first steps with Prometheus - dbi Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/prometheus_installation_chapter1\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Monitoring - first steps with Prometheus\" \/>\n<meta property=\"og:description\" content=\"Monitoring is a crucial element of DevOps automation that has to be proactive, meaning it must find ways to improve applications quality before bugs appear. Therefore, we have to quickly and easily understand what is happening in our infrastructure, which is often more and more complex and constantly evolving. In this context, one tool stands [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/prometheus_installation_chapter1\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2021-12-07T10:01:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/dbi.blog_Prometheus_1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1074\" \/>\n\t<meta property=\"og:image:height\" content=\"702\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Middleware Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Middleware Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/prometheus_installation_chapter1\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/prometheus_installation_chapter1\\\/\"},\"author\":{\"name\":\"Middleware Team\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/8d8563acfc6e604cce6507f45bac0ea1\"},\"headline\":\"Monitoring &#8211; first steps with Prometheus\",\"datePublished\":\"2021-12-07T10:01:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/prometheus_installation_chapter1\\\/\"},\"wordCount\":511,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/prometheus_installation_chapter1\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2022\\\/04\\\/dbi.blog_Prometheus_1.png\",\"keywords\":[\"DevOps\",\"Installation\",\"Monitoring\",\"Prometheus\",\"RHEL8\"],\"articleSection\":[\"Application integration &amp; Middleware\",\"Database Administration &amp; Monitoring\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/prometheus_installation_chapter1\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/prometheus_installation_chapter1\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/prometheus_installation_chapter1\\\/\",\"name\":\"Monitoring - first steps with Prometheus - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/prometheus_installation_chapter1\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/prometheus_installation_chapter1\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2022\\\/04\\\/dbi.blog_Prometheus_1.png\",\"datePublished\":\"2021-12-07T10:01:40+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/8d8563acfc6e604cce6507f45bac0ea1\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/prometheus_installation_chapter1\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/prometheus_installation_chapter1\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/prometheus_installation_chapter1\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2022\\\/04\\\/dbi.blog_Prometheus_1.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2022\\\/04\\\/dbi.blog_Prometheus_1.png\",\"width\":1074,\"height\":702},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/prometheus_installation_chapter1\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Monitoring &#8211; first steps with Prometheus\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/8d8563acfc6e604cce6507f45bac0ea1\",\"name\":\"Middleware Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"caption\":\"Middleware Team\"},\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/author\\\/middleware-team\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Monitoring - first steps with Prometheus - dbi Blog","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:\/\/www.dbi-services.com\/blog\/prometheus_installation_chapter1\/","og_locale":"en_US","og_type":"article","og_title":"Monitoring - first steps with Prometheus","og_description":"Monitoring is a crucial element of DevOps automation that has to be proactive, meaning it must find ways to improve applications quality before bugs appear. Therefore, we have to quickly and easily understand what is happening in our infrastructure, which is often more and more complex and constantly evolving. In this context, one tool stands [&hellip;]","og_url":"https:\/\/www.dbi-services.com\/blog\/prometheus_installation_chapter1\/","og_site_name":"dbi Blog","article_published_time":"2021-12-07T10:01:40+00:00","og_image":[{"width":1074,"height":702,"url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/dbi.blog_Prometheus_1.png","type":"image\/png"}],"author":"Middleware Team","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Middleware Team","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/prometheus_installation_chapter1\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/prometheus_installation_chapter1\/"},"author":{"name":"Middleware Team","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1"},"headline":"Monitoring &#8211; first steps with Prometheus","datePublished":"2021-12-07T10:01:40+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/prometheus_installation_chapter1\/"},"wordCount":511,"commentCount":0,"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/prometheus_installation_chapter1\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/dbi.blog_Prometheus_1.png","keywords":["DevOps","Installation","Monitoring","Prometheus","RHEL8"],"articleSection":["Application integration &amp; Middleware","Database Administration &amp; Monitoring"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/prometheus_installation_chapter1\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/prometheus_installation_chapter1\/","url":"https:\/\/www.dbi-services.com\/blog\/prometheus_installation_chapter1\/","name":"Monitoring - first steps with Prometheus - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/prometheus_installation_chapter1\/#primaryimage"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/prometheus_installation_chapter1\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/dbi.blog_Prometheus_1.png","datePublished":"2021-12-07T10:01:40+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1"},"breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/prometheus_installation_chapter1\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/prometheus_installation_chapter1\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/prometheus_installation_chapter1\/#primaryimage","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/dbi.blog_Prometheus_1.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/dbi.blog_Prometheus_1.png","width":1074,"height":702},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/prometheus_installation_chapter1\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Monitoring &#8211; first steps with Prometheus"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1","name":"Middleware Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","caption":"Middleware Team"},"url":"https:\/\/www.dbi-services.com\/blog\/author\/middleware-team\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/15512","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=15512"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/15512\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media\/15513"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=15512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=15512"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=15512"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=15512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}