prometheus: Add snmp exporter

Mostly hardcoded for now
This commit is contained in:
Timo Makinen 2024-02-13 20:02:59 +00:00
parent 09b2156d78
commit 8136e10758

View file

@ -10,6 +10,27 @@ scrape_configs:
- targets: - targets:
- "127.0.0.1:9090" - "127.0.0.1:9090"
- job_name: snmp
scheme: https
tls_config:
ca_file: "{{ tls_certs }}/ca.crt"
key_file: "{{ tls_private }}/{{ inventory_hostname }}.key"
cert_file: "{{ tls_certs }}/{{ inventory_hostname }}.crt"
static_configs:
- targets:
- 172.20.25.102
metrics_path: /snmp
params:
auth: [public_v2]
module: [if_mib]
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: nms.home.foo.sh:9116
- job_name: node - job_name: node
scheme: https scheme: https
tls_config: tls_config: