metrics

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package Metrics

Index

Constants

This section is empty.

Variables

View Source
var MetricMetadata_MetricType_value = map[string]int32{
	"UNKNOWN":        0,
	"COUNTER":        1,
	"GAUGE":          2,
	"HISTOGRAM":      3,
	"GAUGEHISTOGRAM": 4,
	"SUMMARY":        5,
	"INFO":           6,
	"STATESET":       7,
}

Functions

func FormatData added in v0.1.5

func FormatData(mf map[string]*dto.MetricFamily, jobLabel string) *prompb.WriteRequest

FormatData convert metric family to a writerequest

func ParseAndFormat

func ParseAndFormat(input io.Reader, jobLabel string) (*prompb.WriteRequest, error)

ParseAndFormat return the data in the expected prometheus metrics write request format

Types

This section is empty.

Jump to

Keyboard shortcuts

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