Skip to content

Commit 70112b9

Browse files
committed
store: Rename semaphore metric to store_semaphore_wait_ms
1 parent ac70430 commit 70112b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

store/postgres/src/pool/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -539,14 +539,14 @@ impl PoolInner {
539539
.expect("failed to create `query_effort_ms` counter");
540540
let query_semaphore = Arc::new(tokio::sync::Semaphore::new(max_concurrent_queries));
541541

542-
// Indexing semaphore for indexing/write operations
542+
// Semaphore for getting PermittedConnection
543543
let indexing_semaphore_wait_gauge = registry
544544
.new_gauge(
545-
"indexing_semaphore_wait_ms",
546-
"Moving average of time spent waiting for indexing semaphore",
545+
"store_semaphore_wait_ms",
546+
"Moving average of time spent waiting for connection semaphore",
547547
const_labels,
548548
)
549-
.expect("failed to create indexing_semaphore_wait_ms gauge");
549+
.expect("failed to create store_semaphore_wait_ms gauge");
550550
let indexing_semaphore = Arc::new(tokio::sync::Semaphore::new(max_concurrent_queries));
551551

552552
PoolInner {

0 commit comments

Comments
 (0)