{"id":2845,"date":"2019-05-06T14:33:32","date_gmt":"2019-05-06T11:33:32","guid":{"rendered":"https:\/\/kifarunix.com\/?p=2845"},"modified":"2020-05-30T11:28:51","modified_gmt":"2020-05-30T08:28:51","slug":"install-telegraf-on-fedora-30-fedora-29","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-telegraf-on-fedora-30-fedora-29\/","title":{"rendered":"Install Telegraf on Fedora 30\/Fedora 29"},"content":{"rendered":"\n<p>In this guide, we are going to learn how to install Telegraf on Fedora 30\/Fedora 29. <a href=\"https:\/\/www.influxdata.com\/time-series-platform\/telegraf\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Telegraf (opens in a new tab)\">Telegraf<\/a> is a plugin-driven server agent that is used for collecting and sending metrics and events from databases, systems, and IoT sensors. It one of the major components of TICK stack which is an acronym for Telegraf, InfluxDB (time series DB), Chronograf (interface for InfluxDB) and Kapacitor (real time streaming data processing engine).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install Telegraf on Fedora 30\/Fedora 29<\/h2>\n\n\n\n<p>Well, to install Telegraf on Fedora 30\/29, you can either use the PRM package or simply install it from InfluxDB repo. However, to use the InfluxDB repo, you need to create the InfluxDB repository on Fedora 30\/29.<\/p>\n\n\n\n<p>Check how to install InfluxDB on Fedora 30 in our guide by following the link below;<\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/kifarunix.com\/install-influxdb-on-fedora-30-fedora-29\/\" target=\"_blank\">Install InfluxDB on Fedora 30\/Fedora 29<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Install Telegraf using RPM package<\/h3>\n\n\n\n<p>To install Telegraf on Fedora 30\/29 using RPM package, navigate to Telegraf&#8217;s downloads page and grab an RPM binary. You can simply fire up your terminal and execute the command below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>wget https:\/\/dl.influxdata.com\/telegraf\/releases\/telegraf-1.10.3-1.x86_64.rpm<\/code><\/pre>\n\n\n\n<p>Once you have it downloaded, then you can simply install it locally using DNF package manager which will sort any dependency issue, if there is any;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>dnf localinstall telegraf-1.10.3-1.x86_64.rpm<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"mce_8\">Install Telegraf on from InfluxDB Repo<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Add InfluxDB Repo<\/h4>\n\n\n\n<p>Create InfluxDB repo with the content below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>vim \/etc\/yum.repos.d\/influxdb.repo<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;influxdb]\nname = InfluxDB Repository - RHEL 7\nbaseurl = https:\/\/repos.influxdata.com\/rhel\/7Server\/x86_64\/stable\/\nenabled = 1\ngpgcheck = 1\ngpgkey = https:\/\/repos.influxdata.com\/influxdb.key<\/code><\/pre>\n\n\n\n<p>Once you have the repo in place, then install Telegraf by running the command below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>dnf install telegraf<\/code><\/pre>\n\n\n\n<p>Once the installation is done, you can start and enable Telegraf to run on system boot;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl start telegraf<br>systemctl enable telegraf<\/code><\/pre>\n\n\n\n<p>Check the status of Telegraf;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl status telegraf<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>\u25cf telegraf.service - The plugin-driven server agent for reporting metrics into InfluxDB\n   Loaded: loaded (\/usr\/lib\/systemd\/system\/telegraf.service; enabled; vendor preset: disabled)\n   Active: active (running) since Mon 2019-05-06 14:25:12 EAT; 16s ago\n     Docs: https:\/\/github.com\/influxdata\/telegraf\n Main PID: 9147 (telegraf)\n    Tasks: 8 (limit: 1144)\n   Memory: 23.6M\n   CGroup: \/system.slice\/telegraf.service\n           \u2514\u25009147 \/usr\/bin\/telegraf -config \/etc\/telegraf\/telegraf.conf -config-directory \/etc\/telegraf\/telegraf.d<\/code><\/pre>\n\n\n\n<p>Great. You have Telegraf up and running on your Fedora 30\/39 server. We will cover the configuration of Telegraf in our next guide.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this guide, we are going to learn how to install Telegraf on Fedora 30\/Fedora 29. Telegraf is a plugin-driven server agent that is used<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[72,933,932],"tags":[924,935,934],"class_list":["post-2845","post","type-post","status-publish","format-standard","hentry","category-monitoring","category-telegraf","category-tick-stack","tag-fedora-30","tag-telegraf","tag-tick-stack","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/2845"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=2845"}],"version-history":[{"count":3,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/2845\/revisions"}],"predecessor-version":[{"id":5952,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/2845\/revisions\/5952"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=2845"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=2845"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=2845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}