You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Proposal: Lightweight observability and Prometheus-compatible metrics service #233
Currently, there is limited visibility into the performance and health of NemoClaw operations. Specifically, tracking blueprint execution latency, API validation success rates, and sandbox lifecycle operations (such as launch) requires manual log parsing or external wrappers. This lack of telemetry makes it difficult to monitor NemoClaw in automated CI/CD pipelines or production-like environments where performance regressions or intermittent API failures need to be surfaced programmatically.
Proposed Solution
Introduce an optional, lightweight metrics service built directly into the plugin. When enabled via the NEMOCLAW_METRICS_ENABLED environment variable, NemoClaw will:
Maintain an internal registry of counters and histograms for key operations.
Start a minimal HTTP server (defaulting to port 9090) to export these metrics in Prometheus text format at a /metrics endpoint.
Instrument critical paths, including execBlueprint (renamed to blueprint_execution for clarity) and API key validation.
Design Goals
Zero Overhead: When disabled (default), the metrics logic is bypassed to ensure no performance impact for standard CLI users.
Zero Dependencies: The implementation uses native node:http and process.hrtime to maintain a minimal footprint without adding to the dependency tree.
Prometheus Compatibility: Adheres to standard exposition formats for immediate integration with existing monitoring stacks.
Open Questions
Does this built-in approach align with the project's long-term roadmap, or is there a preference for moving toward OpenTelemetry despite the additional dependency weight?
Are there specific sandbox lifecycle events (e.g., eject, migrate) that should be prioritized for initial instrumentation?
I have opened PR #230 with a working implementation of this proposal. I look forward to your feedback on the architectural direction.
This is exactly the gap ClawMetry was built to address from the user side.
We've been building an observability layer specifically for NemoClaw (clawmetry.com/nemoclaw) and the Prometheus-compatible metrics endpoint would be a natural integration point. Right now ClawMetry reads from OpenClaw's session files and syncs to a cloud dashboard, but a standardised /metrics endpoint from NemoClaw itself would let us surface blueprint execution latency, sandbox lifecycle events, and API health directly in the fleet view.
A few thoughts on the open questions:
On OpenTelemetry vs Prometheus: the NEMOCLAW_METRICS_ENABLED env var approach is the right call for now. Zero dependencies, zero overhead by default. OTel can come later once the primitives are stable. Forcing OTel on a CLI tool at this stage would hurt adoption.
On which sandbox lifecycle events to prioritise: from a fleet monitoring perspective, launch, connect, and eject are the highest value. Knowing when a sandbox transitions states remotely is what makes the difference between passive logging and actionable observability.
Happy to coordinate on the ClawMetry side to ensure we can consume whatever format ships with this.
Thanks for the thoughtful proposal here, and for the ClawMetry discussion in the thread.
For Sprint 5 planning, we’re narrowing the inference/performance observability work to focused, local diagnostic traces tied to onboarding and provider validation. That work is now being tracked through #3070 and #3769, which gives us a smaller path to measure latency and debug regressions without committing to a broader built-in metrics service yet.
Because the implementation PR #230 was closed after going stale/requiring rebase, and because a Prometheus-compatible service is a larger product/architecture decision, we’re going to close this issue for now as not planned.
This is still a useful direction, especially if ClawMetry or fleet/CI observability becomes a roadmap priority. If that happens, we should reopen the conversation with a fresh proposal or PR scoped around the current codebase and product direction.
Activity
vivekchand commentedon Mar 28, 2026
This is exactly the gap ClawMetry was built to address from the user side.
We've been building an observability layer specifically for NemoClaw (clawmetry.com/nemoclaw) and the Prometheus-compatible metrics endpoint would be a natural integration point. Right now ClawMetry reads from OpenClaw's session files and syncs to a cloud dashboard, but a standardised /metrics endpoint from NemoClaw itself would let us surface blueprint execution latency, sandbox lifecycle events, and API health directly in the fleet view.
A few thoughts on the open questions:
On OpenTelemetry vs Prometheus: the NEMOCLAW_METRICS_ENABLED env var approach is the right call for now. Zero dependencies, zero overhead by default. OTel can come later once the primitives are stable. Forcing OTel on a CLI tool at this stage would hurt adoption.
On which sandbox lifecycle events to prioritise: from a fleet monitoring perspective, launch, connect, and eject are the highest value. Knowing when a sandbox transitions states remotely is what makes the difference between passive logging and actionable observability.
Happy to coordinate on the ClawMetry side to ensure we can consume whatever format ships with this.
feat(scripts): add automated health check for NemoClaw services
feat(scripts): add automated health checks with HTML dashboard and Te…
ksapru commentedon Apr 7, 2026
Hey @vivekchand, happy to work on this with you. Feel free to add me as a maintainer to ClawMetry.
feat(scripts): add automated health checks with HTML dashboard
feat(scripts): add automated health checks with HTML dashboard
wscurran commentedon May 19, 2026
Thanks for the thoughtful proposal here, and for the ClawMetry discussion in the thread.
For Sprint 5 planning, we’re narrowing the inference/performance observability work to focused, local diagnostic traces tied to onboarding and provider validation. That work is now being tracked through #3070 and #3769, which gives us a smaller path to measure latency and debug regressions without committing to a broader built-in metrics service yet.
Because the implementation PR #230 was closed after going stale/requiring rebase, and because a Prometheus-compatible service is a larger product/architecture decision, we’re going to close this issue for now as not planned.
This is still a useful direction, especially if ClawMetry or fleet/CI observability becomes a roadmap priority. If that happens, we should reopen the conversation with a fresh proposal or PR scoped around the current codebase and product direction.