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

Prometheus: Change alignment of range queries to end before now and not in future #16110

Merged
merged 2 commits into from
Mar 21, 2019

Conversation

davkal
Copy link
Contributor

@davkal davkal commented Mar 20, 2019

  • future alignment caused issues with rate charts and the display of last
    values
  • this change modifies the alignment to use the last available aligned
    end date and no longer possibly requests data from the future

Fixes #15385
Fixes #13419 (although if the step is too big and the data too recent, this can't be made to work)

- future aligment cause issues with rate charts and the display of last
values
- this change modifies the aligment to use the last available aligned
end date and no longer possibly requests data from the future
@bergquist
Copy link
Contributor

bergquist commented Mar 20, 2019

make build-docker-full

if you want to try this without installing all deps

The gap is small enough that I dont care.

LGTM 👍

master
image

this pr

image

@davkal davkal merged commit 9008fcc into master Mar 21, 2019
@davkal davkal deleted the davkal/15385-change-aligment branch March 21, 2019 09:25
@beorn7
Copy link
Contributor

beorn7 commented Mar 21, 2019

Thanks 1M!

ryantxu added a commit to ryantxu/grafana that referenced this pull request Mar 21, 2019
* grafana/master: (56 commits)
  another change that didn't come with earlier commit
  change that didn't come with in last commit
  reversed dashboard-padding
  Update CloudWatch metrics/dimension list (grafana#16102)
  brought back dashboard-padding and panel-padding variables, made dashboard-padding more specific
  fix(prometheus): Change aligment of range queries (grafana#16110)
  Minor refactoring of testdata query order PR grafana#16122
  cleaner version
  maintain query order
  Update PLUGIN_DEV.md
  Merge with master, and updated logo and name
  more fixes to snapshot
  more fixes to snapshot
  removed empty space in snapshot
  fixed snapshot for test
  removed dashboard variables, removed headings-font-family variable, created theme variables for links and z-index, removed unused class in _panel_editor and _dashboard
  Tooltip: show percent instead of value
  Right tooltip position
  Add "No data points" message
  Improve tooltip look
  ...
ryantxu added a commit to ryantxu/grafana that referenced this pull request Mar 21, 2019
* grafana/master: (56 commits)
  another change that didn't come with earlier commit
  change that didn't come with in last commit
  reversed dashboard-padding
  Update CloudWatch metrics/dimension list (grafana#16102)
  brought back dashboard-padding and panel-padding variables, made dashboard-padding more specific
  fix(prometheus): Change aligment of range queries (grafana#16110)
  Minor refactoring of testdata query order PR grafana#16122
  cleaner version
  maintain query order
  Update PLUGIN_DEV.md
  Merge with master, and updated logo and name
  more fixes to snapshot
  more fixes to snapshot
  removed empty space in snapshot
  fixed snapshot for test
  removed dashboard variables, removed headings-font-family variable, created theme variables for links and z-index, removed unused class in _panel_editor and _dashboard
  Tooltip: show percent instead of value
  Right tooltip position
  Add "No data points" message
  Improve tooltip look
  ...
ryantxu added a commit to ryantxu/grafana that referenced this pull request Mar 21, 2019
* grafana/master: (107 commits)
  another change that didn't come with earlier commit
  change that didn't come with in last commit
  reversed dashboard-padding
  Update CloudWatch metrics/dimension list (grafana#16102)
  brought back dashboard-padding and panel-padding variables, made dashboard-padding more specific
  fix(prometheus): Change aligment of range queries (grafana#16110)
  Minor refactoring of testdata query order PR grafana#16122
  cleaner version
  maintain query order
  Update PLUGIN_DEV.md
  Merge with master, and updated logo and name
  update table data model
  fix(graphite): nonNegativeDerivative argument hidden if 0, fixes grafana#12488
  Correct table names of sql storage for remotecache
  more fixes to snapshot
  more fixes to snapshot
  Fixed gofmt issue in PR grafana#16093
  removed empty space in snapshot
  fix: Update snapshot related to new jest version
  fixed snapshot for test
  ...
@davkal davkal added this to the 6.1 milestone Mar 25, 2019
@torkelo torkelo changed the title fix(prometheus): Change aligment of range queries Prometheus: Change alignment of range queries to end before now and not in future Mar 26, 2019
@roidelapluie
Copy link
Collaborator

I have deployed it. It is cool!

@husoule
Copy link

husoule commented Aug 6, 2020

  • future alignment caused issues with rate charts and the display of last
    values
  • this change modifies the alignment to use the last available aligned
    end date and no longer possibly requests data from the future

Fixes #15385
Fixes #13419 (although if the step is too big and the data too recent, this can't be made to work)

Why does my grafana still showing future data? grafana:v7.1.2
image
and now is:
image

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

Successfully merging this pull request may close these issues.

Prometheus step alignment issue Current values shows 0 for Prometheus with 5.x Grafana
5 participants