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.

43 lines
928B

  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. procstat:
  27. process:
  28. sshd:
  29. exe: sshd
  30. cron:
  31. exe: cron
  32. linux_sysctl_fs:
  33. {%- if monitoring.bond_status.interfaces is defined and monitoring.bond_status.interfaces %}
  34. bond:
  35. template: linux/files/telegraf.conf
  36. {%- if monitoring.bond_status.interfaces is list %}
  37. bond_interfaces: {{ monitoring.bond_status.interfaces }}
  38. {%- endif %}
  39. {%- if monitoring.bond_status.host_proc is defined %}
  40. host_proc: {{ monitoring.bond_status.host_proc }}
  41. {%- endif %}
  42. {%- endif %}