FeatureFuel
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 -->

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests