From a24b473566c31c750882f5037211347ee058a2bd Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Sat, 1 Jan 2022 16:45:32 +0100 Subject: [PATCH] prometheus: reduce iLO SNMP timeout --- roles/prometheus/templates/prometheus.yml.j2 | 1 - roles/prometheus/templates/snmp.yml.j2 | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/prometheus/templates/prometheus.yml.j2 b/roles/prometheus/templates/prometheus.yml.j2 index 6c1fbda..bcaa598 100644 --- a/roles/prometheus/templates/prometheus.yml.j2 +++ b/roles/prometheus/templates/prometheus.yml.j2 @@ -163,7 +163,6 @@ scrape_configs: static_configs: - targets: {{ prometheus_ilo_snmp_targets | to_json }} metrics_path: /snmp - scrape_timeout: 30s params: module: - ilo diff --git a/roles/prometheus/templates/snmp.yml.j2 b/roles/prometheus/templates/snmp.yml.j2 index 4ecd4b3..3b9407a 100644 --- a/roles/prometheus/templates/snmp.yml.j2 +++ b/roles/prometheus/templates/snmp.yml.j2 @@ -695,6 +695,8 @@ ilo: 3: poweredOn 4: insufficientPowerOrPowerOnDenied version: 3 + # Reduce timeout to retry faster + timeout: 1s auth: security_level: authPriv username: {{ snmp_ilo_user }}