{"id":1299,"date":"2021-07-20T22:03:33","date_gmt":"2021-07-20T21:03:33","guid":{"rendered":"https:\/\/www.symablog.de\/blog\/?p=1299"},"modified":"2021-07-20T22:27:44","modified_gmt":"2021-07-20T21:27:44","slug":"telegraf-installieren-influxdb","status":"publish","type":"post","link":"https:\/\/www.symablog.de\/blog\/telegraf-installieren-influxdb\/","title":{"rendered":"Spickzettel: Telegraf installieren"},"content":{"rendered":"\n<ul class=\"wp-block-list\"><li>Voraussetzung: <a href=\"https:\/\/www.symablog.de\/blog\/influxdb-instalieren\/\">Installation der InfluxDB<\/a><\/li><li>Installation Telegraf Paket:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>$ sudo apt-get install apt-transport-https\n<\/strong>...\n<strong>$ wget -qO- https:\/\/repos.influxdata.com\/influxdb.key | sudo apt-key add -<\/strong>\n OK\n<strong>$ source \/etc\/lsb-release<\/strong>\n\n<strong>$ echo \"deb https:\/\/repos.influxdata.com\/${DISTRIB_ID,,} ${DISTRIB_CODENAME} stable\" | sudo tee \/etc\/apt\/sources.list.d\/influxdb.list<\/strong>\n deb https:\/\/repos.influxdata.com\/ubuntu focal stable\n\n<strong>$ sudo apt-get update &amp;&amp; sudo apt-get install telegraf<\/strong>\n...\nReading package lists\u2026 Done\nBuilding dependency tree\nReading state information\u2026 Done\nThe following NEW packages will be installed:\n   telegraf\n0 upgraded, 1 newly installed, 0 to remove and 13 not upgraded.\n...\nPreparing to unpack \u2026\/telegraf_1.19.1-1_arm64.deb \u2026\nUnpacking telegraf (1.19.1-1) \u2026\nSetting up telegraf (1.19.1-1) \u2026\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/telegraf.service \u2192 \/lib\/systemd\/system\/telegraf.service.<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Dienst starten<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>$ systemctl start telegraf<\/strong><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Statusabfrage<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>$ systemctl status telegraf<\/strong>\n <span class=\"has-inline-color has-vivid-green-cyan-color\">\u25cf<\/span> telegraf.service - The plugin-driven server agent for reporting metrics into InfluxDB\n      Loaded: loaded (\/lib\/systemd\/system\/telegraf.service; enabled; vendor preset: enabled)\n      Active: <span class=\"has-inline-color has-vivid-green-cyan-color\"><strong>active (running)<\/strong><\/span> since Tue 2021-07-20 22:23:30 CEST; 32min ago\n        Docs: https:\/\/github.com\/influxdata\/telegraf\n    Main PID: 1686 (telegraf)\n       Tasks: 10 (limit: 973)\n      CGroup: \/system.slice\/telegraf.service\n              \u2514\u25001686 \/usr\/bin\/telegraf -config \/etc\/telegraf\/telegraf.conf -config-directory \/etc\/telegraf\/telegraf.d<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Telegraf konfigurieren:<br>Konfigurationsdatei: \/etc\/telegraf\/telegraf.conf (zun\u00e4chst als default durch Installation angelegt)<br>Anzeige  der Konfiguration und schreiben in eine Kopie im aktuellen Verzeichnis <\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">$ telegraf config | tee telegraf.conf<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Voraussetzung: Installation der InfluxDBInstallation Telegraf Paket: $ sudo apt-get install apt-transport-https &#8230; $ wget -qO- https:\/\/repos.influxdata.com\/influxdb.key | sudo apt-key add &#8211; OK $ source \/etc\/lsb-release $ echo &#8222;deb https:\/\/repos.influxdata.com\/${DISTRIB_ID,,} ${DISTRIB_CODENAME} stable&#8220; | sudo tee \/etc\/apt\/sources.list.d\/influxdb.list deb https:\/\/repos.influxdata.com\/ubuntu focal stable $ &hellip; <a class=\"more-link\" href=\"https:\/\/www.symablog.de\/blog\/telegraf-installieren-influxdb\/\">Weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[229,218,78,98],"tags":[231,211,233,232],"class_list":["post-1299","post","type-post","status-publish","format-standard","hentry","category-influxdb","category-linux","category-praxis","category-raspberry-pi","tag-influxdb","tag-linux","tag-telegraf","tag-ubuntu"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p37Rzq-kX","_links":{"self":[{"href":"https:\/\/www.symablog.de\/blog\/wp-json\/wp\/v2\/posts\/1299"}],"collection":[{"href":"https:\/\/www.symablog.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.symablog.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.symablog.de\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.symablog.de\/blog\/wp-json\/wp\/v2\/comments?post=1299"}],"version-history":[{"count":5,"href":"https:\/\/www.symablog.de\/blog\/wp-json\/wp\/v2\/posts\/1299\/revisions"}],"predecessor-version":[{"id":1308,"href":"https:\/\/www.symablog.de\/blog\/wp-json\/wp\/v2\/posts\/1299\/revisions\/1308"}],"wp:attachment":[{"href":"https:\/\/www.symablog.de\/blog\/wp-json\/wp\/v2\/media?parent=1299"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.symablog.de\/blog\/wp-json\/wp\/v2\/categories?post=1299"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.symablog.de\/blog\/wp-json\/wp\/v2\/tags?post=1299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}