prometheusremotewrite

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: Apache-2.0 Imports: 7 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 {
	Namespace         string
	ExternalLabels    map[string]string
	DisableTargetInfo bool
	AddMetricSuffixes bool
	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