Spread vmalert-logs replicas across nodes and fall back to pod node name for host
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/kubeconform Pipeline was successful

This commit is contained in:
2026-11-23 22:06:01 +11:00
parent ee998237d5
commit 7a9688cc4f
2 changed files with 9 additions and 1 deletions
+8 -1
View File
@@ -16,10 +16,17 @@ spec:
url: http://vminsert-main.observability.svc.cluster.local:8480/insert/0/prometheus/
extraArgs:
loggerFormat: json
rule.defaultRuleType: vlogs
notifier.blackhole: "true"
podDisruptionBudget:
maxUnavailable: 1
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
app.kubernetes.io/name: vmalert
app.kubernetes.io/instance: logs
resources:
requests:
cpu: 50m
+1
View File
@@ -17,4 +17,5 @@ spec:
expr: |
("segfault at" or "general protection fault" or "_verify_csum bad" or "block checksum mismatch" or "out-of-order keys")
| rename _HOSTNAME as host
| format if (host:"") "<kubernetes.pod_node_name>" as host
| stats by (host) count() as events