Help us shape the future of Go! Take the 2026 Go Developer Survey

metrics

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ShardCounter = promauto.NewGauge(prometheus.GaugeOpts{
		Name: "bot_shards",
		Help: "The total number of shards the bot has",
	})

	GuildCounter = promauto.NewGauge(prometheus.GaugeOpts{
		Name: "bot_guilds",
		Help: "The total number of guilds the bot is in",
	})

	UserCounter = promauto.NewGauge(prometheus.GaugeOpts{
		Name: "bot_users",
		Help: "The total number of users the bot serves",
	})

	CommandsHandledCounter = promauto.NewCounter(prometheus.CounterOpts{
		Name: "bot_commands_handled",
		Help: "The total number of commands handled by the bot",
	})

	ComponentsHandledCounter = promauto.NewCounter(prometheus.CounterOpts{
		Name: "bot_components_handled",
		Help: "The total number of components handled by the bot",
	})
)

Functions

func Setup

func Setup(b *types.Bot)

Types

This section is empty.

Jump to

Keyboard shortcuts

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