From e535c039362241b94aace97580caefce2305a70c Mon Sep 17 00:00:00 2001 From: Massaki Archambault Date: Fri, 20 Oct 2023 00:10:58 -0400 Subject: [PATCH] fix traefik podmonitor --- kustomize/bases/prometheus/kustomization.yaml | 1 - kustomize/overlays/monitoring/kustomization.yaml | 1 + .../monitoring/podmonitors/traefik.yaml} | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename kustomize/{bases/prometheus/traefik-podmonitor.yaml => overlays/monitoring/podmonitors/traefik.yaml} (94%) diff --git a/kustomize/bases/prometheus/kustomization.yaml b/kustomize/bases/prometheus/kustomization.yaml index c4eb35b..7110d62 100644 --- a/kustomize/bases/prometheus/kustomization.yaml +++ b/kustomize/bases/prometheus/kustomization.yaml @@ -2,7 +2,6 @@ resources: - prometheus.yaml - prometheus-rbac.yaml - prometheus-ingress.yaml - - traefik-podmonitor.yaml namePrefix: prometheus- diff --git a/kustomize/overlays/monitoring/kustomization.yaml b/kustomize/overlays/monitoring/kustomization.yaml index 163f0e6..abefcf6 100644 --- a/kustomize/overlays/monitoring/kustomization.yaml +++ b/kustomize/overlays/monitoring/kustomization.yaml @@ -15,6 +15,7 @@ resources: - servicemonitors/prometheus.yaml - servicemonitors/kube-state-metrics.yaml # - servicemonitors/node-exporter.yaml + - podmonitors/traefik.yaml - probes/blackbox-exporter.yaml namespace: monitoring diff --git a/kustomize/bases/prometheus/traefik-podmonitor.yaml b/kustomize/overlays/monitoring/podmonitors/traefik.yaml similarity index 94% rename from kustomize/bases/prometheus/traefik-podmonitor.yaml rename to kustomize/overlays/monitoring/podmonitors/traefik.yaml index e7c5f4f..1f5a632 100644 --- a/kustomize/bases/prometheus/traefik-podmonitor.yaml +++ b/kustomize/overlays/monitoring/podmonitors/traefik.yaml @@ -13,4 +13,4 @@ spec: matchLabels: app.kubernetes.io/name: traefik podMetricsEndpoints: - - port: traefik \ No newline at end of file + - port: metrics \ No newline at end of file