prometheusremotewrite

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package prometheusremotewrite contains translator from Prometheus remote write format to OTLP metrics.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromTimeSeries

func FromTimeSeries(tss []prompb.TimeSeries, settings Settings) (pmetric.Metrics, error)

FromTimeSeries converts TimeSeries to OTLP metrics.

func IsValidCumulativeSuffix

func IsValidCumulativeSuffix(suffix string) bool

IsValidCumulativeSuffix checks suffix of summary series.

func IsValidSuffix

func IsValidSuffix(suffix string) bool

IsValidSuffix checks suffix of histogram series.

func IsValidUnit

func IsValidUnit(unit string) bool

IsValidUnit checks unit suffix.

Types

type Settings

type Settings struct {
	TimeThreshold int64
	Logger        zap.Logger
}

Settings defines translation settings.

Jump to

Keyboard shortcuts

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