Apache Commons Pool
OpenTelemetry Java agent instrumentation
This instrumentation enables object pool metrics for Apache Commons Pool GenericObjectPool and GenericKeyedObjectPool instances.
- Name:
apache-commons-pool-2.0 - Scope:
io.opentelemetry.apache-commons-pool-2.0 - Target versions:
org.apache.commons:commons-pool2:[2.0,) - Library: https://commons.apache.org/proper/commons-pool/
Telemetry
When otel.instrumentation.apache-commons-pool.enabled=true
Metrics
| Metric | Instrument | Type | Unit | Description |
|---|---|---|---|---|
apache_commons_pool.object.count | updowncounter | LONG_SUM | {object} | The number of objects currently in the state described by the state attribute. |
apache_commons_pool.object.idle.max | updowncounter | LONG_SUM | {object} | The maximum number of idle objects allowed in the pool. |
apache_commons_pool.object.idle.min | updowncounter | LONG_SUM | {object} | The minimum number of idle objects allowed in the pool. |
apache_commons_pool.object.max | updowncounter | LONG_SUM | {object} | The maximum number of objects allowed in the pool. |
apache_commons_pool.object.pending_requests | updowncounter | LONG_SUM | {request} | The number of requests currently waiting for an object from the pool. |
| Metric | Attributes |
|---|---|
apache_commons_pool.object.count | apache_commons_pool.object.state (STRING), apache_commons_pool.pool.name (STRING) |
apache_commons_pool.object.idle.max | apache_commons_pool.pool.name (STRING) |
apache_commons_pool.object.idle.min | apache_commons_pool.pool.name (STRING) |
apache_commons_pool.object.max | apache_commons_pool.pool.name (STRING) |
apache_commons_pool.object.pending_requests | apache_commons_pool.pool.name (STRING) |
Configuration
| Option | Type | Default | Description |
|---|---|---|---|
otel.instrumentation.apache-commons-pool.enabled | boolean | false | Enables the Apache Commons Pool instrumentation. |