-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds pg17 files to postgres_exporter (#435)
* Adds pg17 files to postgres_exporter * Adds a changelog fragment. * fix: move bgwriter query from global to versioned general for postgres_exporter --------- Co-authored-by: Anthony Landreth <[email protected]> Co-authored-by: Keith Fiske <[email protected]>
- Loading branch information
1 parent
5fe6ceb
commit 4e94297
Showing
14 changed files
with
960 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
minor_changes: | ||
- postgres_exporter - Files to help transition off of postgres_exporter. |
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
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
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
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
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
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
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,44 @@ | ||
### | ||
# | ||
# Begin File: PG17 queries_general.yml | ||
# | ||
# Copyright © 2017-2024 Crunchy Data Solutions, Inc. All Rights Reserved. | ||
# | ||
### | ||
|
||
ccp_stat_bgwriter: | ||
query: "SELECT buffers_clean, maxwritten_clean, buffers_alloc FROM pg_catalog.pg_stat_bgwriter" | ||
metrics: | ||
- buffers_clean: | ||
usage: "GAUGE" | ||
description: "Number of buffers written by the background writer" | ||
- maxwritten_clean: | ||
usage: "GAUGE" | ||
description: "Number of times the background writer stopped a cleaning scan because it had written too many buffers" | ||
- buffers_alloc: | ||
usage: "GAUGE" | ||
description: "Number of buffers allocated" | ||
|
||
|
||
ccp_data_checksum_failure: | ||
query: "SELECT datname AS dbname | ||
, checksum_failures AS count | ||
, coalesce(extract(epoch from (clock_timestamp() - checksum_last_failure)), 0) AS time_since_last_failure_seconds | ||
FROM pg_catalog.pg_stat_database;" | ||
metrics: | ||
- dbname: | ||
usage: "LABEL" | ||
description: "Database name" | ||
- count: | ||
usage: "GAUGE" | ||
description: "Total number of checksum failures on this database" | ||
- time_since_last_failure_seconds: | ||
usage: "GAUGE" | ||
description: "Time interval in seconds since the last checksum failure was encountered" | ||
|
||
|
||
### | ||
# | ||
# End File: PG17 queries_general.yml | ||
# | ||
### |
Oops, something went wrong.