From 3f3974755703b5ba72a82a9e9f784b90e99f64cb Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sun, 22 Sep 2024 12:06:03 -0500 Subject: [PATCH] v-m: Redo Internet/DNS connectivity checks (again) Using domain names in the "blackbox" probe makes it difficult to tell the difference between a complete Internet outage and DNS issues. I switched to using these names when I changed how the firewall routed traffic to the public DNS servers, since those were the IP addresses I was using to determine if the Internet was "up." I think it makes sense, though, to just ping the upstream gateway for that check. If EverFast changes their routing or numbering, we'll just have to update our checks to match. --- victoria-metrics/blackbox.yml | 2 +- victoria-metrics/scrape.yml | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/victoria-metrics/blackbox.yml b/victoria-metrics/blackbox.yml index d99cf00..ff8bdd9 100644 --- a/victoria-metrics/blackbox.yml +++ b/victoria-metrics/blackbox.yml @@ -10,7 +10,7 @@ modules: timeout: 2s dns_recursive: dns: - query_name: news.ycombinator.com + query_name: github.com query_type: A prober: dns timeout: 5s diff --git a/victoria-metrics/scrape.yml b/victoria-metrics/scrape.yml index 0a345ef..88f67ed 100644 --- a/victoria-metrics/scrape.yml +++ b/victoria-metrics/scrape.yml @@ -34,10 +34,7 @@ scrape_configs: - icmp static_configs: - targets: - - github.com - - cloudflare.com - - amazonaws.com - - azure.com + - 23.29.47.1 relabel_configs: - source_labels: [__address__] target_label: __param_target