hyperdx icon indicating copy to clipboard operation
hyperdx copied to clipboard

Embed preview of relevant graph in Alerts

Open sgarfinkel opened this issue 11 months ago • 4 comments

Following up from here: https://discord.com/channels/1149498480893640706/1455951390341075149/1455960122424692929

It would be really cool if the webpage in the URL to the affected visualization in alerts had an opengraph image property so that webhook targets that support it could display an image of the visualization automatically. I’m pretty sure Slack and Discord both support this.

More generally it would be handy if you could permalink a chart, that way you could copy and paste a URL to the chart and display the visualization of it inline in these apps too.

sgarfinkel avatar Jan 02 '26 15:01 sgarfinkel

Great idea @sgarfinkel, thanks for suggesting this!

One important concern up front is data exposure. Any approach that relies on OpenGraph images or publicly accessible URLs risks unintentionally exposing private chart or alert data outside the product, which we’d need to be very careful about.

That said, there are a couple of possible directions:

  1. Since our pages aren’t currently server-side rendered, generating dynamic OpenGraph images would require fairly significant architectural changes.
  2. Alternatively, we could expose a static OpenGraph image endpoint (for example, hyperdx.yourdomain.com/api/images/alerts/:alertId), though this would still raise the same privacy concerns unless access were tightly controlled.

Because of this, it may actually make more sense to focus on webhook-specific support, where we can send rendered images directly in the webhook payload and avoid public URLs entirely.

Curious to hear your thoughts, does that tradeoff make sense to you?

brandon-pereira avatar Jan 02 '26 17:01 brandon-pereira

I think that would work. We use slack webhooks here and that supports image embeds.

sgarfinkel avatar Jan 02 '26 17:01 sgarfinkel

Hey @sgarfinkel this should now be available as part of https://github.com/hyperdxio/hyperdx/blob/main/CHANGELOG.md#v2350--2026-08-14

jordan-simonovski avatar Sep 24 '26 05:09 jordan-simonovski

@jordan-simonovski Thanks for the heads up, but I’m not seeing this in the changelog, might have missed it though. Can you point me to the change that addressed this?

sgarfinkel avatar Sep 24 '26 13:09 sgarfinkel