Fix brusnika-stage observability dashboard scrapes

This commit is contained in:
Kochetkov S 2026-06-15 15:21:49 +03:00
parent a86707c4b1
commit c8e57ec88d
5 changed files with 43 additions and 1 deletions

View File

@ -0,0 +1,18 @@
apiVersion: operator.victoriametrics.com/v1beta1
kind: VMRule
metadata:
name: istio-dashboard-compat
namespace: vmstack
spec:
groups:
- name: istio-dashboard-compat.rules
rules:
- record: kube_deployment_status_replicas_available
expr: |
label_replace(
kube_deployment_status_replicas_available{deployment="istio-ingressgateway", namespace="ingress-nginx"},
"namespace",
"istio-system",
"namespace",
".*"
)

View File

@ -0,0 +1,18 @@
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: istio-ingressgateway-stats
namespace: prometheus-stack
labels:
release: prometheus
spec:
namespaceSelector:
matchNames:
- ingress-nginx
selector:
matchLabels:
istio: ingressgateway
podMetricsEndpoints:
- path: /stats/prometheus
targetPort: 15020
interval: 15s

View File

@ -18,6 +18,8 @@ resources:
- ./lb-service-override.yaml - ./lb-service-override.yaml
- ./vault-ingress.yaml - ./vault-ingress.yaml
- ./clusterissuer-letsencrypt.yaml - ./clusterissuer-letsencrypt.yaml
- ./istio-gateway-podmonitor.yaml
- ./istio-dashboard-compat-vmrule.yaml
- ../../../infrastructure/failed-pod-cleanup - ../../../infrastructure/failed-pod-cleanup
patches: patches:
- path: ./patches/istio-gateway.yaml - path: ./patches/istio-gateway.yaml

View File

@ -30,7 +30,7 @@ spec:
kafkaExporter: kafkaExporter:
kafka: kafka:
servers: servers:
- kafka.kafka.svc.cluster.local:9092 - brusnika-stage-kafka-bootstrap.kafka.svc.cluster.local:9092
sasl: sasl:
enabled: false enabled: false
tls: tls:

View File

@ -33,6 +33,10 @@ spec:
monitor: monitor:
enabled: true enabled: true
jobLabel: node-exporter jobLabel: node-exporter
metricRelabelings:
- action: replace
targetLabel: job
replacement: vm-stack/vm-prod-node-exporter
extraServiceMonitors: extraServiceMonitors:
- name: zitadel-external-metrics - name: zitadel-external-metrics
namespace: prometheus-stack namespace: prometheus-stack