From 9ec33cbd462be2e78729fe03cb9f510ac0fa3e49 Mon Sep 17 00:00:00 2001 From: Heber Silva Date: Tue, 17 May 2022 12:50:53 -0400 Subject: [PATCH] Modified postgres metrics's attribute k/v --- .../instrumentation/postgres.md | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/specification/metrics/semantic_conventions/instrumentation/postgres.md b/specification/metrics/semantic_conventions/instrumentation/postgres.md index e529da27b2d..4b6a506cf63 100644 --- a/specification/metrics/semantic_conventions/instrumentation/postgres.md +++ b/specification/metrics/semantic_conventions/instrumentation/postgres.md @@ -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. | | | \ No newline at end of file +| 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. | \ No newline at end of file