prometheus: add ipmi job
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Alexandre Iooss 2021-12-31 14:45:05 +01:00
parent f50778ca96
commit 944e200394
2 changed files with 18 additions and 0 deletions

View file

@ -140,4 +140,21 @@ scrape_configs:
- target_label: __address__
replacement: 127.0.0.1:9116
- job_name: ipmi
file_sd_configs:
- files:
- '/etc/prometheus/targets_ipmi.json'
metrics_path: /metrics
params:
module: [default]
relabel_configs:
# Do not put :9290 in instance name, rather here
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- source_labels: [__param_target]
target_label: __address__
replacement: '$1:9290'
...

View file

@ -39,4 +39,5 @@ scrape_configs:
- '{job="apc_pdu_snmp"}'
- '{job="docker"}'
- '{job="switch_snmp"}'
- '{job="ipmi"}'
...