{"id":10213,"date":"2023-06-23T01:43:43","date_gmt":"2023-06-23T08:43:43","guid":{"rendered":"https:\/\/www.couchbase.com\/developers\/tutorials\/install-prometheus\/"},"modified":"2023-06-23T01:43:43","modified_gmt":"2023-06-23T08:43:43","slug":"install-prometheus","status":"publish","type":"tutorials","link":"https:\/\/www.couchbase.com\/de\/developers\/tutorials\/install-prometheus\/","title":{"rendered":"Install Prometheus"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The following will walk you through how to install and configure Prometheus. This should NOT be installed on a Couchbase node, but rather on a standalone server in the same network as your Couchbase cluster.<\/p>\n\n\n\n<h3 id=\"h-download-prometheus\" class=\"wp-block-heading\">Download Prometheus<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/prometheus\/prometheus\/releases\/download\/v2.24.0\/prometheus-2.24.0.linux-amd64.tar.gz\">Download<\/a> the Prometheus binary to the server that you will use for Prometheus.<\/p>\n\n\n\n<pre class=\"wp-block-code language-bash\"><code>wget \n  https:\/\/github.com\/prometheus\/prometheus\/releases\/download\/v2.24.0\/prometheus-2.24.0.linux-amd64.tar.gz\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Visit the Prometheus <a href=\"https:\/\/prometheus.io\/download\/\">downloads page<\/a> for the latest version.<\/p>\n\n\n\n<h3 id=\"h-create-user\" class=\"wp-block-heading\">Create User<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Create a Prometheus user, required directories, and make prometheus user as the owner of those directories.<\/p>\n\n\n\n<pre class=\"wp-block-code language-bash\"><code>sudo groupadd -f prometheus\nsudo useradd -g prometheus --no-create-home --shell \/bin\/false prometheus\nsudo mkdir \/etc\/prometheus\nsudo mkdir \/var\/lib\/prometheus\nsudo chown prometheus:prometheus \/etc\/prometheus\nsudo chown prometheus:prometheus \/var\/lib\/prometheus\n<\/code><\/pre>\n\n\n\n<h3 id=\"h-unpack-prometheus-binary\" class=\"wp-block-heading\">Unpack Prometheus Binary<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Untar and move the downloaded Prometheus binary<\/p>\n\n\n\n<pre class=\"wp-block-code language-bash\"><code>tar -xvf prometheus-2.24.0.linux-amd64.tar.gz\nmv prometheus-2.24.0.linux-amd64 prometheus-files\n<\/code><\/pre>\n\n\n\n<h3 id=\"h-install-prometheus\" class=\"wp-block-heading\">Install Prometheus<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Copy <code>prometheus<\/code> and <code>promtool<\/code> binary from <code>prometheus-files<\/code> folder to <code>\/usr\/bin<\/code> and change the ownership to prometheus user.<\/p>\n\n\n\n<pre class=\"wp-block-code language-bash\"><code>sudo cp prometheus-files\/prometheus \/usr\/bin\/\nsudo cp prometheus-files\/promtool \/usr\/bin\/\nsudo chown prometheus:prometheus \/usr\/bin\/prometheus\nsudo chown prometheus:prometheus \/usr\/bin\/promtool\n<\/code><\/pre>\n\n\n\n<h3 id=\"h-install-prometheus-libraries\" class=\"wp-block-heading\">Install Prometheus Libraries<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Move the <code>prometheus.yml<\/code>, <code>consoles<\/code> and <code>console_libraries<\/code> directories from <code>prometheus-files<\/code> to <code>\/etc\/prometheus<\/code> folder and change the ownership to prometheus user.<\/p>\n\n\n\n<pre class=\"wp-block-code language-bash\"><code>sudo cp -r prometheus-files\/consoles \/etc\/prometheus\nsudo cp -r prometheus-files\/console_libraries \/etc\/prometheus\nsudo cp prometheus-files\/prometheus.yml \/etc\/prometheus\/prometheus.yml\nsudo chown -R prometheus:prometheus \/etc\/prometheus\/consoles\nsudo chown -R prometheus:prometheus \/etc\/prometheus\/console_libraries\nsudo chown prometheus:prometheus \/etc\/prometheus\/prometheus.yml\n<\/code><\/pre>\n\n\n\n<h3 id=\"h-setup-prometheus-service\" class=\"wp-block-heading\">Setup Prometheus Service<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Create a prometheus service file.<\/p>\n\n\n\n<pre class=\"wp-block-code language-bash\"><code>sudo vi \/usr\/lib\/systemd\/system\/prometheus.service\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Add the following configuration and save the file<\/p>\n\n\n\n<pre class=\"wp-block-code language-bash\"><code>[Unit]\nDescription=Prometheus\nWants=network-online.target\nAfter=network-online.target\n\n[Service]\nUser=prometheus\nGroup=prometheus\nType=simple\nExecStart=\/usr\/bin\/prometheus \n    --config.file \/etc\/prometheus\/prometheus.yml \n    --storage.tsdb.path \/var\/lib\/prometheus\/ \n    --web.console.templates=\/etc\/prometheus\/consoles \n    --web.console.libraries=\/etc\/prometheus\/console_libraries\n\n[Install]\nWantedBy=multi-user.target\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code language-bash\"><code>sudo chmod 664 \/usr\/lib\/systemd\/system\/prometheus.service\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> Prometheus is configured to use <code>\/var\/lib\/prometheus<\/code> as it&#8217;s tsdb storage location, ensure there is enough space available.<\/p>\n\n\n\n<h3 id=\"h-reload-systemd-and-register-prometheus\" class=\"wp-block-heading\">Reload systemd and Register Prometheus<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Reload the <code>systemd<\/code> service to register the prometheus service and start the prometheus service.<\/p>\n\n\n\n<pre class=\"wp-block-code language-bash\"><code>sudo systemctl daemon-reload\nsudo systemctl start prometheus\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Check the prometheus service status using the following command.<\/p>\n\n\n\n<pre class=\"wp-block-code language-bash\"><code>sudo systemctl status prometheus\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Configure Prometheus to start at boot<\/p>\n\n\n\n<pre class=\"wp-block-code language-bash\"><code>sudo systemctl enable prometheus.service\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><img decoding=\"async\" src=\".\/assets\/prometheus-status.png\" alt=\"Prometheus Status\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If <code>firewalld<\/code> is enabled and running, add a rule for port <code>9090<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code language-bash\"><code>sudo firewall-cmd --permanent --zone=public --add-port=9090\/tcp\nsudo firewall-cmd --reload\n<\/code><\/pre>\n\n\n\n<h3 id=\"h-access-prometheus-ui\" class=\"wp-block-heading\">Access Prometheus UI<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Now you will be able to access the prometheus UI on <code>9090<\/code> port of the prometheus server.<\/p>\n\n\n\n<pre class=\"wp-block-code language-bash\"><code>http:\/\/&lt;prometheus-ip&gt;:9090\/graph\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You should be able to see the following UI as shown below.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><img decoding=\"async\" src=\".\/assets\/prometheus-ui.png\" alt=\"Prometheus UI\"><\/p>\n\n\n\n<h3 id=\"h-clean-up\" class=\"wp-block-heading\">Clean Up<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Remove the download and temporary files<\/p>\n\n\n\n<pre class=\"wp-block-code language-bash\"><code>rm -rf prometheus-2.24.0.linux-amd64.tar.gz prometheus-files\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The following will walk you through how to install and configure Prometheus. This should NOT be installed on a Couchbase node, but rather on a standalone server in the same network as your Couchbase cluster. Download Prometheus Download the Prometheus binary to the server that you will use for Prometheus. Visit the Prometheus downloads page [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"menu_order":0,"template":"","meta":{"_acf_changed":false,"_acf":"","inline_featured_image":false,"footnotes":""},"tutorial-languages":[551],"tutorial-tags":[553,571,563,570],"tutorial-technologies":[554],"tutorial-types":[555],"class_list":["post-10213","tutorials","type-tutorials","status-publish","hentry","tutorial-languages-any","tutorial-tags-configuration","tutorial-tags-monitoring","tutorial-tags-observability","tutorial-tags-prometheus","tutorial-technologies-server","tutorial-types-tutorial"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v28.9 (Yoast SEO v28.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Install Prometheus - Couchbase<\/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.couchbase.com\/de\/developers\/tutorials\/install-prometheus\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Install Prometheus\" \/>\n<meta property=\"og:description\" content=\"The following will walk you through how to install and configure Prometheus. This should NOT be installed on a Couchbase node, but rather on a standalone server in the same network as your Couchbase cluster. Download Prometheus Download the Prometheus binary to the server that you will use for Prometheus. Visit the Prometheus downloads page [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.couchbase.com\/de\/developers\/tutorials\/install-prometheus\/\" \/>\n<meta property=\"og:site_name\" content=\"Couchbase\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Couchbase\/\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.couchbase.com\/wp-content\/uploads\/2026\/10\/Cloud-2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2548\" \/>\n\t<meta property=\"og:image:height\" content=\"1171\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@couchbase\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2\u00a0Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/de\\\/developers\\\/tutorials\\\/install-prometheus\\\/\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/de\\\/developers\\\/tutorials\\\/install-prometheus\\\/\",\"name\":\"Install Prometheus - Couchbase\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/de\\\/#website\"},\"datePublished\":\"2023-06-23T08:43:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/de\\\/developers\\\/tutorials\\\/install-prometheus\\\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.couchbase.com\\\/de\\\/developers\\\/tutorials\\\/install-prometheus\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/de\\\/developers\\\/tutorials\\\/install-prometheus\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.couchbase.com\\\/ko\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Install Prometheus\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/de\\\/#website\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/de\\\/\",\"name\":\"Couchbase\",\"description\":\"The Operational Data Platform for AI\u2122\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/de\\\/#organization\"},\"alternateName\":\"Couchbase, Inc.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.couchbase.com\\\/de\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/de\\\/#organization\",\"name\":\"Couchbase\",\"alternateName\":\"Couchbase, Inc.\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/de\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/de\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/Couchbase_Logo_Couchbase_Token_Red-1.png\",\"contentUrl\":\"https:\\\/\\\/www.couchbase.com\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/Couchbase_Logo_Couchbase_Token_Red-1.png\",\"width\":1129,\"height\":1129,\"caption\":\"Couchbase\"},\"image\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/de\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/Couchbase\\\/\",\"https:\\\/\\\/x.com\\\/couchbase\",\"https:\\\/\\\/www.youtube.com\\\/c\\\/CouchbaseServer\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/couchbase\\\/\",\"https:\\\/\\\/github.com\\\/couchbase\\\/\",\"https:\\\/\\\/en.wikipedia.org\\\/wiki\\\/Couchbase,_Inc.\"],\"description\":\"Couchbase is a database software company headquartered in San Jose, California, providing an operational data platform for AI used by hundreds of global enterprises.\",\"legalName\":\"Couchbase, Inc.\",\"foundingDate\":\"2011-01-01\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Install Prometheus - Couchbase","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.couchbase.com\/de\/developers\/tutorials\/install-prometheus\/","og_locale":"de_DE","og_type":"article","og_title":"Install Prometheus","og_description":"The following will walk you through how to install and configure Prometheus. This should NOT be installed on a Couchbase node, but rather on a standalone server in the same network as your Couchbase cluster. Download Prometheus Download the Prometheus binary to the server that you will use for Prometheus. Visit the Prometheus downloads page [&hellip;]","og_url":"https:\/\/www.couchbase.com\/de\/developers\/tutorials\/install-prometheus\/","og_site_name":"Couchbase","article_publisher":"https:\/\/www.facebook.com\/Couchbase\/","og_image":[{"width":2548,"height":1171,"url":"https:\/\/www.couchbase.com\/wp-content\/uploads\/2026\/10\/Cloud-2.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_site":"@couchbase","twitter_misc":{"Est. reading time":"2\u00a0Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.couchbase.com\/de\/developers\/tutorials\/install-prometheus\/","url":"https:\/\/www.couchbase.com\/de\/developers\/tutorials\/install-prometheus\/","name":"Install Prometheus - Couchbase","isPartOf":{"@id":"https:\/\/www.couchbase.com\/de\/#website"},"datePublished":"2023-06-23T08:43:43+00:00","breadcrumb":{"@id":"https:\/\/www.couchbase.com\/de\/developers\/tutorials\/install-prometheus\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.couchbase.com\/de\/developers\/tutorials\/install-prometheus\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.couchbase.com\/de\/developers\/tutorials\/install-prometheus\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.couchbase.com\/ko\/"},{"@type":"ListItem","position":2,"name":"Install Prometheus"}]},{"@type":"WebSite","@id":"https:\/\/www.couchbase.com\/de\/#website","url":"https:\/\/www.couchbase.com\/de\/","name":"Couchbase","description":"The Operational Data Platform for AI\u2122","publisher":{"@id":"https:\/\/www.couchbase.com\/de\/#organization"},"alternateName":"Couchbase, Inc.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.couchbase.com\/de\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"},{"@type":"Organization","@id":"https:\/\/www.couchbase.com\/de\/#organization","name":"Couchbase","alternateName":"Couchbase, Inc.","url":"https:\/\/www.couchbase.com\/de\/","logo":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/www.couchbase.com\/de\/#\/schema\/logo\/image\/","url":"https:\/\/www.couchbase.com\/wp-content\/uploads\/2026\/11\/Couchbase_Logo_Couchbase_Token_Red-1.png","contentUrl":"https:\/\/www.couchbase.com\/wp-content\/uploads\/2026\/11\/Couchbase_Logo_Couchbase_Token_Red-1.png","width":1129,"height":1129,"caption":"Couchbase"},"image":{"@id":"https:\/\/www.couchbase.com\/de\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Couchbase\/","https:\/\/x.com\/couchbase","https:\/\/www.youtube.com\/c\/CouchbaseServer","https:\/\/www.linkedin.com\/company\/couchbase\/","https:\/\/github.com\/couchbase\/","https:\/\/en.wikipedia.org\/wiki\/Couchbase,_Inc."],"description":"Couchbase ist ein in San Jose, Kalifornien, ans\u00e4ssiges Unternehmen f\u00fcr Datenbanksoftware, das eine operative Datenplattform f\u00fcr KI bereitstellt, die von Hunderten von globalen Unternehmen eingesetzt wird.","legalName":"Couchbase, Inc.","foundingDate":"2011-01-01"}]}},"permalink_manager":null,"_links":{"self":[{"href":"https:\/\/www.couchbase.com\/de\/wp-json\/wp\/v2\/tutorials\/10213","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.couchbase.com\/de\/wp-json\/wp\/v2\/tutorials"}],"about":[{"href":"https:\/\/www.couchbase.com\/de\/wp-json\/wp\/v2\/types\/tutorials"}],"version-history":[{"count":0,"href":"https:\/\/www.couchbase.com\/de\/wp-json\/wp\/v2\/tutorials\/10213\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.couchbase.com\/de\/wp-json\/wp\/v2\/media?parent=10213"}],"wp:term":[{"taxonomy":"tutorial-languages","embeddable":true,"href":"https:\/\/www.couchbase.com\/de\/wp-json\/wp\/v2\/tutorial-languages?post=10213"},{"taxonomy":"tutorial-tags","embeddable":true,"href":"https:\/\/www.couchbase.com\/de\/wp-json\/wp\/v2\/tutorial-tags?post=10213"},{"taxonomy":"tutorial-technologies","embeddable":true,"href":"https:\/\/www.couchbase.com\/de\/wp-json\/wp\/v2\/tutorial-technologies?post=10213"},{"taxonomy":"tutorial-types","embeddable":true,"href":"https:\/\/www.couchbase.com\/de\/wp-json\/wp\/v2\/tutorial-types?post=10213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}