internal

package
v0.100.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetermineMetricTypeByConvention

func DetermineMetricTypeByConvention(metricName string, labels []prompb.Label) prompb.MetricMetadata_MetricType

DetermineMetricTypeByConvention This is a 'best effort' heuristic applying guidance from the latest PRW receiver and OpenMetrics specifications See: https://prometheus.io/docs/concepts/remote_write_spec/#prometheus-remote-write-specification Also see: https://raw.githubusercontent.com/OpenObservability/OpenMetrics/main/specification/OpenMetrics.md As this is a heuristic process, the order of operations is significant.

func ExtractMetricNameLabel

func ExtractMetricNameLabel(labels []prompb.Label) (string, error)

ExtractMetricNameLabel Finds label corresponding to metric name

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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