Watch
0
0
Fork
You've already forked hyperhive
0

page pending_logins from hh-hive-warning for hives without the needs-login gauge

This commit is contained in:
atlas 2026-11-09 10:56:50 +01:00
commit 1c3b37e46a

View file

@ -1720,13 +1720,14 @@ in
# pressure is left out: it has its own thresholds below, on
# the filesystem metric rather than the registry entry.
# Sweeps raise their warning only after several misses, so
# `for` is short. `pending_logins` is left out: it has no
# `agent` label, and `hh-agent-needs-login` below pages
# once per agent instead.
# `for` is short. `pending_logins` is dropped for a hive that exports
# `hyperhive.agent.needs_login`, where `hh-agent-needs-login`
# below pages once per agent; a hive on an older hive-c0re
# has no such series, so it keeps paging here.
(metricThresholdRule {
uid = "hh-hive-warning";
title = "hive warning raised";
expr = ''max by (hive, kind, level) ({__name__="hyperhive.hive.warning", kind!~"disk_pressure|pending_logins"})'';
expr = ''max by (hive, kind, level) ({__name__="hyperhive.hive.warning", kind!~"disk_pressure|pending_logins"} or ({__name__="hyperhive.hive.warning", kind="pending_logins"} unless on (hive) group by (hive) ({__name__="hyperhive.agent.needs_login"})))'';
threshold = 0;
for = "2m";
summary = "hive {{ $labels.hive }} has a {{ $labels.level }} warning raised: {{ $labels.kind }}; the message is the `hive warning raised` line in the hive-c0re log";