hyperdx icon indicating copy to clipboard operation
hyperdx copied to clipboard

Allow editing the Subject of a generic webhook/email/outlook

Open nareshntr opened this issue 2 months ago • 4 comments

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

nareshntr avatar Oct 26 '25 06:10 nareshntr

Hi @nareshntr, thanks for contributing this issue.

For generic webhooks, you can include desired resource attributes in an alert body:

  1. 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
  2. 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 the SELECT input in your saved search configuration.

Please let us know if this solves for your use-case or if there is still something missing.

pulpdrew avatar Nov 04 '25 01:11 pulpdrew

@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 avatar Nov 04 '25 02:11 nareshntr

@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?

pulpdrew avatar Nov 04 '25 21:11 pulpdrew

Okay, got it @pulpdrew

Yeah, at least for webhooks — please consider adding this feature. It would be really helpful.

nareshntr avatar Nov 05 '25 03:11 nareshntr