Skip to content

Commit

Permalink
Modified postgres metrics's attribute k/v
Browse files Browse the repository at this point in the history
  • Loading branch information
Heber Silva committed May 17, 2022
1 parent e82c74c commit 9ec33cb
Showing 1 changed file with 15 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,18 @@ This document defines how to apply semantic conventions when instrumenting Postg

**Description:** General Postgres metrics.

| Name | Instrument | Value type | Unit | Unit ([UCUM](../README.md#instrument-units)) | Description | Attribute Key | Attribute Values |
|---------------------------------------------| ------------- | ---------- | ------ | -------------------------------------------- | -------------- | ------------- | ---------------- |
| db.postgresql.blocks_read | Counter | Int64 | blocks | `{blocks}` | The number of blocks read. | | |
| db.postgresql.commits | Counter | Int64 | commits | `{commits}` | The number of commits. | | |
| db.postgresql.db_size | UpDownCounter | Int64 | bytes | `{by}` | The database disk usage. | `state` | `in`, `out` |
| db.postgresql.backends | UpDownCounter | Int64 | backends | `{backends}` | The number of backends. | | |
| db.postgresql.rows | UpDownCounter | Int64 | rows | `{rows}` | The number of rows in the database. | | |
| db.postgresql.operations | Counter | Int64 | operations | `{operations}` | The number of db row operations. | | |
| db.postgresql.rollbacks | Counter | Int64 | rollbacks | `{rollbacks}` | The number of rollbacks. | | |
| Name | Instrument | Value type | Unit | Unit ([UCUM](../README.md#instrument-units)) | Description | Attribute Key | Attribute Values |
|---------------------------------------------| ------------- | ---------- | ------ | -------------------------------------------- | -------------- | ------------- | -------------------------------------------------------------------------------------------------- |
| db.postgresql.blocks_read | Counter | Int64 | blocks | `{blocks}` | The number of blocks read. | `database` | The name of the database. |
| | | | | | | `table` | The schema name followed by the table name |
| | | | | | | `source` | `heap_read`, `heap_hit`, `idx_read`, `idx_hit`, `toast_read`, `toast_hit`, `tidx_read`, `tidx_hit` |
| db.postgresql.commits | Counter | Int64 | commits | `{commits}` | The number of commits. | `database` | The name of the database. |
| db.postgresql.db_size | UpDownCounter | Int64 | bytes | `{by}` | The database disk usage. | `database` | The name of the database. |
| db.postgresql.backends | UpDownCounter | Int64 | backends | `{backends}` | The number of backends. | `database` | The name of the database. |
| db.postgresql.rows | UpDownCounter | Int64 | rows | `{rows}` | The number of rows in the database. | `database` | The name of the database. |
| | | | | | | `table` | The schema name followed by the table name |
| | | | | | | `state` | `dead`, `live` |
| db.postgresql.operations | Counter | Int64 | operations | `{operations}` | The number of db row operations. | `database` | The name of the database. |
| | | | | | | `table` | The schema name followed by the table name |
| | | | | | | `source` | `ins`, `upd`, `del`, `hot_upd` |
| db.postgresql.rollbacks | Counter | Int64 | rollbacks | `{rollbacks}` | The number of rollbacks. | `database` | The name of the database. |

0 comments on commit 9ec33cb

Please sign in to comment.