add traefik VMPodScrape for prometheus metrics collection
This commit is contained in:
@@ -9,8 +9,14 @@ 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
|
||||||
|
targetRevision: master
|
||||||
|
path: manifests/traefik
|
||||||
|
directory:
|
||||||
|
recurse: true
|
||||||
|
include: "*.yaml"
|
||||||
|
- repoURL: https://traefik.github.io/charts
|
||||||
chart: traefik
|
chart: traefik
|
||||||
targetRevision: "41.0.0"
|
targetRevision: "41.0.0"
|
||||||
helm:
|
helm:
|
||||||
|
|||||||
15
manifests/traefik/vmpodscrape.yaml
Normal file
15
manifests/traefik/vmpodscrape.yaml
Normal 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
|
||||||
Reference in New Issue
Block a user