From aa7ec1258a8e5cf50b99681368b3c2e98920725e Mon Sep 17 00:00:00 2001 From: Matt Layher Date: Tue, 19 Apr 2022 13:01:06 -0400 Subject: [PATCH] nixos/servnerr-3: remove Prometheus scrape for netlify, old AP Signed-off-by: Matt Layher --- nixos/servnerr-3/prometheus.nix | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/nixos/servnerr-3/prometheus.nix b/nixos/servnerr-3/prometheus.nix index 048f7a0..322ee15 100644 --- a/nixos/servnerr-3/prometheus.nix +++ b/nixos/servnerr-3/prometheus.nix @@ -147,10 +147,11 @@ in { "https://grafana.servnerr.com" ]) # Netlify can occasionally be flappy, so check it less often. - (blackboxScrapeJobName "http_2xx_netlify" "http_2xx" "1m" [ - "https://corerad.net/status" - "https://mdlayher.com/status" - ]) + # TODO(mdlayher): Netlify may be throttling us, enable later at lower intervals. + # (blackboxScrapeJobName "http_2xx_netlify" "http_2xx" "3m" [ + # "https://corerad.net/status" + # "https://mdlayher.com/status" + # ]) (blackboxScrape "http_401" "15s" [ "https://alertmanager.servnerr.com" "https://plex.servnerr.com" @@ -167,11 +168,7 @@ in { # SNMP relabeling configuration required to properly replace the instance # names and query the correct devices. (lib.mkMerge [ - (staticScrape "snmp" [ - "switch-livingroom01" - "switch-office01" - "ap-livingroom02.ipv4" - ]) + (staticScrape "snmp" [ "switch-livingroom01" "switch-office01" ]) { metrics_path = "/snmp"; params = { module = [ "if_mib" ]; };