getsentry / sentry

Developer-first error tracking and performance monitoring
https://sentry.io
Other
39.11k stars 4.2k forks source link

Custom measurements not available in metric alerts #55159

Open JLuse opened 1 year ago

JLuse commented 1 year ago

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

getsantry[bot] commented 1 year ago

Assigning to @getsentry/support for routing ⏲️

getsantry[bot] commented 1 year ago

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

getsantry[bot] commented 1 year ago

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

nanoburd commented 1 year ago

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

getsantry[bot] commented 1 year ago

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

guiquintelas commented 1 year ago

@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

brentc commented 1 year ago

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.

nanoburd commented 1 year ago

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