Documentation ¶
Index ¶
Constants ¶
View Source
const ( LabelValueMetrics = "metrics" LabelValueLogs = "logs" LabelValueClient = "client" LabelValueRetryExhausted = "retry_exhausted" LabelValueTenant = "tenant" )
Variables ¶
This section is empty.
Functions ¶
func ClientFromRemoteInfo ¶ added in v0.17.0
func ClientFromRemoteInfo(remote *sm.RemoteInfo) (*prom.ClientConfig, error)
func NewRegistry ¶ added in v0.17.0
func NewRegistry[T any]() *registry[T]
Types ¶
type AlreadyRegisteredError ¶ added in v0.17.0
type AlreadyRegisteredError string
func (AlreadyRegisteredError) Error ¶ added in v0.17.0
func (e AlreadyRegisteredError) Error() string
type Factory ¶ added in v0.17.0
type Factory func(ctx context.Context, tm TenantProvider, logger zerolog.Logger, promRegisterer prometheus.Registerer) Publisher
type Metrics ¶ added in v0.17.0
type Metrics struct { PushCounter *prometheus.CounterVec ErrorCounter *prometheus.CounterVec BytesOut *prometheus.CounterVec FailedCounter *prometheus.CounterVec RetriesCounter *prometheus.CounterVec // For experimental publisher only DroppedCounter *prometheus.CounterVec ResponseCounter *prometheus.CounterVec InstalledHandlers prometheus.Gauge }
Metrics contains the prometheus Metrics for a publisher.
func NewMetrics ¶ added in v0.17.0
func NewMetrics(promRegisterer prometheus.Registerer) (m Metrics)
NewMetrics returns a new set of publisher metrics registered in the given registerer.
func (Metrics) WithTenant ¶ added in v0.17.0
WithTenant returns a new set of Metrics with the local and region ID labels already included.
type NotFoundError ¶ added in v0.17.0
func (NotFoundError) Error ¶ added in v0.17.0
func (e NotFoundError) Error() string
type TenantProvider ¶ added in v0.17.0
Click to show internal directories.
Click to hide internal directories.