From e0c633c21ed045b4cb62a44b5a29696d264eb9d8 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sun, 17 Nov 2024 18:43:00 +0000 Subject: [PATCH] v-m: scrape: Fix Nextcloud URL Nextcloud uses a _client-side_ (Javascript) redirect to navigate the browser to its `index.php`. The page it serves with this redirect is static and will often load successfully, even if there is a problem with the application. This causes the Blackbox exporter to record the site as "up," even when it it definitely is not. To avoid this, we can scrape the `index.php` page explicitly, ensuring that the application is loaded. --- 20125/config.yml | 2 +- victoria-metrics/scrape.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/20125/config.yml b/20125/config.yml index 7a06670..64b9dc3 100644 --- a/20125/config.yml +++ b/20125/config.yml @@ -31,7 +31,7 @@ applications: - instance: homeassistant.pyrocufflink.blue - name: Nextcloud - url: &url https://nextcloud.pyrocufflink.net/ + url: &url https://nextcloud.pyrocufflink.net/index.php icon: url: icons/nextcloud.png alerts: diff --git a/victoria-metrics/scrape.yml b/victoria-metrics/scrape.yml index 2591f42..4c8b8ff 100644 --- a/victoria-metrics/scrape.yml +++ b/victoria-metrics/scrape.yml @@ -57,7 +57,7 @@ scrape_configs: - http://pyrocufflink.net/ - http://ebonfire.com/ - http://chmod777.sh/ - - https://nextcloud.pyrocufflink.net/ + - https://nextcloud.pyrocufflink.net/index.php - https://bitwarden.pyrocufflink.blue/ - https://git.pyrocufflink.blue/ - https://tabitha.biz/