From c7d3e2f96f526817d753214ab2267789ee25e835 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Wed, 24 Jul 2024 16:16:03 +0200 Subject: [PATCH] followup(#8359): pre-initialize circuitbreaker metrics --- pageserver/src/metrics.rs | 2 ++ test_runner/fixtures/metrics.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/pageserver/src/metrics.rs b/pageserver/src/metrics.rs index c03567f6efb2a..9aff5220f59e0 100644 --- a/pageserver/src/metrics.rs +++ b/pageserver/src/metrics.rs @@ -3104,6 +3104,8 @@ pub fn preinitialize_metrics() { &tokio_epoll_uring::THREAD_LOCAL_LAUNCH_SUCCESSES, &REMOTE_ONDEMAND_DOWNLOADED_LAYERS, &REMOTE_ONDEMAND_DOWNLOADED_BYTES, + &CIRCUIT_BREAKERS_BROKEN, + &CIRCUIT_BREAKERS_UNBROKEN, ] .into_iter() .for_each(|c| { diff --git a/test_runner/fixtures/metrics.py b/test_runner/fixtures/metrics.py index 4836d42db5be0..509f41366b388 100644 --- a/test_runner/fixtures/metrics.py +++ b/test_runner/fixtures/metrics.py @@ -133,6 +133,8 @@ def histogram(prefix_without_trailing_underscore: str) -> List[str]: *histogram("pageserver_remote_operation_seconds"), *histogram("pageserver_io_operations_seconds"), "pageserver_tenant_states_count", + "pageserver_circuit_breaker_broken_total", + "pageserver_circuit_breaker_unbroken_total", ) PAGESERVER_PER_TENANT_METRICS: Tuple[str, ...] = (