Skip to content

Commit

Permalink
Create basic Grafana dashboard with all available metrics (#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutomic authored Apr 17, 2023
1 parent c0a8827 commit 0f653aa
Show file tree
Hide file tree
Showing 2 changed files with 706 additions and 130 deletions.
8 changes: 0 additions & 8 deletions crates/relayer-utils/src/metric.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ pub struct ResourceMetric {
pub struct Metrics {
/// Bridge watcher back off metric
pub bridge_watcher_back_off: GenericCounter<AtomicF64>,
/// Total active Relayer metric
pub total_active_relayer: GenericCounter<AtomicF64>,
/// Total transaction made Relayer metric
pub total_transaction_made: GenericCounter<AtomicF64>,
/// Anchor update proposals proposed by relayer
Expand Down Expand Up @@ -73,11 +71,6 @@ impl Metrics {
"specifies how many times the bridge watcher backed off"
)?;

let total_active_relayer_counter = register_counter!(
"total_active_relayer",
"The total number of active relayers",
)?;

let total_transaction_made_counter = register_counter!(
"total_transaction_made",
"The total number of transaction made",
Expand Down Expand Up @@ -140,7 +133,6 @@ impl Metrics {

Ok(Self {
bridge_watcher_back_off: bridge_watcher_back_off_counter,
total_active_relayer: total_active_relayer_counter,
total_transaction_made: total_transaction_made_counter,
anchor_update_proposals: anchor_update_proposals_counter,
proposals_signed: proposals_signed_counter,
Expand Down
Loading

0 comments on commit 0f653aa

Please sign in to comment.