metrics

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NAMESPACE = "cocoon"
)

Variables

View Source
var (
	RelaysConnected = promauto.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: NAMESPACE,
		Name:      "relays_connected",
		Help:      "number of connected relays, by host",
	}, []string{"host"})

	RelaySends = promauto.NewCounterVec(prometheus.CounterOpts{
		Namespace: NAMESPACE,
		Name:      "relay_sends",
		Help:      "number of events sent to a relay, by host",
	}, []string{"host", "kind"})

	RepoOperations = promauto.NewCounterVec(prometheus.CounterOpts{
		Namespace: NAMESPACE,
		Name:      "repo_operations",
		Help:      "number of operations made against repos",
	}, []string{"kind"})
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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