prom

package
v0.0.33-windows-dev Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2025 License: MIT Imports: 11 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoMetricFound = fmt.Errorf("no metric found")
)

Functions

func CheckMetric

func CheckMetric(promAddress, metricName string, validMetric map[string]string) error

func CheckMetricFromBuffer added in v0.0.17

func CheckMetricFromBuffer(prometheusMetricData []byte, metricName string, validMetric map[string]string) error

func GetMetricGuageValueFromBuffer

func GetMetricGuageValueFromBuffer(prometheusMetricData []byte, metricName string, expectedLabels map[string]string) (float64, error)

func ParseReaderPrometheusMetrics added in v0.0.17

func ParseReaderPrometheusMetrics(input io.Reader) (map[string]*promclient.MetricFamily, error)

func StripExecGarbage

func StripExecGarbage(s string) string

When capturing promethus output via curl and exect, there's a lot of garbage at the front

Types

This section is empty.

Jump to

Keyboard shortcuts

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