From b697d750b2a012d1151301c9fdd1a0fa34c9b4f3 Mon Sep 17 00:00:00 2001 From: dvirlabs Date: Sun, 1 Jun 2025 07:05:50 +0300 Subject: [PATCH] Add prometheus-additional-scrape-configs --- charts/prometheus/my-values/values-prod.yaml | 1 + .../prometheus-additional-scrape-configs.yaml | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 manifests/prometheus/prometheus-additional-scrape-configs.yaml diff --git a/charts/prometheus/my-values/values-prod.yaml b/charts/prometheus/my-values/values-prod.yaml index a1a8457..b9fb6fc 100644 --- a/charts/prometheus/my-values/values-prod.yaml +++ b/charts/prometheus/my-values/values-prod.yaml @@ -23,6 +23,7 @@ server: hosts: - prometheus.dvirlabs.com tls: [] + additionalScrapeConfigsSecret: prometheus-additional-scrape-configs service: type: ClusterIP diff --git a/manifests/prometheus/prometheus-additional-scrape-configs.yaml b/manifests/prometheus/prometheus-additional-scrape-configs.yaml new file mode 100644 index 0000000..62aee1a --- /dev/null +++ b/manifests/prometheus/prometheus-additional-scrape-configs.yaml @@ -0,0 +1,17 @@ +apiVersion: v1 +kind: Secret +metadata: + name: prometheus-additional-scrape-configs + namespace: monitoring +type: Opaque +stringData: + additional-scrape-configs.yaml: | + - job_name: 'gitea' + metrics_path: /metrics + scheme: http + static_configs: + - targets: + - gitea-http.gitea.svc.cluster.local:3000 + authorization: + type: Bearer + credentials: prometheusmetricstoken