From f1258f77ab9a4fb9ba623bbd03ac1879b641ce85 Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Sat, 5 Mar 2022 12:35:52 -0800 Subject: [PATCH] bin/stats: use whoami() to identify rabbitmq --- ofborg/src/bin/stats.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ofborg/src/bin/stats.rs b/ofborg/src/bin/stats.rs index 7717927..3072d78 100644 --- a/ofborg/src/bin/stats.rs +++ b/ofborg/src/bin/stats.rs @@ -18,10 +18,7 @@ fn main() -> Result<(), Box> { let conn = easylapin::from_config(&cfg.rabbitmq)?; let mut chan = task::block_on(conn.create_channel())?; - let events = stats::RabbitMq::from_lapin( - &format!("{}-{}", cfg.runner.identity, cfg.nix.system), - task::block_on(conn.create_channel())?, - ); + let events = stats::RabbitMq::from_lapin(&cfg.whoami(), task::block_on(conn.create_channel())?); let metrics = stats::MetricCollector::new(); let collector = tasks::statscollector::StatCollectorWorker::new(events, metrics.clone());