Skip to content

Commit

Permalink
feat(dre): Show the metrics URL to follow the HostOS upgrade progress (
Browse files Browse the repository at this point in the history
  • Loading branch information
sasa-tomic authored Jul 3, 2024
1 parent 5e0866f commit 24c6380
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rs/cli/src/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,12 @@ impl Runner {
.await
.map_err(|e| anyhow::anyhow!(e))?;

println!("Submitted proposal to updated the following nodes:\n{:?}", nodes);
let nodes_short = nodes
.iter()
.map(|p| p.to_string().split('-').next().unwrap().to_string())
.collect::<Vec<_>>();
println!("Submitted proposal to update the following nodes: {:?}", nodes_short);
println!("You can follow the upgrade progress at https://grafana.mainnet.dfinity.network/explore?orgId=1&left=%7B%22datasource%22:%22PE62C54679EC3C073%22,%22queries%22:%5B%7B%22refId%22:%22A%22,%22datasource%22:%7B%22type%22:%22prometheus%22,%22uid%22:%22PE62C54679EC3C073%22%7D,%22editorMode%22:%22code%22,%22expr%22:%22hostos_version%7Bic_node%3D~%5C%22{}%5C%22%7D%5Cn%22,%22legendFormat%22:%22__auto%22,%22range%22:true,%22instant%22:true%7D%5D,%22range%22:%7B%22from%22:%22now-1h%22,%22to%22:%22now%22%7D%7D", nodes_short.iter().map(|n| n.to_string() + ".%2B").join("%7C"));

Ok(())
}
Expand Down

0 comments on commit 24c6380

Please sign in to comment.