Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: grafana warnings #1514

Merged
merged 8 commits into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions batcher/aligned-batcher/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,25 @@ impl BatcherMetrics {
pub fn start(metrics_port: u16) -> anyhow::Result<Self> {
let registry = prometheus::Registry::new();

let open_connections = register_int_gauge!(opts!("open_connections", "Open Connections"))?;
let received_proofs = register_int_counter!(opts!("received_proofs", "Received Proofs"))?;
let sent_batches = register_int_counter!(opts!("sent_batches", "Sent Batches"))?;
let open_connections =
register_int_gauge!(opts!("open_connections_count", "Open Connections"))?;
let received_proofs =
register_int_counter!(opts!("received_proofs_count", "Received Proofs"))?;
let sent_batches = register_int_counter!(opts!("sent_batches_count", "Sent Batches"))?;
let reverted_batches =
register_int_counter!(opts!("reverted_batches", "Reverted Batches"))?;
register_int_counter!(opts!("reverted_batches_count", "Reverted Batches"))?;
let canceled_batches =
register_int_counter!(opts!("canceled_batches", "Canceled Batches"))?;
register_int_counter!(opts!("canceled_batches_count", "Canceled Batches"))?;
let user_errors = register_int_counter_vec!(
opts!("user_errors", "User Errors"),
opts!("user_errors_count", "User Errors"),
&["error_type", "proving_system"]
)?;
let batcher_started = register_int_counter!(opts!("batcher_started", "Batcher Started"))?;
let batcher_started =
register_int_counter!(opts!("batcher_started_count", "Batcher Started"))?;
let gas_price_used_on_latest_batch =
register_int_gauge!(opts!("gas_price_used_on_latest_batch", "Gas Price"))?;
let broken_ws_connections = register_int_counter!(opts!(
"broken_ws_connections",
"broken_ws_connections_count",
"Broken websocket connections"
))?;

Expand Down
Loading
Loading