Telegraf: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) |
|||
| (7 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
=Install= | =Install= | ||
| − | * | + | *[[Telegraf 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 | ||
| + | <pre> | ||
| + | [[outputs.influxdb]] | ||
| + | urls = ["https://<domain_name>.com:8086"] | ||
| + | insecure_skip_verify = true | ||
| + | </pre> | ||
| + | *systemctl restart telegraf.service | ||
| + | |||
=Output-Plugins= | =Output-Plugins= | ||
*[[Telegraf-Docker]] | *[[Telegraf-Docker]] | ||
| + | *[[Telegraf-dns_query]] | ||
| + | *[[Telegraf-iptables]] | ||
| + | *[[Telegraf-sensors]] | ||
| + | =Plugin Tests= | ||
| + | *telegraf --config telegraf.conf --config-directory telegraf.d/ --input-filter sensors --test | ||
=Links= | =Links= | ||
*https://portal.influxdata.com/downloads | *https://portal.influxdata.com/downloads | ||
| + | *https://github.com/influxdata/telegraf | ||
| + | *https://docs.influxdata.com/telegraf/v1.3/ | ||
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