Allow editing the Subject of a generic webhook/email/outlook
With the current settings, when we receive an alert from HyperDX, the subject does not contain the hostname. We are expecting the hostname, severity, and minimal error details to be included, so we can easily identify which server the issue is coming from. Otherwise, it becomes difficult to trace the source of the alert.
Like I should be able to use the below node.name: test123 as Server Hostname in the mail subject. Like, a user can use any attribute in the mail subject or body.
Resource Attributes
db.type: mariadb dc.name: AP environment.name: NONPROD host.name: test123.test.com node.name: test123 os.type: Linux service.name: mariadb-error
Hi @nareshntr, thanks for contributing this issue.
For generic webhooks, you can include desired resource attributes in an alert body:
- Ensure that in your webhook configuration, you specify a body that include the
{{body}}template variable. The{{body}}will be replaced with results from your saved search - Ensure that
host.name(or whichever values you want to include in your alert body) are included as columns in the saved search. Columns can be added by adding to theSELECTinput in your saved search configuration.
Please let us know if this solves for your use-case or if there is still something missing.
@pulpdrew Thanks for the reply.
I am requesting this feature mainly for the subject to identify the server name immediately from the subject. So that we can easily filter out the mail based on the subject.
Subject should be: {Server Hostname}: {Severity}: Minimal error details Example1: test123: Critical: MySQL went down... Example2: PROD | Critical | testdb101 | DB Crashed
Like I should be able to use the below node.name: test123 as Server Hostname in the mail subject. Like, a user can use any attribute in the mail subject or body.
Resource Attributes
db.type: mariadb dc.name: AP environment.name: NONPROD host.name: test123.test.com node.name: test123 os.type: Linux service.name: mariadb-error
@nareshntr Thank you for clarifying. Unfortunately we have no plans to support email-based alerts at this time, due to overlap with our enterprise offering.
Do you see a need for this feature in generic webhooks, or is this issue specific to email alerts due to the requirement that the hostname be in a subject line?
Okay, got it @pulpdrew
Yeah, at least for webhooks — please consider adding this feature. It would be really helpful.