From 6aafd616ab1b9e4333de6936d07ad989adf0d671 Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Mon, 29 Jan 2024 01:27:45 +0300 Subject: [PATCH] infrastructure: cluster1: kube-prometheus-stack: Collect blackbox. --- dotfiles/guixsd/guixsd.scm | 1 - .../kube-prometheus-stack/values.yaml | 25 +++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/dotfiles/guixsd/guixsd.scm b/dotfiles/guixsd/guixsd.scm index 43dbe7a4d..d74f93b15 100644 --- a/dotfiles/guixsd/guixsd.scm +++ b/dotfiles/guixsd/guixsd.scm @@ -1725,7 +1725,6 @@ location / { (service prometheus-blackbox-exporter-service-type (prometheus-blackbox-exporter-configuration - (listen-address "127.0.0.1:9115") (log-level "error") (config-file (computed-file diff --git a/infrastructure/cluster1/kube-prometheus-stack/values.yaml b/infrastructure/cluster1/kube-prometheus-stack/values.yaml index 8cd440d3b..1b1852ae3 100644 --- a/infrastructure/cluster1/kube-prometheus-stack/values.yaml +++ b/infrastructure/cluster1/kube-prometheus-stack/values.yaml @@ -49,6 +49,31 @@ prometheus: - 127.0.0.1:9153 honor_labels: true job_name: dnsmasq + - static_configs: + - targets: + - https://wugi.info/ + - https://guix.wugi.info/ + - https://blog.wugi.info/ + - https://peertube.home.wugi.info/ + - http://ci.guix.gnu.org.intr + - http://ci.guix.gnu.org.wugi.info + - https://ci.guix.gnu.org + - https://bordeaux.guix.gnu.org + scrape_interval: 30s + metrics_path: /probe + params: + module: + - http_2xx + relabel_configs: + - source_labels: + - __address__ + target_label: __param_target + - source_labels: + - __param_target + target_label: instance + - replacement: 192.168.0.145:9115 + target_label: __address__ + job_name: http ingress: enabled: true ingressClassName: nginx