public class FunctionCollectorRegistryImpl extends FunctionCollectorRegistry
| Constructor and Description |
|---|
FunctionCollectorRegistryImpl() |
| Modifier and Type | Method and Description |
|---|---|
io.prometheus.client.Collector |
registerIfNotExist(String metricName,
io.prometheus.client.Collector collector)
Register a metric if it does not yet exist.
|
getDefaultImplementationpublic io.prometheus.client.Collector registerIfNotExist(String metricName, io.prometheus.client.Collector collector)
FunctionCollectorRegistryregisterIfNotExist in class FunctionCollectorRegistrymetricName - the name of the metriccollector - the metric object e.g. Count, Gauge, etc.Copyright © 2017–2021 Apache Software Foundation. All rights reserved.