Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
Factory implements storage.Factory and creates write-only storage components backed by kafka.
func (*Factory) CreateWriter ¶
func (f *Factory) CreateWriter() (metricstore.Writer, error)
func (*Factory) InitFromOptions ¶
InitFromOptions initializes factory from options.
func (*Factory) InitFromViper ¶
InitFromViper implements plugin.Configurable
type Marshaller ¶
type Marshaller interface {
MarshalMetric([]prompb.TimeSeries) ([]byte, error)
}
Marshaller encodes a metric into a byte array to be sent to Kafka
type Options ¶
type Options struct { Encoding string // contains filtered or unexported fields }
func (*Options) InitFromViper ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer writes metric to kafka. Implements metricstore.Writer
func NewMetricWriter ¶
func (*Writer) WriteMetric ¶
func (w *Writer) WriteMetric(metric []prompb.TimeSeries) error
Click to show internal directories.
Click to hide internal directories.