Skip to content

Commit 476d3be

Browse files
authored
docs: fix recovery metric values in documentation (#376)
* docs: fix recovery metric values in documentation * chore: add changelog fragment * chore: fix github workflows * chore: fix fragment file name
1 parent 9023cc5 commit 476d3be

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

.github/workflows/fragment.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ on:
22
pull_request:
33

44
jobs:
5-
steps:
6-
- name: "Check for Changelog fragment"
7-
uses: brettcannon/check-for-changed-files@v1
8-
with:
9-
file-pattern: "changelogs/fragments/*.yml"
10-
failure-message: "Missing a Changelog fragment in ${file-pattern}; please add one or wait for a maintainer to push one for you."
5+
changelog-fragment:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: "Check for Changelog fragment"
9+
uses: brettcannon/check-for-changed-files@v1
10+
with:
11+
file-pattern: "changelogs/fragments/*.yml"
12+
failure-message: "Missing a Changelog fragment in ${file-pattern}; please add one or wait for a maintainer to push one for you."

changelogs/fragments/375.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
trivial:
3+
- docs - Fix the documentation of the 'ccp_is_in_recovery_status' metric to properly match the value to the description
4+
- github - Fix workflow checks

hugo/content/exporter/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ Metrics contained in the `queries_global.yml` file. These metrics are common to
340340

341341
* *ccp_database_size_bytes* - Total size of each database in PostgreSQL instance
342342

343-
* *ccp_is_in_recovery_status* - Current value of the pg_is_in_recovery() function expressed as 2 for true (instance is a replica) and 1 for false (instance is a primary)
343+
* *ccp_is_in_recovery_status* - Current value of the pg_is_in_recovery() function expressed as 1 for true (instance is a replica) and 2 for false (instance is a primary)
344344

345345
* *ccp_connection_stats_active* - Count of active connections
346346

0 commit comments

Comments
 (0)