sender

package
v0.0.0-...-9af6084 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Metric  prompb.MetricMetadata
	Lables  []prompb.Label
	Samples []prompb.Sample
}

func (*Data) AddMetricNameToLable

func (d *Data) AddMetricNameToLable()

func (*Data) Len

func (d *Data) Len() int

func (*Data) Less

func (d *Data) Less(i, j int) bool

func (*Data) Sort

func (d *Data) Sort()

func (*Data) Swap

func (d *Data) Swap(i, j int)

type Sender

type Sender struct {
	BatchNum int
	Client   remote.WriteClient
}

func NewSender

func NewSender(receiverUrl string) (*Sender, error)

func (*Sender) Send

func (s *Sender) Send(datas ...Data) error

Jump to

Keyboard shortcuts

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