Variable: prometheusRegistry
constprometheusRegistry:Registry<"text/plain; version=0.0.4; charset=utf-8">
Defined in: src/observability/prometheus-registry.ts:67
Centralized Prometheus registry for Chive metrics.
Remarks
All metrics should be registered with this registry.
Exposed via /metrics endpoint for Prometheus scraping.
Example
import { prometheusRegistry } from './prometheus-registry.js';
// In HTTP handler
app.get('/metrics', async (req, res) => {
res.set('Content-Type', prometheusRegistry.contentType);
res.end(await prometheusRegistry.metrics());
});
Since
0.1.0