The GitHub Actions job "CI" on 
rocketmq-dashboard.git/fix/alert-name-collision-prometheus-export-1404 has 
failed.
Run started by GitHub user tju-yxq (triggered by tju-yxq).

Head commit for run:
1be3b9c74c28fdbbad88444929d73d69c5172852 / Yxq <[email protected]>
[ISSUE #1404] Deduplicate alert names in Prometheus YAML export

The alertName() method strips non-alphanumeric characters from rule
names, causing collisions when two rules normalize to the same name
(e.g. 'Broker Down!' and 'Broker_Down' both become 'BrokerDown').
Prometheus rejects rule files with duplicate alert names.

This fix:
- Tracks used alert names per group during YAML export
- Appends _2, _3, etc. suffixes to resolve collisions
- Adds ensureUniqueAlertName() helper method

Fixes #1404

Report URL: 
https://github.com/apache/rocketmq-dashboard/actions/runs/31357525077

With regards,
GitHub Actions via GitBox

Reply via email to