metrics

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const NamespaceBaleen = "baleen"

Variables

View Source
var (
	// Baleen specific collectors
	Subscriptions prometheus.Gauge
	FeedSyncs     *prometheus.CounterVec
	FeedItems     *prometheus.CounterVec
	Documents     *prometheus.CounterVec
)

Functions

func Serve

func Serve(conf config.MonitoringConfig) error

func Shutdown

func Shutdown(ctx context.Context) error

Shutdown the prometheus metrics collectors server and reset the package. This method should be called at least once by outside callers before the process shuts down to ensure that system resources are cleaned up correctly.

Types

This section is empty.

Jump to

Keyboard shortcuts

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