Telegraf: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) |
|||
| (2 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
=Install= | =Install= | ||
* | *[[Telegraf install]] | ||
=Config= | =Config= | ||
| Zeile 7: | Zeile 7: | ||
=Generate config with only cpu input & influxdb output plugins defined= | =Generate config with only cpu input & influxdb output plugins defined= | ||
*telegraf --input-filter cpu --output-filter influxdb config | *telegraf --input-filter cpu --output-filter influxdb config | ||
==Connect to HTTPS-Influxdb== | |||
*vi /etc/telegraf/telegraf.conf | |||
<pre> | |||
[[outputs.influxdb]] | |||
urls = ["https://<domain_name>.com:8086"] | |||
insecure_skip_verify = true | |||
</pre> | |||
*systemctl restart telegraf.service | |||
=Output-Plugins= | =Output-Plugins= | ||
| Zeile 12: | Zeile 21: | ||
*[[Telegraf-dns_query]] | *[[Telegraf-dns_query]] | ||
*[[Telegraf-iptables]] | *[[Telegraf-iptables]] | ||
*[[Telegraf-sensors]] | |||
=Plugin Tests= | |||
*telegraf --config telegraf.conf --config-directory telegraf.d/ --input-filter sensors --test | |||
=Links= | =Links= | ||
Aktuelle Version vom 10. Oktober 2019, 07:50 Uhr
Install
Config
- cd /etc/telegraf
- telegraf config > telegraf.conf
Generate config with only cpu input & influxdb output plugins defined
- telegraf --input-filter cpu --output-filter influxdb config
Connect to HTTPS-Influxdb
- vi /etc/telegraf/telegraf.conf
[[outputs.influxdb]] urls = ["https://<domain_name>.com:8086"] insecure_skip_verify = true
- systemctl restart telegraf.service
Output-Plugins
Plugin Tests
- telegraf --config telegraf.conf --config-directory telegraf.d/ --input-filter sensors --test