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
pull/2002/head
Nam Chu Hoai 2 years ago committed by GitHub
parent 1c2eb1bc07
commit 27798e0e0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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,
}
}

Loading…
Cancel
Save