Documentation ¶
Overview ¶
Package native provides a simple meter system for metrics. The metrics are aggregated by the meter provider.
Package native provides a simple meter system for metrics. The metrics are aggregated by the meter provider.
Package native provides a simple meter system for metrics. The metrics are aggregated by the meter provider.
Package native provides a simple meter system for metrics. The metrics are aggregated by the meter provider.
Index ¶
Constants ¶
const (
// ObservabilityGroupName is the native observability group name.
ObservabilityGroupName = "_monitoring"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
Counter is the native implementation of meter.Counter.
type Gauge ¶
type Gauge struct {
// contains filtered or unexported fields
}
Gauge is the native implementation of meter.Gauge.
type Histogram ¶
type Histogram struct {
// contains filtered or unexported fields
}
Histogram is the native implementation of meter.Histogram.
type MetricCollection ¶
type MetricCollection struct {
// contains filtered or unexported fields
}
MetricCollection contains all the native implementations of metrics.
func NewMetricsCollection ¶
func NewMetricsCollection(pipeline queue.Client, nodeSelector NodeSelector) *MetricCollection
NewMetricsCollection creates a new MetricCollection.
func (*MetricCollection) AddCollector ¶
func (m *MetricCollection) AddCollector(c collector)
AddCollector Add native metric to MetricCollection.
func (*MetricCollection) FlushMetrics ¶
func (m *MetricCollection) FlushMetrics()
FlushMetrics write all the metrics by flushing.