Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow customizable phone call message template for alert notifications #5448

Open
smutosey opened this issue Feb 12, 2025 · 1 comment
Open

Comments

@smutosey
Copy link

What would you like to see!

The current phone call message template is hard-coded in engine/apps/alerts/incident_appearance/renderers/phone_call_renderer.py:

TEMPLATE = (
    "You are invited to check an Alert Group from Grafana OnCall. "
    "Alert via {integration_name} with title {title} triggered {alert_count} times"
)

It would be nice to have this template be customizable. Specifically, I propose the following improvements:

  • Customization via UI or Environment Variables: Allow users to modify the message template without changing the source code, either through the Grafana OnCall UI or by setting environment variables.

  • Dynamic Placeholders: Continue supporting placeholders such as {integration_name}, {title}, and {alert_count}, so that users can define their own message formats that better fit their workflow. Common or group labels, summary and annotations, maybe.

  • Enhanced Flexibility: This change would solve the pain point of being forced to use a fixed message format, enabling teams with different alerting and notification requirements to tailor the communication style to their needs.

Product Area

Alert Flow & Configuration

Anything else to add?

This issue is relevant for Grafana OnCall version 1.14.3 or lower

Copy link
Contributor

The current version of Grafana OnCall, at the time this issue was opened, is v1.14.3. If your issue pertains to an older version of Grafana OnCall, please be sure to list it in the PR description. Thank you 😄!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant