Merge remote-tracking branch 'origin/main' into benvin/redis-metrics
# Conflicts: # apps/base/observability/kustomization.yaml
This commit is contained in:
@@ -10,3 +10,4 @@ resources:
|
||||
- httproute.yaml
|
||||
- vmpodscrape-cnpg.yaml
|
||||
- vmpodscrape-redis.yaml
|
||||
- vmpodscrape-traefik.yaml
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
---
|
||||
# Scrape metrics (:9100) from the traefik-internal and traefik-external gateway
|
||||
# pods. Picked up by the observability VMAgent (selectAllByDefault). The
|
||||
# app.kubernetes.io/instance pod label is kept as traefik_instance so series
|
||||
# from the two releases stay distinguishable.
|
||||
apiVersion: operator.victoriametrics.com/v1beta1
|
||||
kind: VMPodScrape
|
||||
metadata:
|
||||
name: traefik
|
||||
namespace: observability
|
||||
spec:
|
||||
namespaceSelector:
|
||||
matchNames:
|
||||
- traefik-system
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: traefik
|
||||
podMetricsEndpoints:
|
||||
- port: metrics
|
||||
path: /metrics
|
||||
relabelConfigs:
|
||||
- sourceLabels: [__meta_kubernetes_pod_label_app_kubernetes_io_instance]
|
||||
targetLabel: traefik_instance
|
||||
Reference in New Issue
Block a user