Watch
0
0
Fork
You've already forked hyperhive
0

docs: drop the turn-stats sqlite section and stale mentions, point the grafana check at the daemon

This commit is contained in:
damocles 2026-11-18 20:08:22 +01:00 • committed by mara
commit fc8ec13620

View file

@ -567,11 +567,12 @@ let
&& lib.any (e: lib.hasInfix "hyperhive.container.memory.oom_kills" e) exprs;
}
{
# The agents board's turns tab reads the turn, tool, bash command, reminder
# and session metrics the harness records, grouped by the labels it sets on them. A renamed instrument or
# label there is a tab of empty panels, so each must still be spelled in the
# harness; and the duration percentiles are only right while the histogram
# has bounds past the SDK's 10 s default ceiling.
# The agents board's turns tab reads the turn, tool, reminder and session
# metrics the harness records, and the bash command counter the bash
# daemon records, grouped by the labels they set. A renamed instrument or
# label there is a tab of empty panels, so each must still be spelled in
# the harness or the daemon; and the duration percentiles are only right
# while the histogram has bounds past the SDK's 10 s default ceiling.
name = "the agents dashboard's turns tab reads the turn metrics and labels the harness records";
ok =
let
@ -582,6 +583,7 @@ let
n: map (q: q.spec.query.spec.expr) board.spec.elements.${n}.spec.data.spec.queries
) names;
recorded = builtins.readFile ../../hive-agent/src/otel_turn_metrics.rs;
bashRecorded = builtins.readFile ../../hive-bash-mcp/src/stats.rs;
in
tab != null
&& lib.length names == 14
@ -590,16 +592,18 @@ let
"hyperhive.agent.turn.duration"
"hyperhive.agent.session.count"
"hyperhive.agent.tool.calls"
"hyperhive.agent.bash.commands"
"hyperhive.agent.reminders"
"hyperhive.agent.first_turn.context"
"wake_from"
"result_kind"
"model"
"tool"
"command"
"event"
]
&& lib.all (m: lib.hasInfix "\"${m}\"" bashRecorded) [
"hyperhive.agent.bash.commands"
"command"
]
&& lib.all (l: lib.any (e: lib.hasInfix l e) exprs) [
"wake_from"
"result_kind"