metrics

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: AGPL-3.0 Imports: 5 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 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