blob: 52b4fe76070ba4726f628c39e05d9b8fd55854be [file] [log] [blame]
{%- from "linux/map.jinja" import network with context %}
agent:
input:
cpu:
percpu: false
totalcpu: true
disk:
ignore_fs:
- aufs
- rootfs
- sysfs
- proc
- devtmpfs
- devpts
- tmpfs
- fusectl
- cgroup
- overlay
diskio:
kernel:
net:
mem:
nstat:
fieldpass:
- packet_drop
- time_squeeze
processes:
swap:
system:
procstat:
process:
sshd:
exe: sshd
cron:
exe: cron
linux_sysctl_fs:
{%- set bond_interfaces = [] %}
{%- for interface_name, interface in network.interface.items() %}
{%- if interface.type == 'bond' and interface.enabled == True %}
{%- do bond_interfaces.append(interface_name) %}
{%- endif %}
{%- endfor %}
{%- if bond_interfaces|length > 0 %}
bond:
template: linux/files/telegraf.conf
{%- endif %}