Add more metrics to prometheus (#5034)

* Add a few things

* Add finality_grandpa_round

* fix fg tests

* Nitpicks

* Nitpicks

* Fix name of prometheus crate
This commit is contained in:
Ashley authored and GitHub committed 2020-03-03 11:36:58 +01:00
1 parent b27a820032
commit 883ddfc897
16 files changed
+135 -24

No files matched your search

+2 -2
View File
@@ -53,8 +53,8 @@ impl<'a> From<&'a str> for Error {
}
}
impl From<substrate_prometheus_endpoint::PrometheusError> for Error {
fn from(e: substrate_prometheus_endpoint::PrometheusError) -> Self {
impl From<prometheus_endpoint::PrometheusError> for Error {
fn from(e: prometheus_endpoint::PrometheusError) -> Self {
Error::Other(format!("Prometheus error: {}", e))
}
}