Please fill this template out fully; failure to do so can result in rejection of your PR.
Please describe the changes made by your PR. This description should be at a high-level but detailed enough that a reviewer understands the scope of the fix or enhancement and can easily judge the PRs validity at addressing the stated issue/feature. Please fully describe any new or changed feature and whether said change is user-facing or not:
Modified the PGRecoveryStatusSwitch_Replica from being job or target specific to use the increase function to detect a role change.
Please indicate what kind of change your PR includes (multiple selections are acceptable):
[ ] Bugfix
[X] Enhancement
[ ] Breaking Change
[ ] Documentation
PRs should be against existing issues, so please list each issue using a separate 'closes' line:
closes #
If this PR depends on another PR or resolution of another issue, please indicate that here using a separate 'depends' line for each dependency.
depends on #
If you have an external dependency (packages, portal updates, etc), add the 'BLOCKED' tag to your PR.
Testing
None of the testing listed below is optional.
Installation method:
[ ] Binary install from source, version:
[ ] OS package repository, distro, and version:
[ ] Local package server, version:
[ ] Custom-built package, version:
[X] Other: Copied yaml to target to test alert.
[X] PostgreSQL, Specify version(s): 14
[ ] docs tested with hugo version(s):
Code testing
Have you tested your changes against:
[X] RedHat/CentOS
[ ] Ubuntu
[ ] SLES
[ ] Not applicable
If your code touches postgres_exporter, have you:
[ ] Tested against all versions of PostgreSQL affected
[ ] Ensure that exporter runs with no scrape errors
[X] Not applicable
If your code touches node_exporter, have you:
[ ] Ensure that exporter runs with no scrape errors
[ ] Not applicable
If your code touches Prometheus, have you:
[ ] Ensured all configuration changes pass promtool check config
Description
Please fill this template out fully; failure to do so can result in rejection of your PR.
Please describe the changes made by your PR. This description should be at a high-level but detailed enough that a reviewer understands the scope of the fix or enhancement and can easily judge the PRs validity at addressing the stated issue/feature. Please fully describe any new or changed feature and whether said change is user-facing or not:
Modified the PGRecoveryStatusSwitch_Replica from being job or target specific to use the increase function to detect a role change.
Please indicate what kind of change your PR includes (multiple selections are acceptable):
PRs should be against existing issues, so please list each issue using a separate 'closes' line:
closes #
If this PR depends on another PR or resolution of another issue, please indicate that here using a separate 'depends' line for each dependency.
depends on #
If you have an external dependency (packages, portal updates, etc), add the 'BLOCKED' tag to your PR.
Testing
None of the testing listed below is optional.
Code testing
Have you tested your changes against:
If your code touches postgres_exporter, have you:
If your code touches node_exporter, have you:
If your code touches Prometheus, have you:
promtool check config
promtool check rules
If your code touches Grafana, have you:
Checklist: