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

perf(Series): Limit the number of series request by breakdown charts #219

Open grafakus opened 2 weeks ago

grafakus commented 2 weeks ago

✨ Description

Related issue(s): resolves https://github.com/grafana/explore-profiles/issues/192, is blocked by https://github.com/grafana/grafana/pull/94851 ⚠️

📖 Summary of the changes

This PR replaces the custom data transformations of the time series. Instead, a new limit parameter is passed when fetching from the API.

🧪 How to test?

On the "Labels" view, the max number of series received by the API is limited to 10 ; the page loads faster (which can also be verified by checking the requests in the "Network" tab of the browser's devtools)

github-actions[bot] commented 2 weeks ago

Unit test coverage

Lines Statements Branches Functions
Coverage: 11%
11.54% (428/3707) 9.12% (120/1315) 8.66% (102/1177)