question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New Relic Dashboard Plugin does not correctly query for dashboard

See original GitHub issue

Expected Behavior

Plugin should correctly find referenced dashboard after following instructions in the README: https://github.com/backstage/backstage/blob/master/plugins/newrelic-dashboard/README.md

Current Behavior

Message No Dashboard Pages found with the specified Dashboard GUID is displayed, as shown below.

image

Possible Solution

Currently, the plugin appears to be querying for Dashboard GUID as such:

https://github.com/backstage/backstage/blob/72b00f4f2ed99160c3aa5da3304da52ddfeb09b3/plugins/newrelic-dashboard/src/api/NewRelicDashboardClient.ts#L76

Changing from parentId to id yielded expected behavior. I don’t want to discount the possibility of this simply being an issue with my own schema (which would make this a non-issue), but New Relic documentation seems to state that using id when querying for entities with entitySearch (which is what the plugin appears to be doing) is correct.

https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-entities-api-tutorial/

Relevant section: Fetch entities by GUID

Steps to Reproduce

  1. Added plugin to project’s dependencies.
  2. Added specified proxy as listed in the README above:
proxy:
  '/newrelic/api':
    target: https://api.newrelic.com
    headers:
      X-Api-Key: ${NEW_RELIC_USER_KEY}
  1. Added EntityNewRelicDashboardContent and EntityNewRelicDashboardCard to EntityPage.tsx.
  2. Mocked a catalog entity locally with the annotation newrelic.com/dashboard-guid: <dashboard_guid>, substituting dashboard GUID from New Relic.
  3. Observed No Dashboard Pages found with the specified Dashboard GUID error.
  4. Modified line in the local dependency from parentId to id.
  5. Observed dashboard being correctly populated EntityNewRelicDashboardContent and EntityNewRelicDashboardCard.

Context

This issue has prevented me from creating a POC with New Relic integrations involving plugins plugin-newrelic and plugin-newrelic-dashboard. Any other information such as config settings or log info can be provided if needed.

Your Environment

Note: Running in docker container.

OS: Darwin 20.4.0 - darwin/x64 node: v16.13.1 yarn: 1.22.17 cli: 0.10.1 (installed)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
mufaddal7commented, Jan 17, 2022

@diogormendes This will be fixed in the next release

1reaction
diogormendescommented, Jan 17, 2022

Thanks mate !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dashboard Customization Options - New Relic
Dashboards are a flexible way for engineering teams to visualize data however they want by combining pre-made templates, native platform ...
Read more >
MSSQL Plugin not showing in dashboard - Infrastructure
I have signed up via Azure and have installed the MSSQL server plugin. From my view its appears the below is correct. License...
Read more >
Manage your dashboard | New Relic Documentation
Access any of your New Relic dashboards to create or manage your charts directly from the chart menu, customize your dashboard's layout, adjust...
Read more >
Unable to edit the NRQL query in my widget - Dashboards
Edit Chart; Update the NRQL on the top; Run the query to see it successfully run; Hit 'Save Changes' button. When i hit...
Read more >
Is it possible to add a log view to the dashboard?
I can go to the log section, in New Relic, and create a query to ... Second, you want to share that dashboard...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found