Skip to content

Commit 8a6e28e

Browse files
committed
Fix queue_count metric documentation and setup
It was being initialized and deleted as `queue_counter` instead.
1 parent 039db60 commit 8a6e28e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ been started.
534534
|hackney.POOLNAME.no_socket |counter | Count of new connections |
535535
|hackney.POOLNAME.in_use_count |histogram| How many connections from the pool are used |
536536
|hackney.POOLNAME.free_count |histogram| Number of free sockets in the pool |
537-
|hackney.POOLNAME.queue_counter|histogram| queued clients |
537+
|hackney.POOLNAME.queue_count |histogram| queued clients |
538538

539539
## Contribute
540540

doc/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ been started.
534534
|hackney.POOLNAME.no_socket |counter | Count of new connections |
535535
|hackney.POOLNAME.in_use_count |histogram| How many connections from the pool are used |
536536
|hackney.POOLNAME.free_count |histogram| Number of free sockets in the pool |
537-
|hackney.POOLNAME.queue_counter|histogram| queued clients |
537+
|hackney.POOLNAME.queue_count |histogram| queued clients |
538538

539539
## Contribute
540540

doc/overview.edoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ been started.
529529
|hackney.POOLNAME.no_socket |counter | Count of new connections |
530530
|hackney.POOLNAME.in_use_count |histogram| How many connections from the pool are used |
531531
|hackney.POOLNAME.free_count |histogram| Number of free sockets in the pool |
532-
|hackney.POOLNAME.queue_counter|histogram| queued clients |
532+
|hackney.POOLNAME.queue_count |histogram| queued clients |
533533

534534
## Contribute
535535

src/hackney_pool.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,15 +639,15 @@ init_metrics(PoolName) ->
639639
_ = metrics:new(Engine, counter, [hackney_pool, PoolName, no_socket]),
640640
_ = metrics:new(Engine, histogram, [hackney_pool, PoolName, in_use_count]),
641641
_ = metrics:new(Engine, histogram, [hackney_pool, PoolName, free_count]),
642-
_ = metrics:new(Engine, histogram, [hackney_pool, PoolName, queue_counter]),
642+
_ = metrics:new(Engine, histogram, [hackney_pool, PoolName, queue_count]),
643643
Engine.
644644

645645
delete_metrics(Engine, PoolName) ->
646646
_ = metrics:delete(Engine, [hackney_pool, PoolName, take_rate]),
647647
_ = metrics:delete(Engine, [hackney_pool, PoolName, no_socket]),
648648
_ = metrics:delete(Engine, [hackney_pool, PoolName, in_use_count]),
649649
_ = metrics:delete(Engine, [hackney_pool, PoolName, free_count]),
650-
_ = metrics:delete(Engine, [hackney_pool, PoolName, queue_counter]),
650+
_ = metrics:delete(Engine, [hackney_pool, PoolName, queue_count]),
651651
ok.
652652

653653

0 commit comments

Comments
 (0)