forked from taikoxyz/taiko-mono
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prometheus.go
29 lines (27 loc) · 1 KB
/
prometheus.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package relayer
import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
)
var (
EventsProcessed = promauto.NewCounter(prometheus.CounterOpts{
Name: "events_processed_ops_total",
Help: "The total number of processed events",
})
BlocksProcessed = promauto.NewCounter(prometheus.CounterOpts{
Name: "blocks_processed_ops_total",
Help: "The total number of processed blocks",
})
RetriableEvents = promauto.NewCounter(prometheus.CounterOpts{
Name: "events_processed_retriable_status_ops_total",
Help: "The total number of processed events that ended up in Retriable status",
})
DoneEvents = promauto.NewCounter(prometheus.CounterOpts{
Name: "events_processed_done_status_ops_total",
Help: "The total number of processed events that ended up in Done status",
})
ErrorEvents = promauto.NewCounter(prometheus.CounterOpts{
Name: "events_processed_error_ops_total",
Help: "The total number of processed events that failed due to an error",
})
)