grafana: switch the CLAUDE.md-size panel from a snapshot bar to a time series

mara, PR review: "i want to see it over time - sounds like you built
bar chart?" — correct, it was a bargauge (instant/lastNotNull). Switched
to timeseries, matching the CPU/memory-by-agent panels' own treatment of
a plain live gauge (raw value plotted across the range, no rate()/
increase() since it's not a cumulative counter).
This commit is contained in:
iris 2026-09-12 01:11:28 +02:00 committed by mara
commit d34c6618df

View file

@ -661,15 +661,15 @@
}, },
{ {
"id": 33, "id": 33,
"type": "bargauge", "type": "timeseries",
"title": "CLAUDE.md size by agent", "title": "CLAUDE.md size by agent",
"description": "hyperhive.agent.claude_md.lines — current line count of each agent's own CLAUDE.md, a continuously-live gauge (not a per-turn counter, hence lastNotNull rather than increase()). The harness itself raises a loose-ends todo past 500 lines suggesting a trim, not a hard limit — this panel is visibility, not an alarm.", "description": "hyperhive.agent.claude_md.lines over time — mara: \"i want to see it over time\" (a bargauge snapshot in an earlier round of this panel only showed the current count). A continuously-live gauge, not a per-turn counter, so this is the raw value plotted across the range, same treatment as the CPU/memory-by-agent panels above rather than a rate()/increase(). The harness itself raises a loose-ends todo past 500 lines suggesting a trim, not a hard limit — this panel is visibility, not an alarm.",
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "@datasourceUid@" "uid": "@datasourceUid@"
}, },
"gridPos": { "gridPos": {
"h": 7, "h": 8,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 27 "y": 27
@ -682,7 +682,6 @@
"uid": "@datasourceUid@" "uid": "@datasourceUid@"
}, },
"expr": "sum by (agent) ({__name__=\"hyperhive.agent.claude_md.lines\", hive=~\"$hive\", agent=~\"$agent\"})", "expr": "sum by (agent) ({__name__=\"hyperhive.agent.claude_md.lines\", hive=~\"$hive\", agent=~\"$agent\"})",
"instant": true,
"legendFormat": "{{agent}}" "legendFormat": "{{agent}}"
} }
], ],
@ -691,30 +690,29 @@
"unit": "short", "unit": "short",
"decimals": 0, "decimals": 0,
"color": { "color": {
"mode": "fixed", "mode": "palette-classic"
"fixedColor": "orange"
}, },
"thresholds": { "custom": {
"mode": "absolute", "drawStyle": "line",
"steps": [ "lineWidth": 1,
{ "fillOpacity": 0,
"color": "orange", "showPoints": "never",
"value": null "spanNulls": false,
} "axisSoftMin": 0
]
} }
}, },
"overrides": [] "overrides": []
}, },
"options": { "options": {
"displayMode": "basic", "legend": {
"orientation": "horizontal", "displayMode": "list",
"showUnfilled": true, "placement": "bottom",
"valueMode": "text", "showLegend": true,
"reduceOptions": { "calcs": []
"calcs": ["lastNotNull"], },
"fields": "", "tooltip": {
"values": false "mode": "multi",
"sort": "desc"
} }
} }
} }