mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-27 10:28:41 -05:00
(POOLER-160) Revise connection metrics
The redis pooler connection metric used "metric_prefix" which is misleading, so split this into connpool_type and connpool_provider. Also remove some earlier jruby compatibility code to reduce rebase conflicts when this is rebased on top of Matt's changes.
This commit is contained in:
parent
5c38ba240a
commit
72564de4b4
7 changed files with 33 additions and 24 deletions
|
|
@ -29,7 +29,8 @@ module Vmpooler
|
|||
logger.log('d', "[#{name}] ConnPool - Creating a connection pool of size #{connpool_size} with timeout #{connpool_timeout}")
|
||||
@connection_pool = Vmpooler::PoolManager::GenericConnectionPool.new(
|
||||
metrics: metrics,
|
||||
metric_prefix: "#{name}_provider_connection_pool",
|
||||
connpool_type: 'provider_connection_pool',
|
||||
connpool_provider: name,
|
||||
size: connpool_size,
|
||||
timeout: connpool_timeout
|
||||
) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue