CrunchyData / pgmonitor

PostgreSQL Monitoring, Metrics Collection and Alerting Resources from Crunchy Data
Other
596 stars 92 forks source link

Modified rule for recovery status switch #360

Closed cbrianpace closed 1 year ago

cbrianpace commented 1 year ago

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:

If your code touches Grafana, have you:

Checklist: