In order to make requests to the NewRelic API, you must provide Roadie with an API key. Roadie provides two different New Relic plugins within the installation, providing both page and individual entity page functionality.
Go to https://one.newrelic.com/launcher/api-keys-ui.api-keys-launcher and follow the steps to create a user-api-key for NewRelic.
Give the token a name and click “Create a key”.
Click the icon alongside the key you have created and click “Copy key”
Login to Roadie and visit the administration -> settings -> secrets (https://<tenant name>.roadie.so/administration/settings/secrets) page.
Click the pencil icon alongside the
NEW_RELIC_REST_API_KEYand paste the API key you copied earlier.
Navigate to administration -> New Relic Dashboard and select the data region of your New Relic account. Click ‘Save’ and ‘Apply’
It can take up to 2 minutes for the API key and configuration to be applied.
- Sidebar component
- Hover over the sidebar on the left and click the “Edit Sidebar” icon
- Click “Add Card”
- Select the option “@backstage/plugin-newrelic: NewRelicPage”, pick a name for the menu item the path, and an Icon. Click Add.
- You should see a new item in the sidebar for NewRelic, click the sidebar save button.
- Card and Content Components
- Navigate to Entity page in the catalog to add a Content or Card type components into your Roadie instance
- You can find instructions how to add these components from the Updating The UI guide
- The available components are called
EntityNewRelicDashboardContentfor the tab component and
EntityNewRelicDashboardCardfor the Card component
- Add an annotation to your entity in the format
newrelic.com/dashboard-guid: <dashboard_guid>. You can find the
dashboard_guidvalue from New Relic by looking at the metadata of your Dashboard.