metrics

package
v1.8.5 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TrackInformationSearched = promauto.NewCounter(prometheus.CounterOpts{
		Namespace: "spotifyutils",
		Name:      "track_information_searched",
		Help:      "The total number of tracks searched against the sptify api",
	})
	TrackLyricsSearched = promauto.NewCounter(prometheus.CounterOpts{
		Namespace: "spotifyutils",
		Name:      "track_lyrics_searched",
		Help:      "The total number of tracks searched against Genius",
	})
	UserCount = promauto.NewGauge(prometheus.GaugeOpts{
		Namespace: "spotifyutils",
		Name:      "users",
		Help:      "The total number of users",
	})
	TrackingUserCount = promauto.NewGauge(prometheus.GaugeOpts{
		Namespace: "spotifyutils",
		Name:      "users_tracking",
		Help:      "The total number of users that are tracked",
	})
	RecentTracksAdded = promauto.NewGauge(prometheus.GaugeOpts{
		Namespace: "spotifyutils",
		Name:      "recent_tracks_added",
		Help:      "The total number of recent tracks that are added across all users",
	})
	SpotifyRequests = promauto.NewCounter(prometheus.CounterOpts{
		Namespace: "spotifyutils",
		Name:      "spotify_requests",
		Help:      "The total number of API requests to Spotify",
	})
	GeniusRequests = promauto.NewCounter(prometheus.CounterOpts{
		Namespace: "spotifyutils",
		Name:      "genius_requests",
		Help:      "The total number of API requests to Genius",
	})
)

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