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

Default system dashboard respect stop timestamp when using a custom timerange #21238

Open
ghost opened this issue Apr 16, 2021 · 1 comment
Open
Labels
kind/bug severity/sev-4 team/dumplings team/ui v2-prod-bug Trying to track all issues in V2 Prod to check code quality

Comments

@ghost
Copy link

ghost commented Apr 16, 2021

Steps to reproduce:
List the minimal actions needed to reproduce the behavior.

  1. In the web interface: Boards > Create Dashboard > From a Template > System > Create Dashboard
  2. Configure telegraf to send system data into a bucket
  3. View the data in the default system dashboard
  4. Select a custom time range, use a stop time from the past
  5. The cells/graphs in the dashboard don't respect the stop time

Expected behavior:
The graph should stop at the stop time rather than the present time

Actual behavior:
The graph always stops at the current time

Fix
Swapping line 2 in each of the cells from
|> range(start: v.timeRangeStart)
to
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
fixes this, I'd like to have opened a PR as this is a small change but I'm struggling to find where the default dashboards are imported from.

@russorat
Copy link
Contributor

@JimACarter thanks for the issue. That option is part of the first generation of templates that we are planning to remove in the next release. The same functionality is available using the newer InfluxDB Template https://github.com/influxdata/community-templates/tree/master/linux_system and loading it via the Settings > Templates page.

@asalem1 asalem1 added severity/sev-4 team/dumplings v2-prod-bug Trying to track all issues in V2 Prod to check code quality labels Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug severity/sev-4 team/dumplings team/ui v2-prod-bug Trying to track all issues in V2 Prod to check code quality
Projects
None yet
Development

No branches or pull requests

3 participants