forked from taikoxyz/taiko-mono
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prometheus.go
97 lines (95 loc) · 4.38 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
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",
})
SlashedEventsProcessed = promauto.NewCounter(prometheus.CounterOpts{
Name: "slashed_events_processed_ops_total",
Help: "The total number of processed Slashed events",
})
SlashedEventsProcessedError = promauto.NewCounter(prometheus.CounterOpts{
Name: "slashed_events_processed_error_ops_total",
Help: "The total number of processed Slashed event errors encountered",
})
StakedEventsProcessed = promauto.NewCounter(prometheus.CounterOpts{
Name: "staked_events_processed_ops_total",
Help: "The total number of processed Staked events",
})
StakedEventsProcessedError = promauto.NewCounter(prometheus.CounterOpts{
Name: "staked_events_processed_error_ops_total",
Help: "The total number of processed Staked event errors encountered",
})
ExitedEventsProcessed = promauto.NewCounter(prometheus.CounterOpts{
Name: "exited_events_processed_ops_total",
Help: "The total number of processed Exited events",
})
ExitedEventsProcessedError = promauto.NewCounter(prometheus.CounterOpts{
Name: "exited_events_processed_error_ops_total",
Help: "The total number of processed Exited event errors encountered",
})
WithdrawnEventsProcessed = promauto.NewCounter(prometheus.CounterOpts{
Name: "withdrawn_events_processed_ops_total",
Help: "The total number of processed Exited events",
})
WithdrawnEventsProcessedError = promauto.NewCounter(prometheus.CounterOpts{
Name: "withdrawn_events_processed_error_ops_total",
Help: "The total number of processed Exited 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 Swap events",
})
SwapEventsProcessedError = promauto.NewCounter(prometheus.CounterOpts{
Name: "swap_events_processed_error_ops_total",
Help: "The total number of processed Swap event errors encountered",
})
LiquidityAddedEventsProcessed = promauto.NewCounter(prometheus.CounterOpts{
Name: "liquidity_added_events_processed_ops_total",
Help: "The total number of processed LiquidityAdded events",
})
LiquidityAddedEventsProcessedError = promauto.NewCounter(prometheus.CounterOpts{
Name: "liquidity_added_events_processed_error_ops_total",
Help: "The total number of processed LiquidityAdded 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",
})
)