configure reports to prometheus

This commit is contained in:
Antonio J. Delgado 2022-10-17 23:57:02 +03:00
parent 345d3b5041
commit 52d4c1b29a
2 changed files with 9 additions and 0 deletions

3
files/prometheus.yaml Normal file
View file

@ -0,0 +1,3 @@
---
textfile_directory: '/var/lib/prometheus/node-exporter'
report_filename: 'puppet_server.prom'

View file

@ -132,3 +132,9 @@
service:
name: update_puppet_code
enabled: true
- name: Configure reports to prometheus exporter
copy:
src: files/prometheus.yaml
dest: /etc/puppetlabs/puppet/prometheus.yaml
backup: yes