prometheus

package
v0.0.0-...-4fbcbfc Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ExamsMarkedMetric is a prometheus metric for the amount of requested exams for watermarking
	ExamsMarkedMetric = promauto.NewCounter(prometheus.CounterOpts{
		Name: "altklausur_ausleihe_exams_marked",
		Help: "The total number of requested exams",
	})

	// TotalExamsMetric is a prometheus metric for the total amount of exams in the database
	TotalExamsMetric = promauto.NewGauge(prometheus.GaugeOpts{
		Name: "altklausur_ausleihe_exams_total",
		Help: "The total number of exams",
	})
)

Functions

func UpdateTotalExamsMetric

func UpdateTotalExamsMetric(database *gorm.DB)

UpdateTotalExamsMetric updates the TotalExamsMetric with the current value from the database

Types

This section is empty.

Jump to

Keyboard shortcuts

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