Skip to content

Conversation

@647-coder
Copy link

Enable dynamic alert title rendering through template engine for more flexible title customization.

Key changes:

  • Move Title initialization to the beginning of PrometheusAlert function
  • Render title template using TransformAlertMessage before sending messages
  • Fallback to default title from config file if title template rendering fails
  • Update SendMessagePrometheusAlert function signature to add title parameter
  • Apply rendered title across all messaging channels (DingTalk, Feishu, etc.)

This enhancement allows users to dynamically generate titles based on alert content, improving message readability and information density.

🤖 Generated with Claude Code

Enable dynamic alert title rendering through template engine for more flexible title customization.

Key changes:
- Move Title initialization to the beginning of PrometheusAlert function
- Render title template using TransformAlertMessage before sending messages
- Fallback to default title from config file if title template rendering fails
- Update SendMessagePrometheusAlert function signature to add title parameter
- Apply rendered title across all messaging channels (DingTalk, Feishu, etc.)

This enhancement allows users to dynamically generate titles based on alert content, improving message readability and information density.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant