summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/server/templates/job-snippets/nut/ups.j2
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-09-23 16:50:24 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-09-23 16:50:24 +0200
commitef4432c51bacb5b92c03a42cb1ea7f9d837ec8b6 (patch)
treeffd0fc43be052f9c4b6848f2c7bccd3e0b1aa71f /roles/monitoring/prometheus/server/templates/job-snippets/nut/ups.j2
parentmove exporter_exporter configuration into canonical config dir (diff)
use / as spereator for jobs formerly known as special
Diffstat (limited to 'roles/monitoring/prometheus/server/templates/job-snippets/nut/ups.j2')
-rw-r--r--roles/monitoring/prometheus/server/templates/job-snippets/nut/ups.j213
1 files changed, 13 insertions, 0 deletions
diff --git a/roles/monitoring/prometheus/server/templates/job-snippets/nut/ups.j2 b/roles/monitoring/prometheus/server/templates/job-snippets/nut/ups.j2
new file mode 100644
index 00000000..3a2c5c62
--- /dev/null
+++ b/roles/monitoring/prometheus/server/templates/job-snippets/nut/ups.j2
@@ -0,0 +1,13 @@
+ - job_name: '{{ job }}'
+ metrics_path: /proxy
+ params:
+ module:
+ - nut
+ scheme: https
+ tls_config:
+ ca_file: /etc/ssl/prometheus/ca-crt.pem
+ cert_file: /etc/ssl/prometheus/server/scrape-crt.pem
+ key_file: /etc/ssl/prometheus/server/scrape-key.pem
+ file_sd_configs:
+ - files:
+ - "/etc/prometheus/targets/{{ job }}/*.yml"