Skip to content

Commit 11468d8

Browse files
committed
Change the metric names to conform to the limiter names
1 parent 8a990a2 commit 11468d8

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

beacon_node/lighthouse_network/src/metrics.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,16 +206,16 @@ pub static REPORT_PEER_MSGS: LazyLock<Result<IntCounterVec>> = LazyLock::new(||
206206
)
207207
});
208208

209-
pub static SELF_LIMITER_REQUEST_IDLING: LazyLock<Result<Histogram>> = LazyLock::new(|| {
209+
pub static OUTBOUND_REQUEST_IDLING: LazyLock<Result<Histogram>> = LazyLock::new(|| {
210210
try_create_histogram(
211-
"self_limiter_request_idling_seconds",
211+
"outbound_request_idling_seconds",
212212
"The time our own request remained idle in the self-limiter",
213213
)
214214
});
215215

216-
pub static RESPONSE_LIMITER_RESPONSE_IDLING: LazyLock<Result<Histogram>> = LazyLock::new(|| {
216+
pub static RESPONSE_IDLING: LazyLock<Result<Histogram>> = LazyLock::new(|| {
217217
try_create_histogram(
218-
"response_limiter_idling_seconds",
218+
"response_idling_seconds",
219219
"The time our response remained idle in the response limiter",
220220
)
221221
});

beacon_node/lighthouse_network/src/rpc/response_limiter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ impl<E: EthSpec> ResponseLimiter<E> {
147147
) {
148148
Ok(()) => {
149149
metrics::observe_duration(
150-
&crate::metrics::RESPONSE_LIMITER_RESPONSE_IDLING,
150+
&crate::metrics::RESPONSE_IDLING,
151151
timestamp_now().saturating_sub(response.queued_at),
152152
);
153153
responses.push(response)

beacon_node/lighthouse_network/src/rpc/self_limiter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ impl<Id: ReqId, E: EthSpec> SelfRateLimiter<Id, E> {
286286
// Finally return any queued events.
287287
if let Some((peer_id, event, queued_at)) = self.ready_requests.pop() {
288288
metrics::observe_duration(
289-
&crate::metrics::SELF_LIMITER_REQUEST_IDLING,
289+
&crate::metrics::OUTBOUND_REQUEST_IDLING,
290290
timestamp_now().saturating_sub(queued_at),
291291
);
292292
return Poll::Ready(BehaviourAction::NotifyHandler {

0 commit comments

Comments
 (0)