Rate limit metrics per log level (#4313)

* Rate limit metrics per log level

* fix tests
This commit is contained in:
Pankaj Garg
2019-05-16 22:27:05 -07:00
committed by GitHub
parent 39e85a3e53
commit e920191de0
7 changed files with 124 additions and 59 deletions

View File

@ -9,6 +9,7 @@ edition = "2018"
homepage = "https://solana.com/"
[dependencies]
log = "0.4.2"
serde_json = "1.0.39"
solana-metrics = { path = "../metrics", version = "0.15.0" }

View File

@ -77,6 +77,7 @@ fn main() {
influxdb::Value::String(git_commit_hash.trim().to_string()),
)
.to_owned(),
log::Level::Info,
);
}
let last_median = get_last_metrics(&"median".to_string(), &db, &name, &branch)