appendable

package
v0.27.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlowAppendable

type FlowAppendable struct {
	// contains filtered or unexported fields
}

FlowAppendable is a flow-specific implementation of an Appender.

func NewFlowAppendable

func NewFlowAppendable(receivers ...*metrics.Receiver) *FlowAppendable

NewFlowAppendable initializes the appendable.

func (*FlowAppendable) Appender

func (app *FlowAppendable) Appender(_ context.Context) storage.Appender

Appender implements the Prometheus Appendable interface.

func (*FlowAppendable) ListReceivers

func (app *FlowAppendable) ListReceivers() []*metrics.Receiver

ListReceivers is a test method for exposing the Appender's receivers.

func (*FlowAppendable) SetReceivers

func (app *FlowAppendable) SetReceivers(receivers []*metrics.Receiver)

SetReceivers defines the list of receivers for this appendable.

type FlowMetric

type FlowMetric struct {
	Labels labels.Labels
	Value  float64
}

FlowMetric is a wrapper around a single sample without the timestamp.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL