Package org.opensearch.telemetry.metrics
Interface MetricsRegistry
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Subinterfaces:
MetricsTelemetry
- All Known Implementing Classes:
NoopMetricsRegistry
MetricsRegistry helps in creating the metric instruments.
- Opensearch.experimental:
-
Method Summary
Modifier and TypeMethodDescriptioncreateCounter(String name, String description, String unit) Creates the counter.createUpDownCounter(String name, String description, String unit) Creates the upDown counter.
-
Method Details
-
createCounter
Creates the counter.- Parameters:
name- name of the counter.description- any description about the metric.unit- unit of the metric.- Returns:
- counter.
-
createUpDownCounter
Creates the upDown counter.- Parameters:
name- name of the upDown counter.description- any description about the metric.unit- unit of the metric.- Returns:
- counter.
-