-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Problem
To improve observability and understand the overall health and activity of the network, nildb nodes need to expose key metrics publicly.
Proposed Solution
- Create a public, unauthenticated endpoint at /metrics.
- Expose metrics in a standard format compatible with monitoring tools like Prometheus.
- Initial metrics should include:
- Usage Metrics:
nildb_total_stored_bytes, nildb_total_secrets_stored,nildb_total_records_stored - Activity Metrics:
nildb_http_requests_total(aggregated all codes and methods),nildb_active_builders_total
- Usage Metrics:
Acceptance Criteria
- A GET request to /metrics on a node returns a plain text response with the specified metrics.
- The metrics are correctly formatted for Prometheus scraping.
- The endpoint is documented via openapi.
Metadata
Metadata
Assignees
Labels
No labels