feat: add maestro server queue alerts and panels#6010
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: placecol The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Pull request overview
This PR extends Maestro observability by adding alerts and dashboard panels around queue health signals (PostgreSQL NOTIFY queue usage and Maestro controller workqueue depth) to help diagnose stalled event processing.
Changes:
- Added two Maestro alert rules for PostgreSQL notification queue usage and workqueue depth.
- Added promtool-style unit tests for the two new alerts.
- Added two Grafana panels to the Maestro Server dashboard for the new queue metrics.
- Updated the generated Azure Monitor Prometheus rule group Bicep with the new alerts.
Reviewed changes
Copilot reviewed 4 out of 7 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| observability/grafana-dashboards/maestro/maestro-server.json | Adds two new dashboard panels for Postgres NOTIFY queue usage and workqueue depth. |
| maestro/alerts/maestro-prometheusRule.yaml | Defines two new Prometheus alerting rules for Maestro queue health. |
| maestro/alerts/maestro-prometheusRule_test.yaml | Adds unit tests validating the new alert rules fire/do-not-fire behavior. |
| dev-infrastructure/modules/metrics/rules/generatedPrometheusAlertingRules.bicep | Updates the generated Azure Monitor rule group to include the two new Maestro alerts. |
14dd308 to
9de3622
Compare
9de3622 to
ca1fa1c
Compare
|
@microsoft-github-policy-service agree [company="Red Hat"] |
|
@microsoft-github-policy-service agree company="Red Hat" |
|
/retest |
|
@placecol: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
https://redhat.atlassian.net/browse/ARO-26755
What
This PR adds two alerts and alerts and two new panels to the maestro dashboard related to queue length metrics.
PostgresSQL Notification Queue Usage and Work Queue Depth panels were also added to the maestro server dashboard:

Why
Issues have been observed with maestro's processing of spec and status events, and it is hoped that these metrics will aide in diagnosing these issues.
Testing
Unit tests were added for the alerts. Integration tests were also added to maestro for the postgres_notification_queue_usage metric.
Manual testing was performed in a personal dev environment to test the dashboards.
PR Checklist