Version: v1.9.5 Latest Latest

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

Go to latest
Published: Sep 30, 2021 License: MIT Imports: 10 Imported by: 4




This section is empty.


This section is empty.


func ModelTagsToLabelPairs added in v1.6.0

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

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

func PrometheusToStatistics added in v1.9.0

func PrometheusToStatistics(family []*dto.MetricFamily, tags map[string]string) []models.Statistic

PrometheusToStatistics converts a prometheus metric family (from Registry.Gather) to a []model.Statistics for /debug/vars . This code is strongly inspired by the telegraf prometheus plugin.

func ReadRequestToInfluxStorageRequest added in v1.6.0

func ReadRequestToInfluxStorageRequest(req *prompb.ReadRequest, db, rp string) (*datatypes.ReadFilterRequest, error)

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

func RemoveInfluxSystemTags added in v1.6.0

func RemoveInfluxSystemTags(tags models.Tags) models.Tags

RemoveInfluxSystemTags will remove tags that are Influx internal (_measurement and _field)

func TagsToLabelPairs

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

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

func WriteRequestToPoints

func WriteRequestToPoints(req *prompb.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


type DroppedValuesError added in v1.7.6

type DroppedValuesError struct {
	// contains filtered or unexported fields

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

func (DroppedValuesError) Error added in v1.7.6

func (e DroppedValuesError) Error() string

Error returns a descriptive error of the values dropped.

Source Files

Jump to

Keyboard shortcuts

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