Spread vmalert-logs replicas across nodes and fall back to pod node name for host
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user