-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
relayer events for prometheus metrics
- Loading branch information
1 parent
0b196a6
commit 8a6a429
Showing
5 changed files
with
43 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
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", | ||
}) | ||
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_done_error_ops_total", | ||
Help: "The total number of processed events that failed due to an error", | ||
}) | ||
) |