You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "Aias00 (via GitHub)" <gi...@apache.org> on 2026/08/09 12:31:53 UTC

[I] fix: exclude disabled alert rules from Prometheus rule export [rocketmq-dashboard]

Aias00 opened a new issue, #1298:
URL: https://github.com/apache/rocketmq-dashboard/issues/1298

   ## Problem
   
   `AlertService.exportPrometheusRulesYaml()` converts every persisted alert rule into Prometheus YAML. A rule disabled through `/api/alert-rules/toggle` is therefore still exported and remains active after users load the YAML into Prometheus.
   
   ## Expected behavior
   
   Only enabled rules should be exported. When there are no enabled persisted rules, retain the existing fallback to the bundled default rule templates.
   
   ## Scope
   
   - Filter persisted rules by `enabled` before conversion.
   - Add regression coverage for disabled-only and mixed enabled/disabled rule sets.
   - Do not change the alert rule CRUD API.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] fix: exclude disabled alert rules from Prometheus rule export [rocketmq-dashboard]

Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed issue #1298: fix: exclude disabled alert rules from Prometheus rule export
URL: https://github.com/apache/rocketmq-dashboard/issues/1298


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] fix: exclude disabled alert rules from Prometheus rule export [rocketmq-dashboard]

Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins commented on issue #1298:
URL: https://github.com/apache/rocketmq-dashboard/issues/1298#issuecomment-5236066159

   Resolved by #1403 (merged into rocketmq-studio as ace3fb91).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] fix: exclude disabled alert rules from Prometheus rule export [rocketmq-dashboard]

Posted by "RockteMQ-AI (via GitHub)" <gi...@apache.org>.
RockteMQ-AI commented on issue #1298:
URL: https://github.com/apache/rocketmq-dashboard/issues/1298#issuecomment-5231675946

   ## Issue Evaluation
   
   **Category:** `type/bug` | **Status:** Confirmed
   
   The issue is well-described and the fix scope is clear. `AlertService.exportPrometheusRulesYaml()` should filter persisted rules by `enabled` before conversion, and fall back to bundled default templates when no enabled rules remain.
   
   **Assessment:**
   - **Root Cause:** Missing `enabled` filter in the export path
   - **Impact:** Disabled rules remain active in Prometheus after YAML import — operational risk
   - **Severity:** Medium — silent misconfiguration, no data loss
   - **Scope:** Narrow — single service method + regression tests
   
   This is a straightforward fix. A PR is welcome.
   
   ---
   *Automated evaluation by RockteMQ-AI*


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org