sentry icon indicating copy to clipboard operation
sentry copied to clipboard

Custom measurements not available in metric alerts

Open JLuse opened this issue 2 years ago • 8 comments

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

Description: When adding a custom metric, you are unable to select it as an option in metric alerts.

Custom metric: Screenshot 2023-08-21 at 3 10 01 PM

Alert options: Screenshot 2023-08-21 at 3 13 51 PM

Steps:

  1. Send custom metric with a transaction.
  2. Create alert -> select Custom Metric
  3. Attempt to select metric from dropdown

Expected Result

Custom metric to be utilized in alert

Actual Result

Unable to select custom measurements besides the predefined options

Product Area

Alerts

Link

No response

DSN

No response

Version

No response

┆Issue is synchronized with this Jira Improvement by Unito

JLuse avatar Aug 21 '23 22:08 JLuse

Assigning to @getsentry/support for routing ⏲️

getsantry[bot] avatar Aug 21 '23 22:08 getsantry[bot]

Routing to @getsentry/product-owners-performance for triage ⏲️

getsantry[bot] avatar Aug 22 '23 16:08 getsantry[bot]

Routing to @getsentry/product-owners-alerts for triage ⏲️

getsantry[bot] avatar Aug 30 '23 19:08 getsantry[bot]

@JLuse what was the use case the customer was trying to do here?

nanoburd avatar Aug 30 '23 20:08 nanoburd

Routing to @getsentry/product-owners-performance for triage ⏲️

getsantry[bot] avatar Aug 30 '23 20:08 getsantry[bot]

@nanoburd

@JLuse what was the use case the customer was trying to do here?

Hey, customer here! The goal is to create alerting based on the custom.waiting_time custom measurement and many others. We're trying to use Sentry to monitor our internal job queue. So we have many metrics that don't fit into the existing ones.

Another use case is to use custom metrics as a way to filter down our transactions. Not sure if it's related to this issue thought ...

We currently have: image

Solving this issue allows us to finally stop jamming data into our transaction names: image

guiquintelas avatar Aug 30 '23 23:08 guiquintelas

Thanks for this additional context. I'm adding this to our backlog for now and we'll provide an update when we have more information.

brentc avatar Sep 07 '23 18:09 brentc

Yup this is likely something we can work on, I think this is valuable. Thanks for bringing this up!~

nanoburd avatar Sep 08 '23 14:09 nanoburd

if we don't fix this in triage party we should at least change UI that makes it look like we support it (e.g. to "Other Measurement")

Image

maxkosty avatar Dec 11 '24 17:12 maxkosty

https://sentry.zendesk.com/agent/tickets/147061

cobyeastwood183 avatar Mar 10 '25 18:03 cobyeastwood183

I found something interesting on this. Even though it is not working when we do Alerts > Custom Measurement, it seems to show when we create a dashboard, add a widget to view the metric, view it and click "Open in Discover" then choose "Create Alert".

Should this fall in the category of a bug then?

conradkoh-fp avatar Apr 01 '25 08:04 conradkoh-fp