Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Surface metrics in the outcomes API #64026

Closed
matejminar opened this issue Jan 29, 2024 · 1 comment · Fixed by #64790
Closed

Surface metrics in the outcomes API #64026

matejminar opened this issue Jan 29, 2024 · 1 comment · Fixed by #64790
Assignees

Comments

@matejminar
Copy link
Member

Introduce a new metric category in stats_v2 endpoint so that we can query metric outcomes.
As an examples, rhis is how the query looks like for error outcomes:
https://sentry.io/api/0/organizations/sentry/stats_v2/?category=error&field=sum%28quantity%29&groupBy=outcome&groupBy=reason&interval=1d&project=1&statsPeriod=90d

The goal is to see when metrics are rate-limited. Relay already supports this with outcome rate_limited and reason cardinality_limited.

@matejminar matejminar changed the title Metrics outcomes Surface metrics in the outcomes API Jan 29, 2024
@iambriccardo
Copy link
Member

The endpoint seems to support already a generic querying interface, thus we can query the category metric_bucket to access outcomes related to metrics. A proposal of how to query the endpoint has been written internally.

@github-actions github-actions bot locked and limited conversation to collaborators Feb 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants