Skip to content

Commit c8a12bf

Browse files
authored
Fix metric: add slot_index (#182)
1 parent e70e666 commit c8a12bf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gcp_uploader/src/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ async fn emit_current_epoch_snapshot_metric(
347347
.get_epoch_info()
348348
.with_context(|| format!("Failed to fetch epoch info from {}", rpc_url))?;
349349
let epoch = epoch_info.epoch;
350+
let slot_index = epoch_info.slot_index;
350351

351352
// Build GCS prefix path used by upload_file: {epoch}/{hostname}/snapshot-*.tar.zst
352353
// First, list objects under epoch/hostname and look for any snapshot-*.tar.zst
@@ -371,7 +372,8 @@ async fn emit_current_epoch_snapshot_metric(
371372
datapoint_info!(
372373
"tip_router_gcp_uploader.snapshot_present",
373374
("epoch", epoch as i64, i64),
374-
("present", uploaded, bool),
375+
("slot_index", slot_index as i64, i64),
376+
("present_i", uploaded as i64, i64),
375377
"cluster" => cluster,
376378
"hostname" => hostname,
377379
"bucket" => bucket_name,

0 commit comments

Comments
 (0)