diff --git a/files/prometheus.yaml b/files/prometheus.yaml new file mode 100644 index 0000000..fb7bbd5 --- /dev/null +++ b/files/prometheus.yaml @@ -0,0 +1,3 @@ +--- +textfile_directory: '/var/lib/prometheus/node-exporter' +report_filename: 'puppet_server.prom' \ No newline at end of file diff --git a/tasks/configure.yml b/tasks/configure.yml index 622b142..43e090d 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -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 \ No newline at end of file