the classifier alert also fires on an undecodable request and an unpublished reply
This commit is contained in:
parent
1c3551b030
commit
8847fa48c9
1 changed files with 26 additions and 17 deletions
|
|
@ -1627,18 +1627,20 @@ in
|
|||
for = "0s";
|
||||
summary = "{{ $labels.hive }}/{{ $labels.agent }} could not connect to the swarm queue and its harness exited; systemd starts it again 30s later";
|
||||
})
|
||||
# `swarm-review-classifier` logs this at `warn` when a run
|
||||
# ends without a verdict (a rejected or unreadable API key,
|
||||
# a failed model call), so that PR has no classifier
|
||||
# review. The cause is in `F_ERROR`. The window is how long
|
||||
# the rule stays firing after the last failure.
|
||||
# A run that ends without a verdict leaves that PR with no
|
||||
# classifier review. `swarm-review-classifier` logs four
|
||||
# `warn` lines for it: `review classification run failed`
|
||||
# (a rejected or unreadable API key, a failed model call;
|
||||
# the cause is in `F_ERROR`), an undecodable request, and a
|
||||
# reply it could not encode or publish. The window is how
|
||||
# long the rule stays firing after the last one.
|
||||
(logCountRule {
|
||||
uid = "hh-review-classifier-run-failed";
|
||||
title = "review classifier run failed";
|
||||
windowSeconds = 1800;
|
||||
expr = ''_time:30m _msg:"review classification run failed" | stats count() as failures'';
|
||||
expr = ''_time:30m (_msg:"review classification run failed" OR _msg:"an undecodable try-out; answering with the error" OR _msg:"encoding a try-out's reply failed" OR _msg:"publishing a try-out's reply failed") | stats count() as failures'';
|
||||
for = "0s";
|
||||
summary = "a review-classifier run ended without a verdict, so that PR has no classifier review; the cause is in the F_ERROR field of the log line";
|
||||
summary = "a review-classifier run ended without a verdict, so that PR has no classifier review; the log line names the cause (F_ERROR on a failed run)";
|
||||
})
|
||||
(logCountRule {
|
||||
uid = "hh-swarm-agent-state-publish-skipped";
|
||||
|
|
|
|||
Loading…
Reference in a new issue