类 FunctionCollectorRegistry
java.lang.Object
io.prometheus.client.CollectorRegistry
org.apache.pulsar.functions.instance.stats.FunctionCollectorRegistry
- 直接已知子类:
FunctionCollectorRegistryImpl
public abstract class FunctionCollectorRegistry
extends io.prometheus.client.CollectorRegistry
Internal representation of Prometheus Collector Registry
-
字段概要
从类继承的字段 io.prometheus.client.CollectorRegistry
defaultRegistry -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static FunctionCollectorRegistryabstract <T extends io.prometheus.client.Collector>
TregisterIfNotExist(String metricName, T collector) Register a metric if it does not yet exist.从类继承的方法 io.prometheus.client.CollectorRegistry
clear, filteredMetricFamilySamples, getSampleValue, getSampleValue, metricFamilySamples, register, unregister
-
构造器详细资料
-
FunctionCollectorRegistry
public FunctionCollectorRegistry()
-
-
方法详细资料
-
getDefaultImplementation
-
registerIfNotExist
public abstract <T extends io.prometheus.client.Collector> T registerIfNotExist(String metricName, T collector) Register a metric if it does not yet exist. If it does exist, then return the existing metric. Currently, only needed by the LocalRunner when running in threaded and exposing metrics via a http server. This method helps resolve the conflict in which multiple instances within the LocalRunner process try to register the same metric.- 类型参数:
T-- 参数:
metricName- the name of the metriccollector- the metric object e.g. Count, Gauge, etc.- 返回:
- If the metric with the name `metricName` already exists, return the existing metric object. If not, return null
-