diff --git a/sled-agent/src/sled_agent.rs b/sled-agent/src/sled_agent.rs index 41c58694c1b..4eb9f967559 100644 --- a/sled-agent/src/sled_agent.rs +++ b/sled-agent/src/sled_agent.rs @@ -453,8 +453,8 @@ impl SledAgent { )?; let mut metrics_manager = MetricsManager::new( - request.id, - request.rack_id, + request.body.id, + request.body.rack_id, hardware.baseboard(), log.new(o!("component" => "MetricsManager")), )?; @@ -481,7 +481,7 @@ impl SledAgent { // Spawn a task in the background to register our metric producer with // Nexus. This should not block progress here. let endpoint = ProducerEndpoint { - id: request.id, + id: request.body.id, address: sled_address.into(), base_route: String::from("/metrics/collect"), interval: crate::metrics::METRIC_COLLECTION_INTERVAL,