metrics

package
v0.0.0-...-d1147f9 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AuthCount = promauto.NewCounter(
		prometheus.CounterOpts{
			Name: "spectrograph_auth_count_total",
			Help: "The total number of authentications",
		},
	)

	WorkerGuildCount = promauto.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "spectrograph_worker_guild_count",
			Help: "The number of guilds the worker is currently in",
		},
		[]string{"shard_id"},
	)

	WorkerEventCount = promauto.NewCounterVec(
		prometheus.CounterOpts{
			Name: "spectrograph_worker_event_count_total",
			Help: "The total number of worker events",
		},
		[]string{"shard_id", "event_type", "guild_id"},
	)

	WorkerSessionsRemainingCount = promauto.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "spectrograph_worker_sessions_remaining_count",
			Help: "The number of sessions remaining for a worker",
		},
		[]string{"shard_id"},
	)

	WorkerSessionsTotalCount = promauto.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "spectrograph_worker_sessions_total_count",
			Help: "The number of total sessions allowed for this shard ID",
		},
		[]string{"shard_id"},
	)
)

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