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

[diff flame graph view] Add time-based presets #200

Open grafakus opened 4 weeks ago

grafakus commented 4 weeks ago

Feature description

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

If the user is in the middle of an incident and wants to compare the current situation with the situation (e.g.) 1 hour ago, they have to:

  1. Select the baseline time range: navigating in the past then selecting the time range for the diff flame graph
  2. Select the comparison time ranges

Describe the solution you'd like

The UI can provide a "Compare presets" dropdown for faster time ranges selection:

Image

We can provide a couple of presets:

We should implement it with the idea in mind that it can be extensible: we could add the possibility for the user to store their own presets, which could include baseline/comparison filters and custom time ranges.

Alternatives considered

Describe alternatives you've considered

-

Additional context

This feature existed in the UI of OG Pyroscope, with these presets:

Image