119 lines
3.6 KiB
YAML
119 lines
3.6 KiB
YAML
groups:
|
|
- id: attributes.db
|
|
type: attribute_group
|
|
brief: Describes Database attributes
|
|
attributes:
|
|
- id: state
|
|
stability: experimental
|
|
type:
|
|
allow_custom_values: false
|
|
members:
|
|
- id: idle
|
|
value: 'idle'
|
|
- id: used
|
|
value: 'used'
|
|
requirement_level: required
|
|
brief: "The state of a connection in the pool"
|
|
examples: ["idle"]
|
|
- id: pool.name
|
|
type: string
|
|
stability: experimental
|
|
requirement_level: required
|
|
brief: >
|
|
The name of the connection pool; unique within the instrumented application.
|
|
In case the connection pool implementation doesn't provide a name,
|
|
then the [db.connection_string](/docs/database/database-spans.md#common-attributes)
|
|
should be used
|
|
examples: ["myDataSource"]
|
|
|
|
- id: metric.db.client.connections.usage
|
|
type: metric
|
|
metric_name: db.client.connections.usage
|
|
stability: experimental
|
|
brief: "The number of connections that are currently in state described by the `state` attribute"
|
|
instrument: updowncounter
|
|
unit: "{connection}"
|
|
attributes:
|
|
- ref: state
|
|
- ref: pool.name
|
|
|
|
- id: metric.db.client.connections.idle.max
|
|
type: metric
|
|
metric_name: db.client.connections.idle.max
|
|
stability: experimental
|
|
brief: "The maximum number of idle open connections allowed"
|
|
instrument: updowncounter
|
|
unit: "{connection}"
|
|
attributes:
|
|
- ref: pool.name
|
|
|
|
- id: metric.db.client.connections.idle.min
|
|
type: metric
|
|
metric_name: db.client.connections.idle.min
|
|
stability: experimental
|
|
brief: "The minimum number of idle open connections allowed"
|
|
instrument: updowncounter
|
|
unit: "{connection}"
|
|
attributes:
|
|
- ref: pool.name
|
|
|
|
- id: metric.db.client.connections.max
|
|
type: metric
|
|
metric_name: db.client.connections.max
|
|
stability: experimental
|
|
brief: "The maximum number of open connections allowed"
|
|
instrument: updowncounter
|
|
unit: "{connection}"
|
|
attributes:
|
|
- ref: pool.name
|
|
|
|
- id: metric.db.client.connections.pending_requests
|
|
type: metric
|
|
metric_name: db.client.connections.pending_requests
|
|
stability: experimental
|
|
brief: "The number of pending requests for an open connection, cumulative for the entire pool"
|
|
instrument: updowncounter
|
|
unit: "{request}"
|
|
attributes:
|
|
- ref: pool.name
|
|
|
|
- id: metric.db.client.connections.timeouts
|
|
type: metric
|
|
metric_name: db.client.connections.timeouts
|
|
stability: experimental
|
|
brief: "The number of connection timeouts that have occurred trying to obtain a connection from the pool"
|
|
instrument: counter
|
|
unit: "{timeout}"
|
|
attributes:
|
|
- ref: pool.name
|
|
|
|
- id: metric.db.client.connections.create_time
|
|
type: metric
|
|
metric_name: db.client.connections.create_time
|
|
stability: experimental
|
|
brief: "The time it took to create a new connection"
|
|
instrument: histogram
|
|
unit: "ms"
|
|
attributes:
|
|
- ref: pool.name
|
|
|
|
- id: metric.db.client.connections.wait_time
|
|
type: metric
|
|
metric_name: db.client.connections.wait_time
|
|
stability: experimental
|
|
brief: "The time it took to obtain an open connection from the pool"
|
|
instrument: histogram
|
|
unit: "ms"
|
|
attributes:
|
|
- ref: pool.name
|
|
|
|
- id: metric.db.client.connections.use_time
|
|
type: metric
|
|
metric_name: db.client.connections.use_time
|
|
stability: experimental
|
|
brief: "The time between borrowing a connection and returning it to the pool"
|
|
instrument: histogram
|
|
unit: "ms"
|
|
attributes:
|
|
- ref: pool.name
|