Saltstack Official Linux Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

47 行
1001B

  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. nstat:
  24. fieldpass:
  25. - packet_drop
  26. - time_squeeze
  27. processes:
  28. swap:
  29. system:
  30. procstat:
  31. process:
  32. sshd:
  33. exe: sshd
  34. cron:
  35. exe: cron
  36. linux_sysctl_fs:
  37. {%- if monitoring.bond_status.interfaces is defined and monitoring.bond_status.interfaces %}
  38. bond:
  39. template: linux/files/telegraf.conf
  40. {%- if monitoring.bond_status.interfaces is list %}
  41. bond_interfaces: {{ monitoring.bond_status.interfaces }}
  42. {%- endif %}
  43. {%- if monitoring.bond_status.host_proc is defined %}
  44. host_proc: {{ monitoring.bond_status.host_proc }}
  45. {%- endif %}
  46. {%- endif %}