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

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

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

grafakus
Copy link
Contributor

@grafakus grafakus commented Oct 10, 2024

✨ Description

⚠️ Waiting for v11.5.0 in slow on 14th of January 2025

Commit hash 95258914553daf8e2dc72edffcfe0688716b536e found in Grafana OSS Git Repository for PR 95780

Commit is found in:
 ENVIRONMENT / RELEASE CHANNEL  CURRENT VERSION
 instant                        11.5.0-80091
 fast                           11.5.0-80071
 steady                         11.5.0-80050
 slow                           11.4.0-79828

⚠️ TODOS:

  • Upgrade Docker images and package.json to use Grafana 11.5.0 once it's published

Related issue(s): resolves #192, was blocked by grafana/grafana#95780, which is merged and deployed to all channels:

📖 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)

Copy link
Contributor

github-actions bot commented Oct 10, 2024

Unit test coverage

Lines Statements Branches Functions
Coverage: 12%
13.28% (550/4141) 9.4% (137/1456) 9.38% (120/1278)

@grafakus grafakus changed the title feat(Series): Limit the number of series request by breakdown charts perf(Series): Limit the number of series request by breakdown charts Oct 10, 2024
@grafakus grafakus removed the feat label Oct 10, 2024
@github-actions github-actions bot added perf and removed performance labels Oct 10, 2024
@@ -38,18 +35,3 @@ export const addStats = () => (source: Observable<DataFrame[]>) =>
});
})
);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing code 🥳

@grafakus grafakus self-assigned this Oct 14, 2024
@grafakus grafakus requested a review from bryanhuhta October 18, 2024 14:15
grafakus and others added 2 commits October 30, 2024 19:52
# Conflicts:
#	src/pages/ProfilesExplorerView/components/SceneExploreServiceLabels/components/SceneGroupByLabels/components/SceneLabelValuesGrid/SceneLabelValuesGrid.tsx
bryanhuhta
bryanhuhta previously approved these changes Nov 7, 2024
@grafakus
Copy link
Contributor Author

grafakus commented Nov 8, 2024

@ifrost in which Grafana version can we expect the changes grafana/grafana#95780 to be integrated? Next week? 11.3.0-xyz?

Sorry I'm still not familiar with the world of Grafana's rolling releases 😅

# Conflicts:
#	src/pages/ProfilesExplorerView/domain/actions/SelectAction.tsx
@grafakus grafakus force-pushed the perf/limit-series-breakdown-charts branch from 092a7bd to fd24b38 Compare December 10, 2024 12:05
@@ -2,421 +2,421 @@
name: build packages
services: []
steps:
- commands:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-lint

# Conflicts:
#	docker-compose.e2e.yaml
#	docker-compose.local.yaml
#	docker-compose.remote.yaml
#	docker-compose.yaml
#	package.json
#	src/pages/ProfilesExplorerView/components/SceneLabelValuesTimeseries/SceneLabelValuesTimeseries.tsx
#	src/plugin.json
#	src/shared/infrastructure/tracking/faro/__tests__/faro.spec.ts
#	yarn.lock
@grafakus grafakus requested a review from bryanhuhta December 18, 2024 10:49
@@ -7,7 +7,7 @@
"backend": false,
"preload": true,
"dependencies": {
"grafanaDependency": ">=11.3.2",
"grafanaDependency": ">=11.4.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"grafanaDependency": ">=11.4.0",
"grafanaDependency": ">=11.5.0",

@ifrost in which Grafana version can we expect the changes grafana/grafana#95780 to be integrated? Next week? 11.3.0-xyz?

Sorry I'm still not familiar with the world of Grafana's rolling releases 😅

It will be out 15 January in 11.5.

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

Successfully merging this pull request may close these issues.

[performance] Reduce number of series requested by breakdown charts
3 participants