Add FreeBSD support
This commit is contained in:
parent
39045ed5a0
commit
22dd9bfb3d
6 changed files with 60 additions and 21 deletions
|
@ -65,6 +65,8 @@ AcceptEnv LANG LC_*
|
|||
# Log sftp level file access (read/write/etc.) that would not be easily logged otherwise.
|
||||
{% if ((override_os_family is defined) | ternary(override_os_family,ansible_os_family)) == 'Centos' %}
|
||||
Subsystem sftp /usr/libexec/openssh/sftp-server -f AUTHPRIV -l INFO
|
||||
{% elif ((override_os_family is defined) | ternary(override_os_family,ansible_os_family)) == 'FreeBSD' %}
|
||||
Subsystem sftp /usr/libexec/sftp-server
|
||||
{% else %}
|
||||
Subsystem sftp /usr/lib/openssh/sftp-server -f AUTHPRIV -l INFO
|
||||
{% endif %}
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
# Read metrics about disk usage by mount point
|
||||
[[inputs.disk]]
|
||||
# By default, telegraf gather stats for all mountpoints.
|
||||
mount_points = ["/", "/mnt/volume-nbg1-1"]
|
||||
mount_points = ["/", "/mnt/volume-nbg1-1", "/zroot", "/zfspool/zfsstore"]
|
||||
ignore_fs = ["tmpfs", "devtmpfs", "devfs", "overlay", "aufs", "squashfs"]
|
||||
fieldpass = ["total", "free", "used_percent"]
|
||||
|
||||
|
@ -83,3 +83,12 @@
|
|||
data_type = "integer"
|
||||
name_override = "cpu_temp"
|
||||
{% endif %}
|
||||
|
||||
{% if ((override_os_family is defined) | ternary(override_os_family,ansible_os_family)) == 'FreeBSD' %}
|
||||
# Read metrics of ZFS from arcstats, zfetchstats, vdev_cache_stats, and pools
|
||||
[[inputs.zfs]]
|
||||
## By default, telegraf gather all zfs stats
|
||||
kstatMetrics = ["arcstats", "zfetchstats", "vdev_cache_stats"]
|
||||
## By default, don't gather zpool stats
|
||||
poolMetrics = true
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue