--- apiVersion: operator.victoriametrics.com/v1beta1 kind: VMRule metadata: name: corruption namespace: logging labels: vmalert.unkin.net/datasource: vlogs spec: groups: - name: corruption type: vlogs interval: 1m rules: # Hosts lack ECC, so log symptoms are the only signal of bad RAM. - record: host:corruption_log_events:count 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:"") "" as host | stats by (host) count() as events