From ba9333898ba880f58135045a862565aaab3a0e34 Mon Sep 17 00:00:00 2001 From: dvirlabs Date: Fri, 1 Aug 2025 04:30:44 +0300 Subject: [PATCH] Add more harbor metrics --- .../additional-scrape-configs.yaml | 41 +++++++++++++++---- 1 file changed, 32 insertions(+), 9 deletions(-) diff --git a/manifests/prometheus-scrape-secret/additional-scrape-configs.yaml b/manifests/prometheus-scrape-secret/additional-scrape-configs.yaml index f64e136..163caac 100644 --- a/manifests/prometheus-scrape-secret/additional-scrape-configs.yaml +++ b/manifests/prometheus-scrape-secret/additional-scrape-configs.yaml @@ -9,24 +9,47 @@ type: Opaque stringData: additional-scrape-configs.yaml: |+ # This content will be auto-updated by the pipeline - - job_name: harbor + - job_name: harbor-exporter static_configs: - - targets: - - harbor-core.dev-tools.svc.cluster.local:8001 + - targets: + - harbor-core.dev-tools.svc.cluster.local:8001 + + - job_name: harbor-core + params: + comp: [core] + static_configs: + - targets: + - harbor-core.dev-tools.svc.cluster.local:8001 + + - job_name: harbor-registry + params: + comp: [registry] + static_configs: + - targets: + - harbor-core.dev-tools.svc.cluster.local:8001 + + - job_name: harbor-jobservice + params: + comp: [jobservice] + static_configs: + - targets: + - harbor-core.dev-tools.svc.cluster.local:8001 - job_name: gitea static_configs: - - targets: - - gitea-http.dev-tools.svc.cluster.local:3000 + - targets: + - gitea-http.dev-tools.svc.cluster.local:3000 bearer_token: prometheusmetricstoken + - job_name: minio-bitnami static_configs: - - targets: - - minio.infra.svc.cluster.local:9000 + - targets: + - minio.infra.svc.cluster.local:9000 + - job_name: uptime-kuma static_configs: - - targets: - - uptime-kuma-prod.monitoring.svc.cluster.local:3001 + - targets: + - uptime-kuma-prod.monitoring.svc.cluster.local:3001 basic_auth: username: dvirlabs password: dvir4210200Ho