Skip to content

Commit

Permalink
Changed unit to {connection}
Browse files Browse the repository at this point in the history
  • Loading branch information
naman47vyas committed Jun 11, 2024
1 parent e2d37fd commit 7de3cdf
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
5 changes: 2 additions & 3 deletions receiver/postgresqlreceiver/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,13 @@ The number of active connections to this database. If DBM is enabled, this metri
| ---- | ----------- | ---------- |
| {connection} | Gauge | Int |
### postgresql.connection.max
Configured maximum number of client connections allowed
| Unit | Metric Type | Value Type |
| ---- | ----------- | ---------- |
| {connections} | Gauge | Int |
| {connection} | Gauge | Int |
### postgresql.database.count
Expand Down Expand Up @@ -352,7 +351,7 @@ This metric requires WAL to be enabled with at least one replica.

Time between flushing recent WAL locally and receiving notification that the standby server has completed an operation with it.

This metric requires WAL to be enabled with at least one replica.
This metric requires WAL to be enabled with at least one replica.


| 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.

5 changes: 3 additions & 2 deletions receiver/postgresqlreceiver/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ metrics:
postgresql.connection.max:
enabled: true
description: Configured maximum number of client connections allowed
unit: "{connections}"
unit: "{connection}"
gauge:
value_type: int
postgresql.rows:
Expand Down Expand Up @@ -295,7 +295,8 @@ metrics:
unit: s
gauge:
value_type: int
extended_documentation: | This metric requires WAL to be enabled with at least one replica.
extended_documentation: |
This metric requires WAL to be enabled with at least one replica.
#DBM METRICS:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ resourceMetrics:
startTimeUnixNano: "1000000"
timeUnixNano: "2000000"
name: postgresql.connection.count
unit: '{connections}'
unit: '{connection}'
- description: The total wait time of the summarized timed events in nanaoseconds.
name: postgresql.query.total_exec_time
sum:
Expand Down Expand Up @@ -268,7 +268,7 @@ resourceMetrics:
startTimeUnixNano: "1000000"
timeUnixNano: "2000000"
name: postgresql.connection.max
unit: '{connections}'
unit: '{connection}'
- description: Number of user databases.
name: postgresql.database.count
sum:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,15 @@ resourceMetrics:
startTimeUnixNano: "1000000"
timeUnixNano: "2000000"
name: postgresql.connection.max
unit: '{connections}'
unit: '{connection}'
- description: The number of active connections to this database. If DBM is enabled, this metric is tagged with state, app, db and user
gauge:
dataPoints:
- asInt: "1"
startTimeUnixNano: "1000000"
timeUnixNano: "2000000"
name: postgresql.connection.count
unit: '{connections}'
unit: '{connection}'
- description: The total wait time of the summarized timed events in nanaoseconds.
name: postgresql.query.total_exec_time
sum:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ resourceMetrics:
startTimeUnixNano: "1000000"
timeUnixNano: "2000000"
name: postgresql.connection.count
unit: '{connections}'
unit: '{connection}'
- description: The total wait time of the summarized timed events in nanaoseconds.
name: postgresql.query.total_exec_time
sum:
Expand Down Expand Up @@ -268,7 +268,7 @@ resourceMetrics:
startTimeUnixNano: "1000000"
timeUnixNano: "2000000"
name: postgresql.connection.max
unit: '{connections}'
unit: '{connection}'
- description: Number of user databases.
name: postgresql.database.count
sum:
Expand Down

0 comments on commit 7de3cdf

Please sign in to comment.