Class CollectorRegistry
class CollectorRegistry
;
Constructors
Name | Description |
this
()
|
Constructor, that accepts an array of stat collection callbacks.
|
Methods
Name | Description |
addCollector
(collector)
|
Appends a stat collector callback to the list of existing ones.
May result in a re-allocation of the entire buffer storing the
callbacks.
|
collect
()
|
Collects stats by calling all delegates specified for stat collection,
formats them using ocean.util.prometheus.collector.StatFormatter
eventually, and finally returns the accumulated result. The
specifications of the format can be found at
https://prometheus.io/docs/instrumenting/exposition_formats/ .
|
Aliases
Name | Description |
CollectionDg
|
An alias for the type of delegates that are called for stat collection
|