stats

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ForNerds = metrics.NewSet()

ForNerds captures metrics from various bifrost processes

Functions

func MaybePushMetrics

func MaybePushMetrics(url string, interval time.Duration)

MaybePushMetrics pushes metrics to url if url is not empty. If interval is zero, a one minute interval is used Panics if there is an error pushing metrics.

func MetricsHandler

func MetricsHandler(w http.ResponseWriter, _ *http.Request)

MetricsHandler is a HTTP handler that returns metrics from the ForNerds MetricsSet

Types

This section is empty.

Jump to

Keyboard shortcuts

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