Expand description
Prometheus metrics for the agentkernel HTTP API and sandbox lifecycle.
All metrics use a dedicated Registry (not the global default) to avoid collisions with any dependency that might also use the prometheus crate.
Functionsยง
- dec_
active_ sandboxes - gather
- Encode all registered metrics into Prometheus text exposition format.
- inc_
active_ sandboxes - record_
command - Record a command execution (counter + histogram).
- record_
http_ request - Record an HTTP request (counter + histogram).
- record_
llm_ request - Record an LLM API request (counter + token counters).
- record_
sandbox_ lifecycle - Record a sandbox lifecycle operation (counter + histogram).
- set_
active_ sandboxes