From 6fe0b28c16a8ead3dd331ca5b7c9c4ba7ce3a878 Mon Sep 17 00:00:00 2001 From: Jan Piotrowski Date: Wed, 20 Sep 2023 19:03:38 +0200 Subject: [PATCH 1/2] docs: Add documentation of metrics to README --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index f3046a6..313de16 100644 --- a/README.md +++ b/README.md @@ -125,6 +125,20 @@ Some of the connection pool configurations can be adjusted dynamically. Each con - max_idle_closed - The total number of connections closed due to max_idle. - max_lifetime_closed - The total number of connections closed due to max_lifetime. + +## Metrics + +- Counters + - `mobc_pool_connections_opened_total` - Total number of Pool Connections opened + - `mobc_pool_connections_closed_total` - Total number of Pool Connections closed +- Gauges + - `mobc_pool_connections_open` - Number of currently open Pool Connections + - `mobc_pool_connections_busy` - Number of currently busy Pool Connections (executing a database query)" + - `mobc_pool_connections_idle` - Number of currently unused Pool Connections (waiting for the next pool query to run) + - `mobc_client_queries_wait` - Number of queries currently waiting for a connection +- Histograms + - `mobc_client_queries_wait_histogram_ms` - Histogram of the wait time of all queries in ms + ## Compatibility Because tokio is not compatible with other runtimes, such as async-std. So a database driver written with tokio cannot run in the async-std runtime. For example, you can't use redis-rs in tide because it uses tokio, so the connection pool which bases on redis-res can't be used in tide either. From 2c6147a1b37cb682e8e4146d7d161440899d50c1 Mon Sep 17 00:00:00 2001 From: Jan Piotrowski Date: Wed, 20 Sep 2023 19:06:39 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 313de16..3b51b7d 100644 --- a/README.md +++ b/README.md @@ -125,7 +125,6 @@ Some of the connection pool configurations can be adjusted dynamically. Each con - max_idle_closed - The total number of connections closed due to max_idle. - max_lifetime_closed - The total number of connections closed due to max_lifetime. - ## Metrics - Counters