forked from taikoxyz/taiko-mono
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprometheus.go
57 lines (55 loc) · 2.49 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package eventindexer
import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
)
var (
BlockProposedEventsProcessed = promauto.NewCounter(prometheus.CounterOpts{
Name: "block_proposed_events_processed_ops_total",
Help: "The total number of processed BlockProposed events",
})
BlockProposedEventsProcessedError = promauto.NewCounter(prometheus.CounterOpts{
Name: "block_proposed_events_processed_error_ops_total",
Help: "The total number of processed BlockProposed event errors encountered",
})
BlockProvenEventsProcessed = promauto.NewCounter(prometheus.CounterOpts{
Name: "block_proven_events_processed_ops_total",
Help: "The total number of processed BlockProven events",
})
BlockProvenEventsProcessedError = promauto.NewCounter(prometheus.CounterOpts{
Name: "block_proven_events_processed_error_ops_total",
Help: "The total number of processed BlockProven event errors encountered",
})
BlockVerifiedEventsProcessed = promauto.NewCounter(prometheus.CounterOpts{
Name: "block_verified_events_processed_ops_total",
Help: "The total number of processed BlockVerified events",
})
BlockVerifiedEventsProcessedError = promauto.NewCounter(prometheus.CounterOpts{
Name: "block_verified_events_processed_error_ops_total",
Help: "The total number of processed BlockVerified event errors encountered",
})
MessageSentEventsProcessed = promauto.NewCounter(prometheus.CounterOpts{
Name: "message_sent_events_processed_ops_total",
Help: "The total number of processed MessageSent events",
})
MessageSentEventsProcessedError = promauto.NewCounter(prometheus.CounterOpts{
Name: "message_sent_events_processed_error_ops_total",
Help: "The total number of processed MessageSent event errors encountered",
})
SwapEventsProcessed = promauto.NewCounter(prometheus.CounterOpts{
Name: "swap_events_processed_ops_total",
Help: "The total number of processed MessageSent events",
})
SwapEventsProcessedError = promauto.NewCounter(prometheus.CounterOpts{
Name: "swap_events_processed_error_ops_total",
Help: "The total number of processed Swap event errors encountered",
})
BlocksProcessed = promauto.NewCounter(prometheus.CounterOpts{
Name: "blocks_processed_ops_total",
Help: "The total number of processed blocks",
})
ErrorsEncounteredDuringSubscription = promauto.NewCounter(prometheus.CounterOpts{
Name: "errors_encountered_during_subscription_opts_total",
Help: "The total number of errors that occurred during active subscription",
})
)