prometheus: add _snmp suffix to ilo target
This commit is contained in:
parent
7d9ff449a7
commit
733e9f555d
2 changed files with 4 additions and 4 deletions
|
@ -17,7 +17,7 @@
|
|||
{{ groups['fleming_unifi'] | list | sort }}
|
||||
prometheus_ipmi_targets: |
|
||||
{{ groups['fleming_pve'] + groups['fleming_server'] | list | sort }}
|
||||
prometheus_ilo_targets: |
|
||||
prometheus_ilo_snmp_targets: |
|
||||
{{ groups['fleming_ilo'] | list | sort }}
|
||||
|
||||
update_motd:
|
||||
|
|
|
@ -158,10 +158,10 @@ scrape_configs:
|
|||
replacement: '$1:9290'
|
||||
{% endif %}
|
||||
|
||||
{% if prometheus_ilo_targets is defined %}
|
||||
- job_name: ilo
|
||||
{% if prometheus_ilo_snmp_targets is defined %}
|
||||
- job_name: ilo_snmp
|
||||
static_configs:
|
||||
- targets: {{ prometheus_ilo_targets | to_json }}
|
||||
- targets: {{ prometheus_ilo_snmp_targets | to_json }}
|
||||
metrics_path: /snmp
|
||||
scrape_timeout: 30s
|
||||
params:
|
||||
|
|
Loading…
Reference in a new issue