init.sls 465 B

12345678910111213141516171819
  1. #
  2. # Prometheus exporters to be set up
  3. #
  4. # All nodes get node_exporter
  5. prometheus-node-exporter:
  6. pkg.installed:
  7. - name: prometheus-node-exporter
  8. service.running:
  9. - enable: true
  10. - reload: true
  11. /etc/default/prometheus-node-exporter:
  12. file.managed:
  13. - source: salt://prometheus-exporters/node-exporter/prometheus-node-exporter.default
  14. - require:
  15. - pkg: prometheus-node-exporter
  16. - watch_in:
  17. - service: prometheus-node-exporter