telegraf: Add parameter to enable ZFS stats

Previous templates used the assumptioon, that FreeBSD will always have
ZFS and nothing else.
This commit is contained in:
Jannik Beyerstedt 2022-12-04 15:17:43 +01:00
parent f3ffdfc133
commit 002c19f3ad
3 changed files with 3 additions and 1 deletions

View file

@ -84,7 +84,7 @@
name_override = "cpu_temp"
{% endif %}
{% if ((override_os_family is defined) | ternary(override_os_family,ansible_os_family)) == 'FreeBSD' %}
{% if telegraf_enable_zfs %}
# Read metrics of ZFS from arcstats, zfetchstats, vdev_cache_stats, and pools
[[inputs.zfs]]
## By default, telegraf gather all zfs stats