grafana / explore-profiles

Explore Profiles is a native Grafana application designed to integrate seamlessly with Pyroscope, the open-source continuous profiling platform, providing a smooth, query-less experience for browsing and analyzing profiling data.
GNU Affero General Public License v3.0
18 stars 1 forks source link

[feature] Add "Include"/"Exclude" actions in the "Labels" view #204

Open grafakus opened 4 weeks ago

grafakus commented 4 weeks ago

Feature description

Is your feature request related to a problem? Please describe.

In the "Labels" view, after breaking down a label in its values, the user can't build filters only in a point-n-click fashion. Specifically, excluding values is not possible.

Describe the solution you'd like

We should do something similar as in "Explore Logs", by adding two panel actions "Include" and "Exclude":

Image

Alternatives considered

Describe alternatives you've considered

Currently the user has to build the filters by using the query builder on top of the UI.

Additional context

To implement, we will use the "in" and the "not in" operators ; we should implement "smart" filter updates. For example:

So there's a bit of parsing todo whenever values are updated.

Note that this feature is blocked by https://github.com/grafana/explore-profiles/issues/198