Files
argocd-apps/apps/base/observability/vmalert.yaml
T
unkin-agent 82db9b41b2 Record per-host memory corruption log events from VictoriaLogs (#596)
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>
2026-11-24 21:22:41 +11:00

33 lines
878 B
YAML

---
apiVersion: operator.victoriametrics.com/v1beta1
kind: VMAlert
metadata:
name: main
namespace: observability
spec:
replicaCount: 1
selectAllByDefault: true
ruleNamespaceSelector: {}
ruleSelector:
matchExpressions:
- key: vmalert.unkin.net/datasource
operator: DoesNotExist
evaluationInterval: 30s
datasource:
url: http://vmselect-main.observability.svc.cluster.local:8481/select/0/prometheus/
remoteWrite:
url: http://vminsert-main.observability.svc.cluster.local:8480/insert/0/prometheus/
remoteRead:
url: http://vmselect-main.observability.svc.cluster.local:8481/select/0/prometheus/
extraArgs:
loggerFormat: json
# recording rules only for now; no alertmanager deployed
notifier.blackhole: "true"
resources:
requests:
cpu: 50m
memory: 128Mi
limits:
cpu: 500m
memory: 512Mi