prometheus

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LabelsToPromFilter

func LabelsToPromFilter(labels map[string]string) string

LabelsToPromFilter converts a map of labels to a Prometheus filter string.

func PromStrToTimeDuration added in v0.16.0

func PromStrToTimeDuration(t string) (time.Duration, error)

PromStrToTimeDuration converts from prom string duration to std duration.

func TimeDurationToPromStr

func TimeDurationToPromStr(t time.Duration) string

TimeDurationToPromStr converts from std duration to prom string duration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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