Fix brusnika-stage observability dashboard scrapes
This commit is contained in:
parent
a86707c4b1
commit
c8e57ec88d
@ -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",
|
||||
".*"
|
||||
)
|
||||
@ -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
|
||||
@ -18,6 +18,8 @@ resources:
|
||||
- ./lb-service-override.yaml
|
||||
- ./vault-ingress.yaml
|
||||
- ./clusterissuer-letsencrypt.yaml
|
||||
- ./istio-gateway-podmonitor.yaml
|
||||
- ./istio-dashboard-compat-vmrule.yaml
|
||||
- ../../../infrastructure/failed-pod-cleanup
|
||||
patches:
|
||||
- path: ./patches/istio-gateway.yaml
|
||||
|
||||
@ -30,7 +30,7 @@ spec:
|
||||
kafkaExporter:
|
||||
kafka:
|
||||
servers:
|
||||
- kafka.kafka.svc.cluster.local:9092
|
||||
- brusnika-stage-kafka-bootstrap.kafka.svc.cluster.local:9092
|
||||
sasl:
|
||||
enabled: false
|
||||
tls:
|
||||
|
||||
@ -33,6 +33,10 @@ spec:
|
||||
monitor:
|
||||
enabled: true
|
||||
jobLabel: node-exporter
|
||||
metricRelabelings:
|
||||
- action: replace
|
||||
targetLabel: job
|
||||
replacement: vm-stack/vm-prod-node-exporter
|
||||
extraServiceMonitors:
|
||||
- name: zitadel-external-metrics
|
||||
namespace: prometheus-stack
|
||||
|
||||
Loading…
Reference in New Issue
Block a user