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

Feature request: Allow to filter environment in Organization Stats #9141

Open
holledauer opened this issue Jul 21, 2018 · 11 comments
Open

Feature request: Allow to filter environment in Organization Stats #9141

holledauer opened this issue Jul 21, 2018 · 11 comments

Comments

@holledauer
Copy link

At the moment it is not possible to filter an environment in the organization stats (https://docs.sentry.io/api/organizations/get-organization-stats/). Ist it possible to add an environment filter? ?environment=production

@johannessjoberg
Copy link

Has this been taken into consideration? Would be a great addition 👍

@BYK
Copy link
Member

BYK commented Oct 21, 2020

Closing this issue due to staleness. Feel free to comment here if you think we should still work on this.

@BYK BYK closed this as completed Oct 21, 2020
@holledauer
Copy link
Author

still important...

@BYK
Copy link
Member

BYK commented Nov 27, 2020

Just checked the code and seems like we do have support for passing environment ids to the new TSDB models so it seems like this is just some wiring up in the API. Am I right @untitaker?

@untitaker
Copy link
Member

untitaker commented Nov 27, 2020

you can do environment stats in discover already, and I believe tsdb queries related to environments boil down to a similar snuba query nowadays. We dont capture any environment info for rate-limited/dropped events.

@BYK
Copy link
Member

BYK commented Nov 27, 2020

@untitaker what I understand is that people can use the undocumented Discover API to run a Discover query?

@untitaker
Copy link
Member

I don't know about that, but there are ways to get this data out of the Discover UI.

@manuzope manuzope assigned bowencai8 and unassigned manuzope Nov 30, 2020
@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2021

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Accepted, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@mrdon
Copy link

mrdon commented May 27, 2022

My product, Sleuth, integrates with Sentry to pull down error counts, but because this feature is missing both here and for project stats, a number of shared customers have complained that it is broken. Please let me know what I can do to help, as I'd really like to avoid doing something like scraping the UI or using undocumented endpoints.

@leedongwei
Copy link
Member

@mrdon There's no plans to allow filtering by environment in Organization Stats. This endpoint is intended for high-level tracking/reporting on usage.

The Discover endpoint might be more suitable for your use-case: https://docs.sentry.io/api/discover/query-discover-events-in-table-format/

@mrdon
Copy link

mrdon commented Jun 21, 2022

@leedongwei thanks. Looking at that API, am I correct in understanding that it returns a list of events, and at that, only 100 each request? Therefore, if a user had 10k events fire in that period, even if they were for the same issue, I would have to page 100 times?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants