add traefik VMPodScrape for prometheus metrics collection

This commit is contained in:
Alexander Rogov
2026-06-26 20:46:58 +03:00
parent 763eb4b5b5
commit 4374c8cead
2 changed files with 27 additions and 6 deletions

View File

@@ -9,12 +9,18 @@ metadata:
- resources-finalizer.argocd.argoproj.io - resources-finalizer.argocd.argoproj.io
spec: spec:
project: default project: default
source: sources:
repoURL: https://traefik.github.io/charts - repoURL: http://gitea.gitea.svc.cluster.local:3000/admin/main.git
chart: traefik targetRevision: master
targetRevision: "41.0.0" path: manifests/traefik
helm: directory:
values: | recurse: true
include: "*.yaml"
- repoURL: https://traefik.github.io/charts
chart: traefik
targetRevision: "41.0.0"
helm:
values: |
deployment: deployment:
kind: DaemonSet kind: DaemonSet
podAnnotations: podAnnotations:

View File

@@ -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