Skip to content

Commit

Permalink
changed descriptions of metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
naman47vyas committed Jun 14, 2024
1 parent 7de3cdf commit af1bab0
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 73 deletions.
18 changes: 9 additions & 9 deletions receiver/postgresqlreceiver/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ The number of blocks read.
### postgresql.buffer_hit
The number of times disk blocks were found in the buffer cache, preventing the need to read from the database. This metric is tagged with db.
The number of disk block hits in the buffer cache, thereby avoiding database reads, tagged with database name.
| Unit | Metric Type | Value Type |
| ---- | ----------- | ---------- |
Expand All @@ -116,7 +116,7 @@ The number of commits.
### postgresql.connection.count
The number of active connections to this database. If DBM is enabled, this metric is tagged with state, app, db and user
The count of active connections to this database.
| Unit | Metric Type | Value Type |
| ---- | ----------- | ---------- |
Expand Down Expand Up @@ -164,7 +164,7 @@ The size of the index on disk.
### postgresql.live_rows
Enabled with `relations`. The estimated number of live rows. This metric is tagged with db, schema, table.
The approximate number of live rows, tagged with relation name.
| Unit | Metric Type | Value Type |
| ---- | ----------- | ---------- |
Expand Down Expand Up @@ -192,7 +192,7 @@ The number of db row operations.
### postgresql.query.count
Number of times the statement was executed
Number of times the statement was executed.
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
| ---- | ----------- | ---------- | ----------------------- | --------- |
Expand All @@ -207,7 +207,7 @@ Number of times the statement was executed
### postgresql.query.total_exec_time
The total wait time of the summarized timed events in nanaoseconds.
Total wait time of the normalised timed events in nanaoseconds.
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
| ---- | ----------- | ---------- | ----------------------- | --------- |
Expand Down Expand Up @@ -258,7 +258,7 @@ The number of rows in the database.
### postgresql.rows_deleted
Enabled with `relations`. The number of rows deleted by queries in this database. This metric is tagged with db.
Rows deleted by queries in this db, tagged with relation name.
| Unit | Metric Type | Value Type |
| ---- | ----------- | ---------- |
Expand All @@ -272,7 +272,7 @@ Enabled with `relations`. The number of rows deleted by queries in this database
### postgresql.rows_fetched
The number of rows fetched by queries in this database. This metric is tagged with db.
Rows fetched by queries in this db, tagged with relation name.
| Unit | Metric Type | Value Type |
| ---- | ----------- | ---------- |
Expand All @@ -286,7 +286,7 @@ The number of rows fetched by queries in this database. This metric is tagged wi
### postgresql.rows_inserted
Enabled with `relations`. The number of rows inserted by queries in this database. This metric is tagged with db.
Rows inserted by queries in the db, tagged with relation name.
| Unit | Metric Type | Value Type |
| ---- | ----------- | ---------- |
Expand All @@ -300,7 +300,7 @@ Enabled with `relations`. The number of rows inserted by queries in this databas
### postgresql.rows_updated
Enabled with `relations`. The number of rows updated by queries in this database. This metric is tagged with db.
Rows updated by queries in the db, tagged with relation name.
| Unit | Metric Type | Value Type |
| ---- | ----------- | ---------- |
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 9 additions & 16 deletions receiver/postgresqlreceiver/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ metrics:
#DBM METRICS:
postgresql.query.total_exec_time:
enabled: true
description: The total wait time of the summarized timed events in nanaoseconds.
description: Total wait time of the normalised timed events in nanaoseconds.
unit: ns
sum:
value_type: int
Expand All @@ -312,7 +312,7 @@ metrics:

postgresql.query.count:
enabled: true
description: Number of times the statement was executed
description: Number of times the statement was executed.
unit: 1
sum:
value_type: int
Expand All @@ -324,8 +324,7 @@ metrics:
attributes:
- relation_name
enabled: true
description: Enabled with `relations`. The number of rows deleted by queries in
this database. This metric is tagged with db.
description: Rows deleted by queries in this db, tagged with relation name.
unit: '{row}/s'
gauge:
value_type: int
Expand All @@ -334,8 +333,7 @@ metrics:
attributes:
- relation_name
enabled: true
description: The number of rows fetched by queries in this database. This metric
is tagged with db.
description: Rows fetched by queries in this db, tagged with relation name.
unit: '{row}/s'
gauge:
value_type: int
Expand All @@ -344,8 +342,7 @@ metrics:
attributes:
- relation_name
enabled: true
description: Enabled with `relations`. The number of rows updated by queries in
this database. This metric is tagged with db.
description: Rows updated by queries in the db, tagged with relation name.
unit: '{row}/s'
gauge:
value_type: int
Expand All @@ -354,8 +351,7 @@ metrics:
attributes:
- relation_name
enabled: true
description: Enabled with `relations`. The number of rows inserted by queries in
this database. This metric is tagged with db.
description: Rows inserted by queries in the db, tagged with relation name.
unit: '{row}/s'
gauge:
value_type: int
Expand All @@ -364,8 +360,7 @@ metrics:
attributes:
- relation_name
enabled: true
description: Enabled with `relations`. The estimated number of live rows. This metric
is tagged with db, schema, table.
description: The approximate number of live rows, tagged with relation name.
unit: '{row}'
gauge:
value_type: int
Expand All @@ -374,16 +369,14 @@ metrics:
attributes:
- dbname
enabled: true
description: The number of times disk blocks were found in the buffer cache, preventing
the need to read from the database. This metric is tagged with db.
description: The number of disk block hits in the buffer cache, thereby avoiding database reads, tagged with database name.
unit: '{hit}/s'
gauge:
value_type: int

postgresql.connection.count:
enabled: true
description: The number of active connections to this database. If DBM is enabled,
this metric is tagged with state, app, db and user
description: The count of active connections to this database.
unit: '{connection}'
gauge:
value_type: int
Loading

0 comments on commit af1bab0

Please sign in to comment.