Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fanout ¶ added in v0.29.0
type Fanout struct {
// contains filtered or unexported fields
}
Fanout supports the default Flow style of appendables since it can go to multiple outputs. It also allows the intercepting of appends.
func NewFanout ¶ added in v0.29.0
func NewFanout(children []storage.Appendable, componentID string, register prometheus.Registerer, ls labelstore.LabelStore) *Fanout
NewFanout creates a fanout appendable.
func (*Fanout) UpdateChildren ¶ added in v0.29.0
func (f *Fanout) UpdateChildren(children []storage.Appendable)
UpdateChildren allows changing of the children of the fanout.
type Interceptor ¶ added in v0.29.0
type Interceptor struct {
// contains filtered or unexported fields
}
Interceptor is a storage.Appendable which invokes callback functions upon getting data. Interceptor should not be modified once created. All callback fields are optional.
func NewInterceptor ¶ added in v0.29.0
func NewInterceptor(next storage.Appendable, ls labelstore.LabelStore, opts ...InterceptorOption) *Interceptor
NewInterceptor creates a new Interceptor storage.Appendable. Options can be provided to NewInterceptor to install custom hooks for different methods.
type InterceptorOption ¶ added in v0.30.0
type InterceptorOption func(*Interceptor)
InterceptorOption is an option argument passed to NewInterceptor.
func WithAppendHook ¶ added in v0.30.0
func WithAppendHook(f func(ref storage.SeriesRef, l labels.Labels, t int64, v float64, next storage.Appender) (storage.SeriesRef, error)) InterceptorOption
WithAppendHook returns an InterceptorOption which hooks into calls to Append.
func WithExemplarHook ¶ added in v0.30.0
func WithExemplarHook(f func(ref storage.SeriesRef, l labels.Labels, e exemplar.Exemplar, next storage.Appender) (storage.SeriesRef, error)) InterceptorOption
WithExemplarHook returns an InterceptorOption which hooks into calls to AppendExemplar.
func WithHistogramHook ¶ added in v0.35.0
func WithHistogramHook(f func(ref storage.SeriesRef, l labels.Labels, t int64, h *histogram.Histogram, fh *histogram.FloatHistogram, next storage.Appender) (storage.SeriesRef, error)) InterceptorOption
WithHistogramHook returns an InterceptorOption which hooks into calls to AppendHistogram.
type NoopMetadataStore ¶ added in v0.29.0
type NoopMetadataStore map[string]scrape.MetricMetadata
NoopMetadataStore implements the MetricMetadataStore interface.
func (NoopMetadataStore) GetMetadata ¶ added in v0.29.0
func (ms NoopMetadataStore) GetMetadata(familyName string) (scrape.MetricMetadata, bool)
GetMetadata implements the MetricMetadataStore interface.
func (NoopMetadataStore) LengthMetadata ¶ added in v0.29.0
func (ms NoopMetadataStore) LengthMetadata() int
LengthMetadata implements the MetricMetadataStore interface.
func (NoopMetadataStore) ListMetadata ¶ added in v0.29.0
func (ms NoopMetadataStore) ListMetadata() []scrape.MetricMetadata
ListMetadata implements the MetricMetadataStore interface.
func (NoopMetadataStore) SizeMetadata ¶ added in v0.29.0
func (ms NoopMetadataStore) SizeMetadata() int
SizeMetadata implements the MetricMetadataStore interface.