summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inventory/group_vars/ele-ups/vars.yml6
-rw-r--r--inventory/host_vars/ele-mon.yml28
2 files changed, 6 insertions, 28 deletions
diff --git a/inventory/group_vars/ele-ups/vars.yml b/inventory/group_vars/ele-ups/vars.yml
index b9e1eaba..cbee3ee8 100644
--- a/inventory/group_vars/ele-ups/vars.yml
+++ b/inventory/group_vars/ele-ups/vars.yml
@@ -13,3 +13,9 @@ ups_query_sources:
prometheus_scrape_endpoint: "{{ network_mgmt_zone.prefix | ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ipaddr('address') }}:9100"
prometheus_exporters_default:
- openwrt
+
+prometheus_special_job_nut:
+ exporter_hostname: ele-mon
+ instance: "ups-{{ ups_name }}"
+ ups: "{{ ups_name }}"
+ server: "{{ network_mgmt_zone.prefix | ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ipaddr('address') }}"
diff --git a/inventory/host_vars/ele-mon.yml b/inventory/host_vars/ele-mon.yml
index 8d683174..93ed7f48 100644
--- a/inventory/host_vars/ele-mon.yml
+++ b/inventory/host_vars/ele-mon.yml
@@ -128,34 +128,6 @@ grafana_secret_key: "{{ vault_grafana_secret_key }}"
prometheus_server_jobs_extra: |
- - job_name: 'nut'
- 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
- static_configs:
- - targets:
- - nextlib0@192.168.42.210
- - nextlib1@192.168.42.211
- - nextlib2@192.168.42.212
- - nextlib3@192.168.42.213
- relabel_configs:
- - source_labels: [__address__]
- regex: .*@(.*)
- target_label: __param_server
- - source_labels: [__address__]
- regex: (.*)@.*
- target_label: __param_ups
- - source_labels: [__param_ups]
- target_label: instance
- - target_label: __address__
- replacement: 192.168.18.220:9999
-
- job_name: 'mikrotik'
metrics_path: /proxy
params: