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

SceneQueryRunner: Only use containerWidth when maxDataPointsFromWidth is true #223

Merged
merged 1 commit into from
Jun 1, 2023

Conversation

torkelo
Copy link
Member

@torkelo torkelo commented Jun 1, 2023

Noticed a bug on https://ops.grafana-ops.net/a/grafana-app-observability-app/services/datadog-proxy-gateway/overview?var-prometheus=ops-cortex&var-loki=Loki-Ops&var-tempo=Tempo%20%28tempo-ops%29&from=now-6h&to=now

where it issues the first request with the default 500 data points, second request it issues using containerWidth.

containerWidth should only be used for maxDataPoints if maxDataPointsFromWidth is true.

Not sure what the default behavior should be here. because SceneQueryRunner can be placed anywhere in the tree and it's only when it's on VizPanel and when there is a timeseries graph visualization that using containerWidth for maxDataPoints is actually good I figured it best to make it opt in.

@torkelo torkelo added minor Increment the minor version when merged release Create a release when this pr is merged labels Jun 1, 2023
@torkelo torkelo merged commit 51d03e0 into main Jun 1, 2023
@torkelo torkelo deleted the fix-max-data-points-issue branch June 1, 2023 07:18
@grafanabot
Copy link
Contributor

🚀 PR was released in v0.14.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Increment the minor version when merged release Create a release when this pr is merged released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants