Skip to content

Commit

Permalink
Merge pull request #36 from instana/informix_r4
Browse files Browse the repository at this point in the history
Adding new Semantics for RDB related to Informix DB for release 4
  • Loading branch information
Gaozhenz authored Jun 5, 2024
2 parents 8d7010f + 8daba5d commit 2cdc83f
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions docs/semconv/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ This page tries to describe a semantic convention for the attributes and metrics
- [Metric `db.overflow.lock.count`](#metric-dboverflowlockcount)
- [Metric `db.overflow.transaction.count`](#metric-dboverflowtransactioncount)
- [Metric `db.overflow.user.count`](#metric-dboverflowusercount)
- [Metric `db.lock.waits`](#metric-dblockwaits)
- [Metric `db.cache.read.ratio`](#metric-dbcachereadratio)
- [Metric `db.cache.write.ratio`](#metric-dbcachewriteratio)
- [Metric `db.lru.writes`](#metric-dblruwrites)
- [Resource Usage Metrics](#resource-usage-metrics)
- [Metric `db.disk.usage`](#metric-dbdiskusage)
- [Metric `db.disk.utilization`](#metric-dbdiskutilization)
Expand Down Expand Up @@ -261,6 +265,39 @@ This metric is [optional](https://github.com/open-telemetry/semantic-conventions
|--------------------------|-----------------|------------------|----------------------------------------------------------------------------------------------|
| `db.overflow.user.count` | UpDownCounter | `{overflowUser}` | Number of times a User thread attempted to acquire a lock when no locks were available. |

### Metric: `db.lock.waits`
This metric is [optional](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/general/metric-requirement-level.md#opt-in).

| Name | Instrument Type | Units (UCUM) | Description |
|-------------------|-----------------|---------------|-------------------------------------|
| `db.lock.waits` | UpDownCounter | `{lockWaits}` | Number of threads waiting for lock. |

### Metric: `db.cache.read.ratio`
This metric is [optional](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/general/metric-requirement-level.md#opt-in).

| Name | Instrument Type | Units (UCUM) | Description |
|-----------------------|-----------------|--------------|------------------------------------------------------------------------------------------|
| `db.cache.read.ratio` | Gauge | `1` | Percentage of page reads for this buffer pool that were satisfied by a cached page image |


### Metric: `db.cache.write.ratio`
This metric is [optional](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/general/metric-requirement-level.md#opt-in).

| Name | Instrument Type | Units (UCUM) | Description |
|------------------------|-----------------|--------------|-------------------------------------------------------------------------------------------|
| `db.cache.write.ratio` | Gauge | `1` | Percentage of page Writes for this buffer pool that were satisfied by a cached page image |

### Metric: `db.lru.writes`
This metric is [optional](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/general/metric-requirement-level.md#opt-in).

| Name | Instrument Type | Units (UCUM) | Description |
|-----------------|-----------------|---------------|----------------------------------------|
| `db.lru.writes` | UpDownCounter | `{lruWrites}` | Number of Least Recently Used Writes. |

### Notes:

- The database server performs LRU (Least Recently Used) writes as background writes that typically occur when the percentage of dirty buffers (pages that are not accessed) exceeds the percent that is specified for lru_max_dirty in the BUFFERPOOL configuration parameter.

## Resource Usage Metrics
### Metric: `db.disk.usage`
This metric is [recommended](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/general/metric-requirement-level.md#recommended).
Expand Down

0 comments on commit 2cdc83f

Please sign in to comment.