fail if metric registration panics Signed-off-by: Mario Constanti <mario.constanti@mercedes-benz.com>
12 lines
332 B
Go
12 lines
332 B
Go
package metrics
|
|
|
|
import "github.com/prometheus/client_golang/prometheus"
|
|
|
|
var (
|
|
WebhooksReceived = prometheus.NewCounterVec(prometheus.CounterOpts{
|
|
Namespace: metricsNamespace,
|
|
Subsystem: metricsWebhookSubsystem,
|
|
Name: "received",
|
|
Help: "The total number of webhooks received",
|
|
}, []string{"valid", "reason"})
|
|
)
|