Fix Prometheus metric f-string and add YAML helper
Some checks failed
lint / lint (push) Successful in 23s
test / test (push) Failing after 20s

This commit is contained in:
2026-02-27 16:08:17 +01:00
parent c0357ceb69
commit fc93b8d29e
3 changed files with 19 additions and 11 deletions

View File

@@ -56,7 +56,7 @@ class MetricsRegistry:
lines.append("# TYPE aegis_tool_calls_total counter")
for (tool_name, status), count in sorted(self._tool_calls_total.items()):
lines.append(
"aegis_tool_calls_total" f'{{tool="{tool_name}",status="{status}"}} {count}'
f'aegis_tool_calls_total{{tool="{tool_name}",status="{status}"}} {count}'
)
lines.append(