File size: 581 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
package engine
import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
)
var (
metricCycleTotal = promauto.NewCounter(prometheus.CounterOpts{
Namespace: "goalert",
Subsystem: "engine",
Name: "cycle_total",
Help: "Total number of engine cycles.",
})
metricModuleDuration = promauto.NewHistogramVec(prometheus.HistogramOpts{
Namespace: "goalert",
Subsystem: "engine",
Name: "cycle_duration_seconds",
Help: "Engine cycle duration in seconds by module.",
}, []string{"module"})
)
|