Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MetricsExporterProvider ¶
func MetricsExporterProvider(ctxInfo *global.ContextInfo, cfg *MetricsConfig) (pipe.FinalFunc[[]*ebpf.Record], error)
Types ¶
type Expirer ¶
type Expirer struct {
// contains filtered or unexported fields
}
Expirer drops metrics from labels that haven't been updated during a given timeout TODO: generify and move to a common section for using it also in AppO11y, supporting more OTEL metrics
func NewExpirer ¶
func NewExpirer(attrs []attributes.Field[*ebpf.Record, string], clock expire.Clock, expireTime time.Duration) *Expirer
NewExpirer creates a metric that wraps a Counter. Its labeled instances are dropped if they haven't been updated during the last timeout period
type MetricsConfig ¶
type MetricsConfig struct { Metrics *otel.MetricsConfig AttributeSelectors attributes.Selection }
func (MetricsConfig) Enabled ¶
func (mc MetricsConfig) Enabled() bool
Click to show internal directories.
Click to hide internal directories.