Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NoopAppendable = AppendableFunc(func(_ context.Context, _ labels.Labels, _ []*RawSample) error { return nil })
Functions ¶
This section is empty.
Types ¶
type Appendable ¶
type Appendable interface {
Appender() Appender
}
type AppendableFunc ¶
func (AppendableFunc) Appender ¶
func (f AppendableFunc) Appender() Appender
type Fanout ¶
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 ¶
func NewFanout(children []Appendable, componentID string, register prometheus.Registerer) *Fanout
NewFanout creates a fanout appendable.
func (*Fanout) Children ¶
func (f *Fanout) Children() []Appendable
Children returns the children of the fanout.
func (*Fanout) UpdateChildren ¶
func (f *Fanout) UpdateChildren(children []Appendable)
UpdateChildren allows changing of the children of the fanout.
Click to show internal directories.
Click to hide internal directories.