metrics

package
v0.0.0-...-f01a8c1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BuildInfo = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Namespace: namespace,
			Name:      "build_info",
			Help:      "Build Information",
		},
		[]string{
			"build_time",
			"version",
			"git_ref_name",
			"git_ref_sha",
		},
	)
)

Metrics used throughout the application for troubleshooting and health indicators.

Functions

func Heartbeat

func Heartbeat(ctx context.Context, meter metric.Meter) (context.Context, error)

Heartbeat is application heartbeat that continuously beats at configurable fixed interval. It emits few metrics every configured intervals to say that the app is alive and provide the stats

func RegisterTo

func RegisterTo(target prometheus.Registerer) error

RegisterTo registers metrics to a desired target Registerer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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