prometheus

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ModelTagsToLabelPairs

func ModelTagsToLabelPairs(tags models.Tags) []remote.Label

ModelTagsToLabelPairs converts models.Tags to a slice of Prometheus label pairs

func ReadRequestToCnosDBStorageRequest added in v0.10.3

func ReadRequestToCnosDBStorageRequest(req *remote.ReadRequest, db, rp string) (*datatypes.ReadFilterRequest, error)

ReadRequestToCnosDBStorageRequest converts a Prometheus remote read request into one using the new storage API that IFQL uses.

func RemoveCnosDBSystemTags

func RemoveCnosDBSystemTags(tags models.Tags) models.Tags

RemoveCnosDBSystemTags will remove tags that are CnosDB internal (_measurement and _field)

func TagsToLabelPairs

func TagsToLabelPairs(tags map[string]string) []*remote.Label

TagsToLabelPairs converts a map of CnosDB tags into a slice of Prometheus label pairs

func WriteRequestToPoints

func WriteRequestToPoints(req *remote.WriteRequest) ([]models.Point, error)

WriteRequestToPoints converts a Prometheus remote write request of time series and their samples into Points that can be written into CnosDB

Types

type DroppedValuesError

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

A DroppedValuesError is returned when the prometheus write request contains unsupported float64 values.

func (DroppedValuesError) Error

func (e DroppedValuesError) Error() string

Error returns a descriptive error of the values dropped.

Jump to

Keyboard shortcuts

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