configure timeout on snmp scraping for quanta

This commit is contained in:
elkmaennchen 2024-03-09 19:29:34 +01:00
parent 66e6c960d3
commit 0b40cc4b9b
Signed by: elkmaennchen
GPG key ID: E5C850EB50335184
3 changed files with 6 additions and 2 deletions

View file

@ -3,6 +3,7 @@ prometheus__scraping_quanta:
targets: "{{ groups.quanta }}"
address: 127.0.0.1:9116
path: /snmp
timeout: 60s
params:
module:
- quanta

4
hosts
View file

@ -58,7 +58,7 @@ edge
[ntp]
ntp-[1:2].int.infra.auro.re
[radius]
[radiusng]
radius-[1:2].isp.infra.auro.re
[vm_network:children]
@ -66,7 +66,7 @@ vpn
edge
dhcp
dns
radius
radiusng
ntp
#ldap
isp

View file

@ -25,6 +25,9 @@ def convert_jobs(config):
if "path" in job:
config["metrics_path"] = job["path"]
if "timeout" in job:
config["scrape_timeout"] = job["timeout"]
if "address" in job:
try: