File size: 661 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package notification

import (
	"github.com/prometheus/client_golang/prometheus"
	"github.com/prometheus/client_golang/prometheus/promauto"
)

var (
	metricSentTotal = promauto.NewCounterVec(prometheus.CounterOpts{
		Namespace: "goalert",
		Subsystem: "notification",
		Name:      "sent_total",
		Help:      "Total number of sent notifications.",
	}, []string{"dest_type", "message_type", "service_id"})
	metricRecvTotal = promauto.NewCounterVec(prometheus.CounterOpts{
		Namespace: "goalert",
		Subsystem: "notification",
		Name:      "recv_total",
		Help:      "Total number of received notification responses.",
	}, []string{"dest_type", "response_type"})
)