Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromMetrics ¶
func FromMetrics(md pmetric.Metrics, settings Settings) (tsMap map[string]*prompb.TimeSeries, errs error)
FromMetrics converts pmetric.Metrics to prometheus remote write format.
Types ¶
type ByLabelName ¶
ByLabelName enables the usage of sort.Sort() with a slice of labels
func (ByLabelName) Len ¶
func (a ByLabelName) Len() int
func (ByLabelName) Less ¶
func (a ByLabelName) Less(i, j int) bool
func (ByLabelName) Swap ¶
func (a ByLabelName) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.