Skip to content
This repository has been archived by the owner on Mar 18, 2023. It is now read-only.

Commit

Permalink
πŸ”‡ Remove the velocity metric, it isn't that useful
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenein committed Aug 14, 2021
1 parent 06ee611 commit b5d9de4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "blitz-dashboard"
version = "0.44.10"
version = "0.44.11"
authors = ["Pavel Perestoronin <[email protected]>"]
edition = "2018"
resolver = "2"
Expand Down
4 changes: 1 addition & 3 deletions src/crawler/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ impl TotalCrawlerMetrics {
let rps = self.n_api_requests.swap(0, Ordering::Relaxed) as f64 / elapsed_secs;
let cold_aps = self.cold.n_accounts.swap(0, Ordering::Relaxed) as f64 / elapsed_secs;
let hot_aps = self.hot.n_accounts.swap(0, Ordering::Relaxed) as f64 / elapsed_secs;
let total_aps = hot_aps + cold_aps;
let cold_tps = self.cold.n_tanks.swap(0, Ordering::Relaxed) as f64 / elapsed_secs;
let hot_tps = self.hot.n_tanks.swap(0, Ordering::Relaxed) as f64 / elapsed_secs;
let cold_lag_secs = self.cold.max_lag_secs.swap(0, Ordering::Relaxed);
Expand All @@ -43,7 +42,7 @@ impl TotalCrawlerMetrics {

log::info!(
concat!(
"RPS: {rps:.1} V: {velocity:.0}%",
"RPS: {rps:.1}",
" | ",
"APS: πŸ”₯{hot_aps:.0} 🧊{cold_aps:.0}",
" | ",
Expand All @@ -54,7 +53,6 @@ impl TotalCrawlerMetrics {
"πŸ”₯#{last_hot_account_id} 🧊#{last_cold_account_id}",
),
rps = rps,
velocity = total_aps / rps,
hot_aps = hot_aps,
cold_aps = cold_aps,
hot_tps = hot_tps,
Expand Down

0 comments on commit b5d9de4

Please sign in to comment.