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