Add database size metric

This commit is contained in:
Paul Hauner
2019-06-01 14:43:08 +10:00
parent c8ba44b0b5
commit 29c5f297a6
5 changed files with 36 additions and 5 deletions

View File

@@ -3,6 +3,7 @@ use beacon_chain::{BeaconChain, BeaconChainTypes};
use iron::typemap::Key;
use prometheus::Registry;
use std::marker::PhantomData;
use std::path::PathBuf;
use std::sync::Arc;
pub struct BeaconChainKey<T> {
@@ -24,3 +25,9 @@ pub struct LocalMetricsKey;
impl Key for LocalMetricsKey {
type Value = LocalMetrics;
}
pub struct DBPathKey;
impl Key for DBPathKey {
type Value = PathBuf;
}