Skip to content

Chart data for NR1 status widget is not displayed when "Default" time duration is selected in the dashboard timepicker #79

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

Open
HarishNukala77 opened this issue Feb 11, 2025 · 5 comments
Labels
bug Something isn't working

Comments

@HarishNukala77
Copy link

Description

When clicking on the NR1 status widget in the dashboard with the "Default" value selected in the timepicker, no chart data is displayed.

Steps to Reproduce

Open the dashboard in New Relic that uses the NR1 Status Widget nerd pack.
Click on the Status widget.
Ensure the "Default" value is selected in the timepicker.
Observe that no chart data is shown.

Expected Behaviour

When the "Default" value is selected, the chart should display data for the past hour by default.

Relevant Logs / Console output

Your Environment

  • NR1 CLI version used: latest
  • Browser name and version: chrome and edge
  • Operating System and version: windows

Additional context

Solution (from New Relic team):
The New Relic team added a default duration of "since 1 hour ago" to the query when the "default" value is selected in the dashboard timepicker. This resolves the issue and allows the chart to display data for the past hour by default.

This fix has been tested locally and resolves the issue.

Suggested Fix:
Implement a default duration query for the "default" value in the dashboard timepicker to show data from the past hour by default.

@HarishNukala77 HarishNukala77 added the bug Something isn't working label Feb 11, 2025
@aso1124
Copy link
Contributor

aso1124 commented Feb 11, 2025

Hi @HarishNukala77 - thanks for opening this. There are 4 widgets in the status widget pack - are you seeing this for all the widgets or for a specific widget type?:

NRQL Status Widget
NRQL Status Timeline Widget
NRQL Status Table Widget
Entity Status Widget

Also, could you share which New Relic url you are using - one.newreli.com or eu.newrelic.com?

@HarishNukala77
Copy link
Author

Hi @aso1124 ,

Thanks for reviewing this issue. We are using NRQL Status Widget in our dashboards. We are using one.newrelic.com.

Thanks,
Harish

@Kav91
Copy link
Member

Kav91 commented Mar 17, 2025

Hi @HarishNukala77 can you share what you've got in the configuration options on the side and a screenshot if possible please.
We are unable to replicate and have many who have the time picker left on default, so this is difficult to debug without some additional information.

@TeonLucas
Copy link

Hi @Kav91, here is the example config:
Image

Hi @HarishNukala77 can you share what you've got in the configuration options on the side and a screenshot if possible please. We are unable to replicate and have many who have the time picker left on default, so this is difficult to debug without some additional information.

@Kav91
Copy link
Member

Kav91 commented May 15, 2025

This should be fixed in #83 now. The default time range is set to 60 minutes now to match the platform default range, and the incorrect time clause issue should no longer happen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants