Class NoopMetricsRegistry
java.lang.Object
org.opensearch.telemetry.metrics.noop.NoopMetricsRegistry
- All Implemented Interfaces:
Closeable,AutoCloseable,MetricsRegistry
No-op
MetricsRegistry
-
Field Summary
Fields -
Method Summary
-
Field Details
-
INSTANCE
No-op Meter instance
-
-
Method Details
-
createCounter
Description copied from interface:MetricsRegistryCreates the counter.- Specified by:
createCounterin interfaceMetricsRegistry- Parameters:
name- name of the counter.description- any description about the metric.unit- unit of the metric.- Returns:
- counter.
-
createUpDownCounter
Description copied from interface:MetricsRegistryCreates the upDown counter.- Specified by:
createUpDownCounterin interfaceMetricsRegistry- Parameters:
name- name of the upDown counter.description- any description about the metric.unit- unit of the metric.- Returns:
- counter.
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-