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-21 19:34:25 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-09-21 19:42:54 +0200
commita8e8cb2ed3d5e68d89edd8785ed59f0ee45f81bf (patch)
treee6457f4c46782e27c8d359e966e8afe1afca87a8 /roles/monitoring/prometheus/server/templates/job-snippets/nut-ups.j2
parentch-sensors1 add new 1-wire therm sensor and fix regexp (diff)
prometheus: simplify job config
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"