schnutibox/internal/metrics/metrics.go

22 lines
435 B
Go
Raw Permalink Normal View History

2021-03-31 20:14:05 +02:00
//nolint:exhaustivestruct,gochecknoglobals
package metrics
import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
)
var (
TracksPlayed = promauto.NewCounterVec(
prometheus.CounterOpts{
Name: "schnutibox_played_tracks_total",
},
[]string{"rfid", "name"})
BoxErrors = promauto.NewCounter(
prometheus.CounterOpts{
Name: "schnutbox_errors_total",
},
)
)