Telegraf configuration changes

- Added shellscript for custom metrics - external IP & Temp
- Bumped Telegraf version #
This commit is contained in:
Nathaniel Landau
2022-03-10 09:28:59 -05:00
parent e66ea429a2
commit abbbdff16b
6 changed files with 39 additions and 13 deletions

View File

@@ -0,0 +1,5 @@
[[inputs.exec]]
commands = ["/usr/local/bin/telegraf_custom_metrics.sh"]
timeout = "5s"
name_suffix = "_homelab_metrics"
data_format = "influx"

View File

@@ -1,10 +0,0 @@
[[inputs.exec]]
{% if 'pis' in group_names %}
commands = ["cat /sys/class/thermal/thermal_zone0/temp"]
{% elif 'macs' in group_names %}
commands = ["${HOME}/dotfiles-private/config/telegraf/cputemp.sh"]
{% endif %}
timeout = "5s"
name_suffix = "_cpu_temp"
data_format = "value"
data_type = "integer"