@nexusts/metrics
v0.9.5
Published
Prometheus / OpenMetrics counters and gauges
Readme
@nexusts/metrics
NexusTS — Bun-native fullstack framework
Description
Prometheus / OpenMetrics counters and gauges.
Counter / Gauge / Histogram / Summary primitives. @Counted / @Timed method decorators. /metrics endpoint with content negotiation. Default Node.js process metrics.
Install
This module is part of the NexusTS monorepo. Each module is published as its own npm package under the @nexusts/ scope.
Most apps start with just the core:
bun add @nexusts/coreThen add this module only if you need it:
bun add @nexusts/metricsPeer dependencies
None. No external dependencies.
Usage
import { /* public API */ } from "@nexusts/metrics";See the user guide and the example app for a working demo.
License
MIT — see the root LICENSE.
