Fix Prometheus metric f-string and add YAML helper
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user