CollectorRegistry.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/.

class CollectorRegistry
collect
()

Return Value

Type: cstring

The stats accumulated since last time this method was called.

Meta