metrics

package
v0.0.0-...-9a64fde Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Number of connected clients.
	Clients = promauto.NewGauge(prometheus.GaugeOpts{
		Namespace: "ircd",
		Name:      "clients",
		Help:      "Number of connected clients.",
	})
	// Number of existing channels.
	Channels = promauto.NewGauge(prometheus.GaugeOpts{
		Namespace: "ircd",
		Name:      "channels",
		Help:      "Number of existing channels.",
	})
	// Number of commands received.
	// This is a vector where the only label is 'name'.
	Command = promauto.NewCounterVec(prometheus.CounterOpts{
		Namespace: "ircd",
		Name:      "command",
		Help:      "Number of commands received.",
	}, []string{"name"})
)

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