Azure Function for periodically pulling in Azure Data Factory metrics into New Relic Insights.
- Create an application in Azure Active Directory that represents the application you are creating. For the sign-on URL, you can provide a dummy URL as shown in the article (https://contoso.org/exampleapp).
- Get the application ID, authentication key, and tenant ID.
- Assign the application to the Reader role at the subscription level.
- Go to insights.newrelic.com > Manage data > API keys.
- Next to the Insert keys heading, select the + symbol.
- Enter a short description (owner, team, purpose, data source, etc.) for the key.
- Select Save your notes.
- Either create a new functions app or use an existing one
- TenantId
- Azure AD tenantId
- ApplicationId
- Azure AD applicationId
- AuthenticationKey
- Azure AD applicationKey
- SubscriptionId
- Azure subscriptionId (use
az account show
from cli)
- Azure subscriptionId (use
- ResourceGroup
- Resource Group that holds the Azure Data Factories you want to monitor
- MinuteInterval
- Interval for timer function (i.e.
5
for a function that runs every 5 minutes)
- Interval for timer function (i.e.
- NewRelicInsightsInsertAPIKey
- New Relic Insights API Insert key (note this is NOT the same a normal account API key, see here)
- NewRelicAccountId
- If you login to New Relic APM, your accountId is the first number in the URL
https://rpm.newrelic.com/accounts/{ACCOUNT_ID}/applications
- If you login to New Relic APM, your accountId is the first number in the URL