mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-04-21 11:46:19 +08:00

* starterCounter? * Update api/savedata/update.go --------- Co-authored-by: frutescens <info@laptop> Co-authored-by: Frederico Santos <frederico.f.santos@tecnico.ulisboa.pt>
25 lines
569 B
Go
25 lines
569 B
Go
package savedata
|
|
|
|
import (
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
|
)
|
|
|
|
var (
|
|
gameModeCounter = promauto.NewCounterVec(
|
|
prometheus.CounterOpts{
|
|
Name: "rogueserver_game_mode_total",
|
|
Help: "The total number of classic sessions played per 5 minutes",
|
|
},
|
|
[]string{"gamemode"},
|
|
)
|
|
|
|
starterCounter = promauto.NewCounterVec(
|
|
prometheus.CounterOpts{
|
|
Name: "rogueserver_starter_count",
|
|
Help: "The total number of times a specific starter was selected",
|
|
},
|
|
[]string{"starterKey"},
|
|
)
|
|
)
|