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 }}
|
{{ groups['fleming_unifi'] | list | sort }}
|
||||||
prometheus_ipmi_targets: |
|
prometheus_ipmi_targets: |
|
||||||
{{ groups['fleming_pve'] + groups['fleming_server'] | list | sort }}
|
{{ groups['fleming_pve'] + groups['fleming_server'] | list | sort }}
|
||||||
prometheus_ilo_targets: |
|
prometheus_ilo_snmp_targets: |
|
||||||
{{ groups['fleming_ilo'] | list | sort }}
|
{{ groups['fleming_ilo'] | list | sort }}
|
||||||
|
|
||||||
update_motd:
|
update_motd:
|
||||||
|
|
|
@ -158,10 +158,10 @@ scrape_configs:
|
||||||
replacement: '$1:9290'
|
replacement: '$1:9290'
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if prometheus_ilo_targets is defined %}
|
{% if prometheus_ilo_snmp_targets is defined %}
|
||||||
- job_name: ilo
|
- job_name: ilo_snmp
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: {{ prometheus_ilo_targets | to_json }}
|
- targets: {{ prometheus_ilo_snmp_targets | to_json }}
|
||||||
metrics_path: /snmp
|
metrics_path: /snmp
|
||||||
scrape_timeout: 30s
|
scrape_timeout: 30s
|
||||||
params:
|
params:
|
||||||
|
|
Loading…
Reference in a new issue