Saltstack Official Linux Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
831B

  1. {%- from "linux/map.jinja" import monitoring with context %}
  2. agent:
  3. input:
  4. cpu:
  5. percpu: false
  6. totalcpu: true
  7. disk:
  8. ignore_fs:
  9. - aufs
  10. - rootfs
  11. - sysfs
  12. - proc
  13. - devtmpfs
  14. - devpts
  15. - tmpfs
  16. - fusectl
  17. - cgroup
  18. - overlay
  19. diskio:
  20. kernel:
  21. net:
  22. mem:
  23. processes:
  24. swap:
  25. system:
  26. linux_sysctl_fs:
  27. {%- if monitoring.bond_status.interfaces is defined and monitoring.bond_status.interfaces %}
  28. bond:
  29. template: linux/files/telegraf.conf
  30. {%- if monitoring.bond_status.interfaces is list %}
  31. bond_interfaces: {{ monitoring.bond_status.interfaces }}
  32. {%- endif %}
  33. {%- if monitoring.bond_status.host_proc is defined %}
  34. host_proc: {{ monitoring.bond_status.host_proc }}
  35. {%- endif %}
  36. {%- endif %}