getsentry / sentry

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

Centralized filter terms #80811

Open MJ563 opened 1 week ago

MJ563 commented 1 week ago

Problem Statement

Hi,

I looked quite a bit for this feature but could not find it.

Problem: I have like 20 dashboards with about 15 widgets each. Most of them share parts of the filter terms and differ from each other just in details. Now if I want to change one of the terms that stay the same I have to adjust like 300 widgets.

Solution Brainstorm

Preffered solution: Saved search terms that I can adjust centrally.

For example: a saved search term "CustomerLicense" that evaluates to "!License:[A,B,C]" or a saved search term "NetworkIssue" that evaluates to "(!message:"ConnectionLost", "Connect unsuccessfull")"

The filter in the widget would then look like "CustomerLicense AND message:"example" AND count > 100" Change the saved term "CustomerLicense" and all widgets that use it are updated.

Would save me a ton of work!

Product Area

Ingestion and Filtering

getsantry[bot] commented 1 week ago

Assigning to @getsentry/support for routing ⏲️

getsantry[bot] commented 1 week ago

Routing to @getsentry/product-owners-dashboards for triage ⏲️

ale-cota commented 4 days ago

Hi there, Thanks for the feature suggestion, this indeed does not exist today and I can understand the use case. Would having something like this saved search term be something useful for searches outside of dashboards as well (e.g. issue stream, alerts, etc)? Or do you mostly have these repetitive filters within dashboards only?

MJ563 commented 4 days ago

I would say the time saved is mainly in the dashboard. But of course it could be used for Alerts, SavedSearches and Discover searches too.

ale-cota commented 3 days ago

Thanks for clarifying. We'll add this to our backlog and keep an eye out for similar requests. It's something we could consider adding in the future.