{"id":27727,"date":"2024-06-06T01:21:06","date_gmt":"2024-06-06T01:21:06","guid":{"rendered":"https:\/\/green.cloud\/docs\/docs\/greencloud-documents\/linux-operating-systems\/how-to-install-influxdb-on-ubuntu-22-04\/"},"modified":"2026-01-19T00:45:49","modified_gmt":"2026-01-19T00:45:49","slug":"how-to-install-influxdb-on-ubuntu-22-04","status":"publish","type":"docs","link":"https:\/\/green.cloud\/docs\/how-to-install-influxdb-on-ubuntu-22-04\/","title":{"rendered":"How To Install InfluxDB on Ubuntu 22.04"},"content":{"rendered":"<p>Welcome to our comprehensive guide on installing InfluxDB on Ubuntu 22.04, 20.04, or 18.04 Linux systems. InfluxDB is an open-source time series database platform designed for storing time series data, including metrics and events collected from various devices. It is a product of InfluxData and a key component of the TICK Stack, which includes:<\/p>\n<ul>\n<li><strong>Telegraf (T)<\/strong>: An agent written in Go for collecting performance metrics from the host system and its running services. The collected metrics are output to InfluxDB or other supported data stores.<\/li>\n<li><strong>InfluxDB (I)<\/strong>: The time series database itself.<\/li>\n<li><strong>Chronograf (C)<\/strong>: A web application written in Go and React.js that provides tools to visualize monitoring data and easily create alerting and automation rules.<\/li>\n<li><strong>Kapacitor (K)<\/strong>: A data processing engine capable of handling both stream and batch data from InfluxDB.<\/li>\n<\/ul>\n<p>In my series of monitoring guides, I focus on the use of:<\/p>\n<ul>\n<li><strong>Telegraf<\/strong> for collecting system metrics<\/li>\n<li><strong>InfluxDB<\/strong> as the datastore<\/li>\n<li><strong>Grafana<\/strong> for metrics visualization<\/li>\n<\/ul>\n<p>Follow along to set up InfluxDB and enhance your monitoring capabilities.<\/p>\n<p><iframe title=\"How to install InfluxDB on Ubuntu 22.04 | VPS Tutorial\" width=\"1170\" height=\"658\" src=\"https:\/\/www.youtube.com\/embed\/B_DNkadj9AI?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<h2 class=\"wp-block-heading\">Install InfluxDB on Ubuntu 22.04<\/h2>\n<p>Installation of InfluxDB on Ubuntu22.04|20.04|18.04 is done from the Influxdata repository. Once the repo is added, the package can then be installed using an<strong>\u00a0apt\u00a0<\/strong>package manager. Add the InfluxData repository to the file\u00a0\u00a0<strong>\/etc\/apt\/sources.list.d\/influxdb.list<\/strong>\u00a0:<\/p>\n<p>Before you begin update your system APT repository index.<span id=\"ezoic-pub-ad-placeholder-167\" class=\"ezoic-adpicker-ad\" data-ezoic-video-excluded=\"1\"><\/span><\/p>\n<pre class=\"wp-block-code\"><code>apt update<\/code><\/pre>\n<p>Import repository GPG key.<\/p>\n<pre class=\"wp-block-code\"><code>curl -fsSL https:\/\/repos.influxdata.com\/influxdata-archive_compat.key|gpg --dearmor -o \/etc\/apt\/trusted.gpg.d\/influxdata.gpg<\/code><\/pre>\n<p>Then add the InfluxDB APT repository.<\/p>\n<pre class=\"wp-block-code\"><code>echo 'deb [signed-by=\/etc\/apt\/trusted.gpg.d\/influxdata.gpg] https:\/\/repos.influxdata.com\/debian stable main' | tee \/etc\/apt\/sources.list.d\/influxdata.list<\/code><\/pre>\n<p>Update apt index and install InfluxDB on Ubuntu 22.04|20.04|18.04:<\/p>\n<pre class=\"wp-block-code\"><code>apt update &amp;&amp; apt install influxdb2<\/code><\/pre>\n<p>Start and enable the service to start on boot up:<\/p>\n<pre class=\"wp-block-code\"><code>systemctl enable --now influxdb<\/code><\/pre>\n<p>Check service status:<\/p>\n<pre class=\"wp-block-code\"><code>$<mark class=\"has-inline-color has-pale-pink-color\"> systemctl status influxdb<\/mark><\/code><\/pre>\n<h2><img decoding=\"async\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2024\/06\/Screenshot_7-1.png\" alt=\".deb open with archive manager\" \/><\/h2>\n<h2 class=\"wp-block-heading\">Open influxdb service ports on the firewall<\/h2>\n<p>By default, InfluxDB uses the following network ports:<\/p>\n<ul>\n<li>TCP port\u00a0<em>8086<\/em>\u00a0is used for client-server communication over InfluxDB\u2019s HTTP API<\/li>\n<li>TCP port\u00a0<em>8088<\/em>\u00a0is used for the RPC service for backup and restore<\/li>\n<\/ul>\n<p>If you have UFW service running you\u2019ll need to open port\u00a0<strong><em>8086<\/em><\/strong>\u00a0since telegraf will push metrics using this port.<span id=\"ezoic-pub-ad-placeholder-169\" class=\"ezoic-adpicker-ad\" data-ezoic-video-excluded=\"1\"><\/span><\/p>\n<pre class=\"wp-block-code\"><code>ufw allow 8086\/tcp<\/code><\/pre>\n<p>InfluxDB default configuration file is located under\u00a0<em>\/etc\/influxdb\/influxdb.conf<\/em>. Most sections are commented out, you can modify it to your liking and restart the influxdb service after.<\/p>\n<h2 class=\"wp-block-heading\">Configuring InfluxDB<\/h2>\n<p>Run the configuration script.<\/p>\n<pre class=\"wp-block-code\"><code>$ <mark class=\"has-inline-color has-pale-pink-color\">influx setup<\/mark>\r\n&gt; Welcome to InfluxDB 2.0!\r\n? Please type your primary username <mark class=\"has-inline-color has-pale-cyan-blue-color\">admin<\/mark>\r\n? Please type your password <mark class=\"has-inline-color has-pale-cyan-blue-color\">**********<\/mark>\r\n? Please type your password again <mark class=\"has-inline-color has-pale-cyan-blue-color\">**********<\/mark>\r\n? Please type your primary organization name <mark class=\"has-inline-color has-pale-cyan-blue-color\">Greencloud<\/mark>\r\n? Please type your primary bucket name <mark class=\"has-inline-color has-pale-cyan-blue-color\">mybucket<\/mark>\r\n? Please type your retention period in hours, or 0 for infinite 0\r\n? Setup with these parameters?\r\n  Username:          admin\r\n  Organization:      Greencloud\r\n  Bucket:            mybucket\r\n  Retention Period:  infinite\r\n Yes\r\nUser\tOrganization\t\tBucket\r\nadmin\tGreencloud      \tmybucket<\/code><\/pre>\n<p>Open your Web browser and go to <strong>http:\/\/server_or_hostname:8086<\/strong><span id=\"ezoic-pub-ad-placeholder-170\" class=\"ezoic-adpicker-ad\" data-ezoic-video-excluded=\"1\"><\/span><\/p>\n<h2><img decoding=\"async\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2024\/06\/Screenshot_1-2.png\" alt=\".deb open with archive manager\" \/><\/h2>\n<p>You can browse through the options available in the UI.<\/p>\n<h2><img decoding=\"async\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2024\/06\/Screenshot_2-2.png\" alt=\".deb open with archive manager\" \/><\/h2>\n<p>Under the \u201cLoad Data\u201d section you can get links on how to configure your applications to send data to Telegraf.<\/p>\n<h2><img decoding=\"async\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2024\/06\/Screenshot_3-2.png\" alt=\".deb open with archive manager\" \/><\/h2>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Welcome to our comprehensive guide on installing InfluxDB on Ubuntu 22.04, 20.04, or 18.04 Linux systems. InfluxDB is an open-source time series database platform designed for storing time series data, including metrics and events collected from various devices. It is a product of InfluxData and a key component of the TICK Stack, which includes: Telegraf [&hellip;]<\/p>\n","protected":false},"author":15,"featured_media":0,"parent":17817,"menu_order":599,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-27727","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How To Install InfluxDB on Ubuntu 22.04 - GreenCloud Documentation<\/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:\/\/green.cloud\/docs\/how-to-install-influxdb-on-ubuntu-22-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Install InfluxDB on Ubuntu 22.04 - GreenCloud Documentation\" \/>\n<meta property=\"og:description\" content=\"Welcome to our comprehensive guide on installing InfluxDB on Ubuntu 22.04, 20.04, or 18.04 Linux systems. InfluxDB is an open-source time series database platform designed for storing time series data, including metrics and events collected from various devices. It is a product of InfluxData and a key component of the TICK Stack, which includes: Telegraf [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/green.cloud\/docs\/how-to-install-influxdb-on-ubuntu-22-04\/\" \/>\n<meta property=\"og:site_name\" content=\"GreenCloud Documentation\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-19T00:45:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2024\/06\/Screenshot_7-1.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-install-influxdb-on-ubuntu-22-04\\\/\",\"url\":\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-install-influxdb-on-ubuntu-22-04\\\/\",\"name\":\"How To Install InfluxDB on Ubuntu 22.04 - GreenCloud Documentation\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-install-influxdb-on-ubuntu-22-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-install-influxdb-on-ubuntu-22-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/green.cloud\\\/docs\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/Screenshot_7-1.png\",\"datePublished\":\"2024-06-06T01:21:06+00:00\",\"dateModified\":\"2026-01-19T00:45:49+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-install-influxdb-on-ubuntu-22-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-install-influxdb-on-ubuntu-22-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-install-influxdb-on-ubuntu-22-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/green.cloud\\\/docs\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/Screenshot_7-1.png\",\"contentUrl\":\"https:\\\/\\\/green.cloud\\\/docs\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/Screenshot_7-1.png\",\"width\":903,\"height\":459},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-install-influxdb-on-ubuntu-22-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/green.cloud\\\/docs\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"GreenCloud Documents\",\"item\":\"https:\\\/\\\/green.cloud\\\/docs\\\/docs\\\/greencloud-documents\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Linux Operating Systems\",\"item\":\"https:\\\/\\\/green.cloud\\\/docs\\\/linux-operating-systems\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"How To Install InfluxDB on Ubuntu 22.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/#website\",\"url\":\"https:\\\/\\\/green.cloud\\\/docs\\\/\",\"name\":\"GreenCloud Documentation\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/green.cloud\\\/docs\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Install InfluxDB on Ubuntu 22.04 - GreenCloud Documentation","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:\/\/green.cloud\/docs\/how-to-install-influxdb-on-ubuntu-22-04\/","og_locale":"en_US","og_type":"article","og_title":"How To Install InfluxDB on Ubuntu 22.04 - GreenCloud Documentation","og_description":"Welcome to our comprehensive guide on installing InfluxDB on Ubuntu 22.04, 20.04, or 18.04 Linux systems. InfluxDB is an open-source time series database platform designed for storing time series data, including metrics and events collected from various devices. It is a product of InfluxData and a key component of the TICK Stack, which includes: Telegraf [&hellip;]","og_url":"https:\/\/green.cloud\/docs\/how-to-install-influxdb-on-ubuntu-22-04\/","og_site_name":"GreenCloud Documentation","article_modified_time":"2026-01-19T00:45:49+00:00","og_image":[{"url":"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2024\/06\/Screenshot_7-1.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/green.cloud\/docs\/how-to-install-influxdb-on-ubuntu-22-04\/","url":"https:\/\/green.cloud\/docs\/how-to-install-influxdb-on-ubuntu-22-04\/","name":"How To Install InfluxDB on Ubuntu 22.04 - GreenCloud Documentation","isPartOf":{"@id":"https:\/\/green.cloud\/docs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/green.cloud\/docs\/how-to-install-influxdb-on-ubuntu-22-04\/#primaryimage"},"image":{"@id":"https:\/\/green.cloud\/docs\/how-to-install-influxdb-on-ubuntu-22-04\/#primaryimage"},"thumbnailUrl":"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2024\/06\/Screenshot_7-1.png","datePublished":"2024-06-06T01:21:06+00:00","dateModified":"2026-01-19T00:45:49+00:00","breadcrumb":{"@id":"https:\/\/green.cloud\/docs\/how-to-install-influxdb-on-ubuntu-22-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/green.cloud\/docs\/how-to-install-influxdb-on-ubuntu-22-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/green.cloud\/docs\/how-to-install-influxdb-on-ubuntu-22-04\/#primaryimage","url":"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2024\/06\/Screenshot_7-1.png","contentUrl":"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2024\/06\/Screenshot_7-1.png","width":903,"height":459},{"@type":"BreadcrumbList","@id":"https:\/\/green.cloud\/docs\/how-to-install-influxdb-on-ubuntu-22-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/green.cloud\/docs\/"},{"@type":"ListItem","position":2,"name":"GreenCloud Documents","item":"https:\/\/green.cloud\/docs\/docs\/greencloud-documents\/"},{"@type":"ListItem","position":3,"name":"Linux Operating Systems","item":"https:\/\/green.cloud\/docs\/linux-operating-systems\/"},{"@type":"ListItem","position":4,"name":"How To Install InfluxDB on Ubuntu 22.04"}]},{"@type":"WebSite","@id":"https:\/\/green.cloud\/docs\/#website","url":"https:\/\/green.cloud\/docs\/","name":"GreenCloud Documentation","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/green.cloud\/docs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/docs\/27727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/comments?post=27727"}],"version-history":[{"count":6,"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/docs\/27727\/revisions"}],"predecessor-version":[{"id":30857,"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/docs\/27727\/revisions\/30857"}],"up":[{"embeddable":true,"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/docs\/17817"}],"wp:attachment":[{"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/media?parent=27727"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/doc_tag?post=27727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}