Skip to content

Commit

Permalink
followup(#8359): pre-initialize circuitbreaker metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
problame committed Jul 24, 2024
1 parent 2723a81 commit c7d3e2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pageserver/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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| {
Expand Down
2 changes: 2 additions & 0 deletions test_runner/fixtures/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, ...] = (
Expand Down

0 comments on commit c7d3e2f

Please sign in to comment.