Skip to content

Commit

Permalink
[chore] [receiver/postgres] Remove custom metrics builder code (open-…
Browse files Browse the repository at this point in the history
…telemetry#25830)

The code was introduced to migrate table and database datapoint
attributes to resource attributes in
open-telemetry#12967.
Migration was completed a long time ago. The custom code isn't needed
anymore. This also fixed the documentation to match the emitted data and
removes redundant testdata
  • Loading branch information
dmitryax authored Aug 15, 2023
1 parent cbe537d commit 26b3cce
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 2,386 deletions.
36 changes: 0 additions & 36 deletions receiver/postgresqlreceiver/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ The number of backends.
| ---- | ----------- | ---------- | ----------------------- | --------- |
| 1 | Sum | Int | Cumulative | false |
#### Attributes
| Name | Description | Values |
| ---- | ----------- | ------ |
| database | The name of the database. | Any Str |
### postgresql.bgwriter.buffers.allocated
Number of buffers allocated.
Expand Down Expand Up @@ -96,8 +90,6 @@ The number of blocks read.
| Name | Description | Values |
| ---- | ----------- | ------ |
| database | The name of the database. | Any Str |
| table | The schema name followed by the table name. | Any Str |
| source | The block read source type. | Str: ``heap_read``, ``heap_hit``, ``idx_read``, ``idx_hit``, ``toast_read``, ``toast_hit``, ``tidx_read``, ``tidx_hit`` |
### postgresql.commits
Expand All @@ -108,12 +100,6 @@ The number of commits.
| ---- | ----------- | ---------- | ----------------------- | --------- |
| 1 | Sum | Int | Cumulative | true |
#### Attributes
| Name | Description | Values |
| ---- | ----------- | ------ |
| database | The name of the database. | Any Str |
### postgresql.connection.max
Configured maximum number of client connections allowed
Expand All @@ -138,12 +124,6 @@ The database disk usage.
| ---- | ----------- | ---------- | ----------------------- | --------- |
| By | Sum | Int | Cumulative | false |
#### Attributes
| Name | Description | Values |
| ---- | ----------- | ------ |
| database | The name of the database. | Any Str |
### postgresql.index.scans
The number of index scans on a table.
Expand Down Expand Up @@ -172,8 +152,6 @@ The number of db row operations.
| Name | Description | Values |
| ---- | ----------- | ------ |
| database | The name of the database. | Any Str |
| table | The schema name followed by the table name. | Any Str |
| operation | The database operation. | Str: ``ins``, ``upd``, ``del``, ``hot_upd`` |
### postgresql.replication.data_delay
Expand All @@ -198,12 +176,6 @@ The number of rollbacks.
| ---- | ----------- | ---------- | ----------------------- | --------- |
| 1 | Sum | Int | Cumulative | true |
#### Attributes
| Name | Description | Values |
| ---- | ----------- | ------ |
| database | The name of the database. | Any Str |
### postgresql.rows
The number of rows in the database.
Expand All @@ -216,8 +188,6 @@ The number of rows in the database.
| Name | Description | Values |
| ---- | ----------- | ------ |
| database | The name of the database. | Any Str |
| table | The schema name followed by the table name. | Any Str |
| state | The tuple (row) state. | Str: ``dead``, ``live`` |
### postgresql.table.count
Expand Down Expand Up @@ -291,12 +261,6 @@ The number of deadlocks.
| ---- | ----------- | ---------- | ----------------------- | --------- |
| {deadlock} | Sum | Int | Cumulative | true |
#### Attributes
| Name | Description | Values |
| ---- | ----------- | ------ |
| database | The name of the database. | Any Str |
## Resource Attributes
| Name | Description | Values | Enabled |
Expand Down
129 changes: 0 additions & 129 deletions receiver/postgresqlreceiver/internal/metadata/custom.go

This file was deleted.

Loading

0 comments on commit 26b3cce

Please sign in to comment.