-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add basic rollapp Metrics for rollapp height and hub height (#420)
- Loading branch information
1 parent
479bfb8
commit 190379d
Showing
2 changed files
with
17 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package block | ||
|
||
import ( | ||
"github.com/prometheus/client_golang/prometheus" | ||
"github.com/prometheus/client_golang/prometheus/promauto" | ||
) | ||
|
||
var rollappHeightGauge = promauto.NewGauge(prometheus.GaugeOpts{ | ||
Name: "rollapp_height", | ||
Help: "The height of the local rollapp", | ||
}) | ||
var rollappHubHeightGauge = promauto.NewGauge(prometheus.GaugeOpts{ | ||
Name: "rollapp_hub_height", | ||
Help: "The latest height of the Rollapp that has been synced to the hub.", | ||
}) |