From 36f376705b37df6148e77a5b18763410b5dd7381 Mon Sep 17 00:00:00 2001 From: Greg Mefford Date: Thu, 18 Jul 2019 13:16:38 -0400 Subject: [PATCH] Fix hackeny.POOL.queue_count metric name --- README.md | 2 +- doc/README.md | 2 +- doc/overview.edoc | 2 +- src/hackney_pool.erl | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 820a1a7b..54ce979d 100644 --- a/README.md +++ b/README.md @@ -485,7 +485,7 @@ been started. |hackney.POOLNAME.no_socket |counter | Count of new connections | |hackney.POOLNAME.in_use_count |histogram| How many connections from the pool are used | |hackney.POOLNAME.free_count |counter | Number of free sockets in the pool | -|hackney.POOLNAME.queue_counter|histogram| queued clients | +|hackney.POOLNAME.queue_count |histogram| queued clients | ## Contribute diff --git a/doc/README.md b/doc/README.md index 1525ead0..f63380e9 100644 --- a/doc/README.md +++ b/doc/README.md @@ -485,7 +485,7 @@ been started. |hackney.POOLNAME.no_socket |counter | Count of new connections | |hackney.POOLNAME.in_use_count |histogram| How many connections from the pool are used | |hackney.POOLNAME.free_count |counter | Number of free sockets in the pool | -|hackney.POOLNAME.queue_counter|histogram| queued clients | +|hackney.POOLNAME.queue_count |histogram| queued clients | ## Contribute diff --git a/doc/overview.edoc b/doc/overview.edoc index 2fcca3a2..7cd7f74a 100644 --- a/doc/overview.edoc +++ b/doc/overview.edoc @@ -482,7 +482,7 @@ been started. |hackney.POOLNAME.no_socket |counter | Count of new connections | |hackney.POOLNAME.in_use_count |histogram| How many connections from the pool are used | |hackney.POOLNAME.free_count |counter | Number of free sockets in the pool | -|hackney.POOLNAME.queue_counter|histogram| queued clients | +|hackney.POOLNAME.queue_count |histogram| queued clients | ## Contribute diff --git a/src/hackney_pool.erl b/src/hackney_pool.erl index 049d56e2..2859520f 100644 --- a/src/hackney_pool.erl +++ b/src/hackney_pool.erl @@ -602,7 +602,7 @@ init_metrics(PoolName) -> _ = metrics:new(Engine, counter, [hackney_pool, PoolName, no_socket]), _ = metrics:new(Engine, histogram, [hackney_pool, PoolName, in_use_count]), _ = metrics:new(Engine, histogram, [hackney_pool, PoolName, free_count]), - _ = metrics:new(Engine, histogram, [hackney_pool, PoolName, queue_counter]), + _ = metrics:new(Engine, histogram, [hackney_pool, PoolName, queue_count]), Engine. delete_metrics(Engine, PoolName) -> @@ -610,7 +610,7 @@ delete_metrics(Engine, PoolName) -> _ = metrics:delete(Engine, [hackney_pool, PoolName, no_socket]), _ = metrics:delete(Engine, [hackney_pool, PoolName, in_use_count]), _ = metrics:delete(Engine, [hackney_pool, PoolName, free_count]), - _ = metrics:delete(Engine, [hackney_pool, PoolName, queue_counter]), + _ = metrics:delete(Engine, [hackney_pool, PoolName, queue_count]), ok.