Fix: patroni alerts expressions, include all database cluster nodes, except backup, archive and delayed nodes
Related to Bug: #142 (comment 1670346621)
Currently we have the following on https://gitlab.com/gitlab-com/runbooks/-/blob/master/libsonnet/alerts/patroni-cause-alerts.libsonnet#L9
local selector = { type: 'patroni' };
This generated the alert files, like https://gitlab.com/gitlab-com/runbooks/-/blob/master/thanos-rules/autogenerated-patroni-cause-alerts-gprd.yml
Whether we want to have these alerts for other patroni services too, i.e. patroni-registry
, patroni-embedding
, patroni-ci
.
A better outcome that removes backup, archive and delayed nodes would be through tier="db", env="gprd", type!~".*archive", type!~".*delayed"
- Fix: patroni alerts expressions, include all database cluster nodes, except backup, archive and delayed nodes
Edited by Rafael Henchen