Opencensusz
Opencensusz is a thin wrapper around the Opencensus Node.js metrics library to make it easier to add metrics.
This API is inspired by Google's internal cross-language metrics library and the name Opencensusz is an homage to it.
Usage
Regular Prometheus (poll-based)
mBarStatus.increment
Prometheus PushGateway (push-based)
Set environment variable:
PUSH_GATEWAY_ENDPOINT=http://localhost:9091
Counters:
await mErrors.increment
Convenience function for logging heartbeat timestamps:
await PulseHeartbeat'api_server', 'prod'