getsentry / sentry

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

Invalid metric error when creating matric alert #77931

Open rodolfoBee opened 1 week ago

rodolfoBee commented 1 week ago

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

  1. Go to alerts
  2. Create a new alert with Custom measurement
  3. Under "Define your metric" select " Custom measurement - p95 - spans.ui - 4h internval"
  4. Set any threshold, actions and alert name
  5. Try to save the alert

Expected Result

The alert is created.

Actual Result

Internal error: Invalid Metric: We do not currently support this field. Most likely from this line: https://github.com/getsentry/sentry/blob/master/src/sentry/incidents/serializers/alert_rule.py#L158-L175

Product Area

Alerts

Link

No response

DSN

No response

Version

No response

getsantry[bot] commented 1 week ago

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

rachrwang commented 1 week ago

@wedamija - do you know what might be the cause of this problem?