prometheus: Add snmp exporter
Mostly hardcoded for now
This commit is contained in:
parent
09b2156d78
commit
8136e10758
1 changed files with 21 additions and 0 deletions
|
@ -10,6 +10,27 @@ scrape_configs:
|
|||
- targets:
|
||||
- "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
|
||||
scheme: https
|
||||
tls_config:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue