Add graphs for each function name (#4214)

This commit is contained in:
Marcio Diaz
2019-11-26 20:06:32 +01:00
committed by GitHub
parent b362be3ff3
commit b2aab98e69
4 changed files with 14 additions and 13 deletions
+9 -9
View File
@@ -1005,15 +1005,15 @@ ServiceBuilder<
"used_state_cache_size" => used_state_cache_size,
);
record_metrics!(
"peers" => num_peers,
"height" => best_number,
"txcount" => txpool_status.ready,
"cpu" => cpu_usage,
"memory" => memory,
"finalized_height" => finalized_number,
"bandwidth_download" => bandwidth_download,
"bandwidth_upload" => bandwidth_upload,
"used_state_cache_size" => used_state_cache_size
"peers".to_owned() => num_peers,
"height".to_owned() => best_number,
"txcount".to_owned() => txpool_status.ready,
"cpu".to_owned() => cpu_usage,
"memory".to_owned() => memory,
"finalized_height".to_owned() => finalized_number,
"bandwidth_download".to_owned() => bandwidth_download,
"bandwidth_upload".to_owned() => bandwidth_upload,
"used_state_cache_size".to_owned() => used_state_cache_size
);
Ok(())