Optional
register: Registry<"text/plain; version=0.0.4; charset=utf-8">A custom registry to provide, if not using the global default.
Static
AgeRegisters the /metrics
page generating function with the
containing Express app.
The containing Bridge instance.
Adds a new collector function. These collector functions are run whenever the /metrics page is about to be generated, allowing code to update values of gauges.
A new collector function. This function is passed no arguments and is not expected to return anything. It runs purely to have a side-effect on previously registered gauges.
Increments the value of a counter metric @param{string} name The name the metric was previously registered as. @param{Object} labels Optional object containing additional label values.
Registers some exported metrics that expose counts of various kinds of objects within the bridge.
A function that when invoked returns the current counts of various items in the bridge.
Begins a new timer observation for a timer metric. @param{string} name The name the metric was previously registered as. @param{Object} labels Optional object containing additional label values.
A function to be called to end the timer and report the observation.
Generated using TypeDoc
Constructs a new Prometheus Metrics instance. The metric
app_version
will be set here, so ensure thatgetBridgeVersion
will return the correct bridge version.