From 1a86c6a49ffca280c52a72aed84a234d4d55b20e Mon Sep 17 00:00:00 2001 From: dvirlabs Date: Sun, 29 Jun 2025 06:33:05 +0300 Subject: [PATCH] Update monitoring.yaml for woodpecker and harbor --- manifests/harbor/monitoring.yaml | 9 ++++++++- manifests/woodpecker/monitoring.yaml | 12 ++++-------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/manifests/harbor/monitoring.yaml b/manifests/harbor/monitoring.yaml index 0da7bba..a7638f6 100644 --- a/manifests/harbor/monitoring.yaml +++ b/manifests/harbor/monitoring.yaml @@ -1,3 +1,10 @@ enabled: true targets: - - harbor-core.dev-tools.svc.cluster.local:8001 \ No newline at end of file + - harbor-core.dev-tools.svc.cluster.local:8001 + +external_check: + url: https://woodpecker.dvirlabs.com + expected_codes: + "502": critical + "404": warning + "1033": critical \ No newline at end of file diff --git a/manifests/woodpecker/monitoring.yaml b/manifests/woodpecker/monitoring.yaml index b00a3dd..0921769 100644 --- a/manifests/woodpecker/monitoring.yaml +++ b/manifests/woodpecker/monitoring.yaml @@ -10,11 +10,7 @@ scheme: https # External HTTP check: external_check: url: https://woodpecker.dvirlabs.com - alerts: - - code: 502 - message: "⚠️ Woodpecker down (502)" - severity: critical - - code: 404 - message: "❌ Woodpecker not found (404)" - severity: warning - + expected_codes: + "502": critical + "404": warning + "1033": critical