From e6606fc1d4be9f6f5f4567956a46ba0fe5aa9a6e Mon Sep 17 00:00:00 2001 From: Brian Balser Date: Fri, 21 Apr 2023 10:41:30 -0400 Subject: [PATCH] start metrics by readings settings to control what port is used (#485) --- iot_packet_verifier/src/daemon.rs | 2 +- mobile_packet_verifier/src/daemon.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iot_packet_verifier/src/daemon.rs b/iot_packet_verifier/src/daemon.rs index 26ef0af01..ec7d9193f 100644 --- a/iot_packet_verifier/src/daemon.rs +++ b/iot_packet_verifier/src/daemon.rs @@ -77,7 +77,7 @@ pub struct Cmd {} impl Cmd { pub async fn run(self, settings: &Settings) -> Result<()> { - poc_metrics::install_metrics(); + poc_metrics::start_metrics(&settings.metrics)?; let (shutdown_trigger, shutdown_listener) = triggered::trigger(); tokio::spawn(async move { diff --git a/mobile_packet_verifier/src/daemon.rs b/mobile_packet_verifier/src/daemon.rs index 3a3a954c9..d035d4dba 100644 --- a/mobile_packet_verifier/src/daemon.rs +++ b/mobile_packet_verifier/src/daemon.rs @@ -78,7 +78,7 @@ pub struct Cmd {} impl Cmd { pub async fn run(self, settings: &Settings) -> Result<()> { - poc_metrics::install_metrics(); + poc_metrics::start_metrics(&settings.metrics)?; let (shutdown_trigger, shutdown_listener) = triggered::trigger(); tokio::spawn(async move {