metrics

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCounter

func GetCounter(name, namespace string) prometheus.Counter

GetCounter return the prometheus counter of given name.

func GetCounterValue added in v3.1.0

func GetCounterValue(name, namespace string) float64

func RegisterPrometheusCounter

func RegisterPrometheusCounter(name, helpText, namespace string)

RegisterPrometheusCounter register a new Counter of given name with help text.

func StartPrometheusMetricsServer

func StartPrometheusMetricsServer()

StartPrometheusMetricsServer starts a metric server handling "/metrics" on "localhost:8081" exposing the registered metrics.

Types

This section is empty.

Jump to

Keyboard shortcuts

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