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

* Revert "Remove Daily from starter tracking" This reverts commit ce4aea88de78696c76046c862cdcae2f5d6d871f. * Added separate starter counter for Endless/Endless Spliced * Added daily conditional * Changed starterCounter to also hold information about the game mode. --------- Co-authored-by: frutescens <info@laptop>
25 lines
581 B
Go
25 lines
581 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", "gameMode"},
|
|
)
|
|
)
|