-
Notifications
You must be signed in to change notification settings - Fork 456
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Collect max_connections metric (#9770)
This will further allow us to expose this metric to users
- Loading branch information
Showing
3 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
compute/etc/sql_exporter/compute_max_connections.libsonnet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
metric_name: 'compute_max_connections', | ||
type: 'gauge', | ||
help: 'Max connections allowed for Postgres', | ||
key_labels: null, | ||
values: [ | ||
'max_connections', | ||
], | ||
query: importstr 'sql_exporter/compute_max_connections.sql', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SELECT current_setting('max_connections') as max_connections; |
e12628f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5490 tests run: 5246 passed, 1 failed, 243 skipped (full report)
Failures on Postgres 17
test_sharding_split_failures[failure10]
: debug-x86-64Flaky tests (1)
Postgres 17
test_idle_checkpoints
: debug-x86-64Test coverage report is not available
e12628f at 2024-11-15T18:35:57.331Z :recycle: