New Relic's Azure Cost Management integration collects your accumulated monthly expenditures for the Azure resources in your subscription, grouped by service, location, resource group, or tag.
Our integration allows you to track how costs evolve for each billing period and detect unexpected trends, or alert on accumulated costs for the current billing period.
Follow standard procedures to activate your Azure service in New Relic.
In some cases, the Azure Cost Management integration requires you to add an additional role to fetch billing data:
- In the Azure Portal Subscriptions section, select the subscriptions that you want New Relic to monitor.
- Select Access control (IAM) > Add.
- From the Role dropdown, select Billing Reader.
- From the Select dropdown, select the app's name; for example,
- From Selected members, verify your app name appears, then select Save.
You can change the polling frequency and filter data using configuration options.
Default polling information for the Azure Cost Management integration:
- Default polling frequency: 1 hour
- Maximum recommended polling frequency: 1 hour
- Resolution: 1 day
To find your integration data, go to one.newrelic.com > All capabilities > Infrastructure > Azure and look for the integration.
You can query and explore your data using the
AzureCostManagementSample event type. The
provider metadata value indicates how the daily cost is grouped:
AzureCostLocation: Costs are grouped by location.
AzureCostService: Costs are grouped by cloud service.
AzureCostResourceGroup: Costs are grouped by resource group.
AzureCostTag: Costs are grouped by a resource tag, indicated in the
label.<tag_key>metadata of the same event. Untagged resources will not be collected. In order to collect costs grouped by tag, specify the tag key in the integration settings.
Costs are estimates, as Microsoft can make updates to the cost data up until the invoice for the billing period is generated. To get the most accurate value of the accumulated cost in the billing period, use the
max() function in your NRQL queries.
Here are the metrics and metadata reported by the Azure Cost Management integration. For more information about how data is structured and reported to New Relic, see Understand and use integration data.
Amount spent for the day of the event.