New Relic Dashboard Plugin does not correctly query for dashboard
See original GitHub issueExpected 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.
Possible Solution
Currently, the plugin appears to be querying for Dashboard GUID as such:
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
- Added plugin to project’s dependencies.
- 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}
- Added
EntityNewRelicDashboardContent
andEntityNewRelicDashboardCard
toEntityPage.tsx
. - Mocked a catalog entity locally with the annotation
newrelic.com/dashboard-guid: <dashboard_guid>
, substituting dashboard GUID from New Relic. - Observed
No Dashboard Pages found with the specified Dashboard GUID
error. - Modified line in the local dependency from
parentId
toid
. - Observed dashboard being correctly populated
EntityNewRelicDashboardContent
andEntityNewRelicDashboardCard
.
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:
- Created 2 years ago
- Comments:11 (6 by maintainers)
@diogormendes This will be fixed in the next release
Thanks mate !