82db9b41b2
Hosts have no ECC RAM, so failing memory raises no EDAC/MCE signal; it only shows up as scattered log lines (kernel segfaults/GPFs, ceph checksum and rocksdb key-order errors). Recording a per-host count of these symptoms makes bad RAM visible in VictoriaMetrics. - add vmalert `logs` in logging, querying VictoriaLogs and writing to vminsert-main - add VMRule recording `host:corruption_log_events:count` by host from LogsQL - select vlogs rules by the `vmalert.unkin.net/datasource` label and exclude them from vmalert `main` Reviewed-on: #596 Co-authored-by: unkin-agent <unkin-agent@unkin.net> Co-committed-by: unkin-agent <unkin-agent@unkin.net>
37 lines
889 B
YAML
37 lines
889 B
YAML
---
|
|
apiVersion: operator.victoriametrics.com/v1beta1
|
|
kind: VMAlert
|
|
metadata:
|
|
name: logs
|
|
namespace: logging
|
|
spec:
|
|
replicaCount: 2
|
|
ruleSelector:
|
|
matchLabels:
|
|
vmalert.unkin.net/datasource: vlogs
|
|
evaluationInterval: 1m
|
|
datasource:
|
|
url: http://vlselect-logs.logging.svc.cluster.local:9471
|
|
remoteWrite:
|
|
url: http://vminsert-main.observability.svc.cluster.local:8480/insert/0/prometheus/
|
|
extraArgs:
|
|
loggerFormat: json
|
|
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
|
|
memory: 128Mi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 512Mi
|