From 27798e0e0a0e24e33d89c1e393cd305687c1b726 Mon Sep 17 00:00:00 2001 From: Nam Chu Hoai Date: Wed, 22 Mar 2023 07:50:23 -0400 Subject: [PATCH] Set origin of metric (#1981) ### Description The metric sets it for the origin label of `any` which is not as useful as setting to the actual origin --- rust/agents/relayer/src/msg/processor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/agents/relayer/src/msg/processor.rs b/rust/agents/relayer/src/msg/processor.rs index bc98cbaf2..88a8068a8 100644 --- a/rust/agents/relayer/src/msg/processor.rs +++ b/rust/agents/relayer/src/msg/processor.rs @@ -161,7 +161,7 @@ impl MessageProcessorMetrics { Self { max_last_known_message_nonce_gauge: metrics .last_known_message_nonce() - .with_label_values(&["processor_loop", "any", "any"]), + .with_label_values(&["processor_loop", origin.name(), "any"]), last_known_message_nonce_gauges: gauges, } }