0
Support Group By in log-based metric monitors
Source: getsentry/sentry#131719 · opened by @sentry-junior[bot]
Metric monitors on the Logs dataset evaluate a single series, so one monitor cannot evaluate and fire separately per attribute value (for example per region or per platform).
• Any non-null group_by is rejected with "Group by Metric Alerts feature must be enabled to use this field" (SnubaQueryValidator._validate_group_by in src/sentry/snuba/snuba_query_validator.py).
• Group By works in Logs Explore ([docs]( but not in monitors.
• The workaround is one monitor per attribute combination, which multiplies monitor count and gives each combination its own separately configured anomaly baseline.
• Same request for spans: getsentry/sentry#66871.
<!-- junior-request-attribution:start -->
via Richard Propst.
<!-- junior-request-attribution:end -->
<!-- junior-session-footer:start -->
<!-- junior-conversation-id:slack%3AC090W3KD6JX%3A1795035700.947099 -->
--
[View Session]( [[Sentry]](
<!-- junior-session-footer:end -->
• Any non-null group_by is rejected with "Group by Metric Alerts feature must be enabled to use this field" (SnubaQueryValidator._validate_group_by in src/sentry/snuba/snuba_query_validator.py).
• Group By works in Logs Explore ([docs]( but not in monitors.
• The workaround is one monitor per attribute combination, which multiplies monitor count and gives each combination its own separately configured anomaly baseline.
• Same request for spans: getsentry/sentry#66871.
<!-- junior-request-attribution:start -->
via Richard Propst.
<!-- junior-request-attribution:end -->
<!-- junior-session-footer:start -->
<!-- junior-conversation-id:slack%3AC090W3KD6JX%3A1795035700.947099 -->
--
[View Session]( [[Sentry]](
<!-- junior-session-footer:end -->
No pledges yet. Be the first to back this.
Comments
Similar requests
Support Group By in Metric Monitors for Spans (title edited)
0 votes · 0 comments
Metric Monitors: Detect ingestion delays
0 votes · 0 comments
Expose more anomaly detection tuning for metric monitors
0 votes · 0 comments
Metric charts: annotate the timeline when a metric's equation/definition changes
0 votes · 0 comments
Official JIRA integration should be available as a destination for *Metric* alert rules
0 votes · 0 comments
No comments yet.