From e2f10726767dac39204ece83b183cb8195c7cee4 Mon Sep 17 00:00:00 2001 From: Alex Denes Date: Tue, 23 Jul 2024 17:41:13 +0000 Subject: [PATCH] Lower scraping interval and increase timeout for smartctl targets --- config/prometheus/APKBUILD | 4 ++-- config/prometheus/config.yaml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/prometheus/APKBUILD b/config/prometheus/APKBUILD index ebfecd3..c8bb948 100644 --- a/config/prometheus/APKBUILD +++ b/config/prometheus/APKBUILD @@ -3,7 +3,7 @@ . ../APKBUILD-config.template -pkgver=2024.05.27.01 +pkgver=2024.06.15.01 pkgrel=0 source=" config.yaml @@ -21,5 +21,5 @@ package() { } sha512sums=" -a100ac5e45ab945f7baf9079be6d501a0cdaf7d1e90338cbcb26f3a30d75c6b15ced546effd7418a62eefce40e483c8f5bd252d7c9ee6c3afc72601acb8da05d config.yaml +249ffe3355cb00d1c319d4ff6503f2effcfab2349e0a47e0b295fe7500a84269b39d69a0d90799a3279482efc4490800af10d301d20329b8d41382b3922449f9 config.yaml " diff --git a/config/prometheus/config.yaml b/config/prometheus/config.yaml index 3c683c2..c5f6ffd 100644 --- a/config/prometheus/config.yaml +++ b/config/prometheus/config.yaml @@ -31,6 +31,8 @@ scrape_configs: - names: [ 'libvirt.prometheus.routinginfo.internal' ] type: 'SRV' - job_name: "smartctl" + scrape_interval: 1m # Less important and also takes longer to query + scrape_timeout: 30s # Handle scraping delays dns_sd_configs: - names: [ 'smartctl_exporters.prometheus.routinginfo.internal' ] type: 'SRV'