prometheus: add _snmp suffix to ilo target

This commit is contained in:
Alexandre Iooss 2021-12-31 20:03:04 +01:00
parent 7d9ff449a7
commit 733e9f555d
2 changed files with 4 additions and 4 deletions

View file

@ -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:

View file

@ -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: