yx9o opened a new pull request, #722: URL: https://github.com/apache/rocketmq-dashboard/pull/722
## What is the purpose of the change Prevent special characters in alert rule fields from producing invalid Prometheus rule exports. Empty alert names after sanitization could also result in invalid YAML values. ## Brief changelog Escape special characters in PromQL label selectors and YAML annotations, and use a fallback name when the sanitized alert name is empty. Add regression tests for special characters and invalid alert names. ## Verifying this change Run `mvn -Dtest=AlertServiceTest test`, `mvn test`, and `mvn -B -ntp clean package -DskipTests` in the `server` directory. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
