BBjAPI::registerMetricCounter

Description

In BBj 18.0 and higher, this method registers and returns a new metrics Counter object.

Syntax

Return Value

Method

Counter registerMetricCounter(String name, String help, String... labels)

Parameters

Parameter Description
name A name for the Counter
help A help description of the Counter
labels Any number of string labels for the Counter which can be accessed from the Counter object.

Return Value

A Counter for reference anywhere in any BBj interpreter.

Remarks

BBj 18.0 and higher supports metrics that are exported in a format compatible with the Prometheus time series database. See BBj Metrics documentation for more information.

See Also

BBjAPI

BBjAPI::getMetricCounter

BBjAPI::getMetricGauge

BBjAPI::registerMetricGauge

BBjAPI::unregisterMetricCounter

BBjAPI::unregisterMetricGauge

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.