From 4374c8cead337a8a2f02416014ccc350d3abb8d4 Mon Sep 17 00:00:00 2001 From: Alexander Rogov Date: Fri, 26 Jun 2026 20:46:58 +0300 Subject: [PATCH] add traefik VMPodScrape for prometheus metrics collection --- argocd/apps/traefik.yaml | 18 ++++++++++++------ manifests/traefik/vmpodscrape.yaml | 15 +++++++++++++++ 2 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 manifests/traefik/vmpodscrape.yaml diff --git a/argocd/apps/traefik.yaml b/argocd/apps/traefik.yaml index bdae725..03335f4 100644 --- a/argocd/apps/traefik.yaml +++ b/argocd/apps/traefik.yaml @@ -9,12 +9,18 @@ metadata: - resources-finalizer.argocd.argoproj.io spec: project: default - source: - repoURL: https://traefik.github.io/charts - chart: traefik - targetRevision: "41.0.0" - helm: - values: | + sources: + - repoURL: http://gitea.gitea.svc.cluster.local:3000/admin/main.git + targetRevision: master + path: manifests/traefik + directory: + recurse: true + include: "*.yaml" + - repoURL: https://traefik.github.io/charts + chart: traefik + targetRevision: "41.0.0" + helm: + values: | deployment: kind: DaemonSet podAnnotations: diff --git a/manifests/traefik/vmpodscrape.yaml b/manifests/traefik/vmpodscrape.yaml new file mode 100644 index 0000000..6750c53 --- /dev/null +++ b/manifests/traefik/vmpodscrape.yaml @@ -0,0 +1,15 @@ +apiVersion: operator.victoriametrics.com/v1beta1 +kind: VMPodScrape +metadata: + name: traefik + namespace: traefik +spec: + namespaceSelector: + matchNames: + - traefik + podMetricsEndpoints: + - port: metrics + path: /metrics + selector: + matchLabels: + app.kubernetes.io/name: traefik