Help us shape the future of Go! Take the 2026 Go Developer Survey

prometheus

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNaNDropped = errors.New("dropped NaN from Prometheus since they are not supported")

Functions

func ReadRequestToInfluxQLQuery

func ReadRequestToInfluxQLQuery(req *remote.ReadRequest, db, rp string) (*influxql.Query, error)

ReadRequestToInfluxQLQuery converts a Prometheus remote read request to an equivalent InfluxQL query that will return the requested data when executed

func TagsToLabelPairs

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

TagsToLabelPairs converts a map of Influx 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 Influx

Types

This section is empty.

Directories

Path Synopsis
Package remote is a generated protocol buffer package.
Package remote is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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