Skip to main content

Module metrics

Module metrics 

Source
Expand description

Prometheus metrics exposed at GET /metrics in the standard text format.

Aggregate only, with no per-account or per-agent labels, so it is safe to scrape without auth. It covers process health (CPU and memory on Linux) plus MenteDB gauges (memories stored, uptime, live cluster nodes) and HTTP request rate and latency, which together answer the “is it healthy and how hard is it working” question a dashboard needs.

Structs§

Metrics
The metric set, held in a process-global registry.

Functions§

handler
GET /metrics: refresh the point-in-time gauges, then encode the registry.
metrics
The process-global metric set, initialized on first use.
track
Middleware: time every request and count it by method and response status.