src/main: Prefix metrics with kademlia_exporter

This commit is contained in:
Max Inden 2020-04-12 23:30:16 +02:00
parent 590822dd4d
commit 87d76a7357
No known key found for this signature in database
GPG Key ID: 5403C5464810BC26

View File

@ -45,7 +45,7 @@ fn main() -> Result<(), Box<dyn Error>> {
})
.unwrap();
let registry = Registry::new();
let registry = Registry::new_custom(Some("kademlia_exporter".to_string()), None).unwrap();
let ip_db = opt
.max_mind_db
.map(|path| maxminddb::Reader::open_readfile(path).expect("Failed to open max mind db."));