@Public public interface MetricGroup
Metrics
and further metric subgroups.
Instances of this class can be used to register new metrics with Paimon.
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the metric group and release related resources.
|
Counter |
counter(String name)
Creates and registers a new
Counter with Paimon. |
<T> Gauge<T> |
gauge(String name,
Gauge<T> gauge)
Registers a new
Gauge with Paimon. |
Map<String,String> |
getAllVariables()
Returns a map of all variables and their associated value.
|
String |
getGroupName()
Returns the name for this group, meaning what kind of entity it represents, for example
"commit".
|
Map<String,Metric> |
getMetrics()
Returns all the metrics the group carries.
|
Histogram |
histogram(String name,
int windowSize)
Registers a new
Histogram with Paimon. |
Counter counter(String name)
Counter
with Paimon.name
- name of the counter<T> Gauge<T> gauge(String name, Gauge<T> gauge)
Gauge
with Paimon.T
- return type of the gaugename
- name of the gaugegauge
- gauge to registerHistogram histogram(String name, int windowSize)
Histogram
with Paimon.name
- name of the histogramwindowSize
- number of records this histogram keepsMap<String,String> getAllVariables()
String getGroupName()
void close()
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.