You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rogueserver/api/savedata/prometheus.go

33 lines
808 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"},
)
runResultCounter = promauto.NewCounterVec(
prometheus.CounterOpts{
Name: "rogueserver_run_result_count",
Help: "The total number of victories and losses logged",
},
[]string{"result", "waveIndex", "gameMode"},
)
)