From 52d4c1b29a66fb5a350295caeaefd8a0b13a7c98 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Mon, 17 Oct 2022 23:57:02 +0300 Subject: [PATCH] configure reports to prometheus --- files/prometheus.yaml | 3 +++ tasks/configure.yml | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 files/prometheus.yaml 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