Important
This doc is for accounts on our original Product-based pricing. If you're on the newer pricing plan, see New Relic One pricing plan. Not sure which you're on? See Overview of pricing plans.
For accounts on our original pricing plan, this document explains how we calculate billable usage for Infrastructure accounts. This document also provides available subscription usage attributes and example NRQL queries to use in the New Relic UI or with API calls.
Data generation
Once per day, a New Relic Infrastructure account will generate an NrDailyUsage
event for every unique host on which an application instance existed over the last 24 hours. All Infrastructure events have a productLine
attribute value of Infrastructure
. For more information, see query examples.
Usage calculation
Monthly billable CUs for a host are calculated by the size of the host running Infrastructure (number of CPUs + GBs of RAM) multiplied by the number of hours the host is connected to New Relic during that month. For more on how this is calculated, see CU-based pricing.
If your usage is fairly steady over time, you can estimate usage for the current month.
Tip
Only the account Owner and Admins can view the usage UI. However, anyone in your account can query usage data using the NrDailyUsage
event.
To view usage information in the UI:
- Go to the usage UI.
- On the Infrastructure usage page, set the time picker to Last 30 days.
- Multiply the Avg daily compute units by the number of days in the current month.
For more information about the usage UI, see Introduction to subscription usage data.
Table definitions
Here are definitions of the column headers displayed in the UI table and CSV files. The columns displayed depend on the Group by option selected at the top of the page.
Header | Definition |
---|---|
Account name | The name of the account. This can be a standalone account, a parent account or a customer partnership. |
Account ID | New Relic account ID. |
Agent hostname | The name of the host, as reported by the agent. For more about this value, see |
Average daily compute units | The average daily compute units used. |
% of total usage | The percentage of the total usage used. |
General attributes
The following are general (not Infrastructure-specific) account-related attributes. These attributes can help you understand how your accounts are using New Relic products.
Attribute | Description |
---|---|
| ID of the New Relic account that is directly responsible for the stored events, as determined from the license key used. |
| Name of the New Relic account that is directly responsible for the stored events, as determined from the license key used. |
| The ID of the parent account that is either responsible for stored events or that is the parent of the consuming account. When a parent account is the consuming account, This attribute is present even for accounts that do not have a parent account. This is to ensure continued reporting if the account is later made a parent account. |
| Name of the parent account that is either responsible for stored events, or that is the parent of the consuming account. When a parent account is the consuming account, This attribute is present even for accounts that do not have a parent account. This is to ensure continued reporting if the account is later made a parent account. |
| Partner ID of the New Relic customer partnership associated with the account responsible for the stored events. This attribute is only present if the consuming account is associated with a New Relic customer partnership. |
| Name of the New Relic customer partnership associated with the account responsible for the stored events. This attribute is only present if the consuming account is associated with a customer partnership. |
| ID of the child account that is responsible for the stored event. When this attribute is present, This attribute is only present if the consuming account is a child account (not a parent account). |
| Name of the child account responsible for stored events. When present, this attribute is the same as the This attribute is only present if the consuming account is a child account (not a parent account). |
| UNIX timestamp (seconds since epoch) of the day and time when event generation was initiated. |
Infrastructure attributes
The following are usage-related attributes generated by Infrastructure. To query this data, use a productLine
attribute value of Infrastructure
.
Attribute | Description |
---|---|
| ID used to uniquely identify the host for which this usage is reported. Any given hour of usage for this host will be counted only once when calculating |
| ID uniquely identifying the cloud host instance (example: an AWS EC2 instance) for which this usage is reported. (For example, for an AWS EC2 instance, the value would look like |
| Size of the cloud instance for this host for CU billing purposes, as calculated according to the formula for |
| Instance type of the host as defined by the cloud provider and detected by the agent. For example: |
| Name of the cloud provider for this host. Example values: |
| Name of the zone that a cloud provider host is located in. For example: |
| Version of the Infrastructure agent running on the host reporting this usage. If multiple agents are reporting from the same host, the version from the first agent seen in a given hour will be used. |
| Bytes of RAM available to the host, used to calculate |
| Number of logical CPU cores available to the host, used to calculate |
| Bytes of RAM available to the host, as reported by the cloud provider, used to calculate |
| Number of logical CPU cores available to the host, as reported by the cloud provider, used to calculate |
| Size of the host, for CU billing purposes. Calculated as: number of processors multiplied by memory in GiB. |
| Number of hours for which usage was recorded for the given host. When a host is connected to New Relic for any amount of time within a given hour, that hour is counted toward usage. |
| Number of compute units (CUs) recorded for the given host. CUs are calculated as: |
| Describes the algorithm used to calculate the host size for CU usage. Values include:
|
| This is |
|
|
|
|
| The New Relic product the usage data is from. Always use the value |
| The type of entity this event records values for. This value is |
Query examples
Here are some examples of NRQL queries you can use with your Infrastructure subscription usage data. You can run NRQL queries, and use the resulting charts in dashboards.
For general information about how to use NRQL queries to get focused usage data, see Intro to usage data.
For more help
If you need more help, check out these support and learning resources:
- Browse the Explorers Hub to get help from the community and join in discussions.
- Find answers on our sites and learn how to use our support portal.
- Run New Relic Diagnostics, our troubleshooting tool for Linux, Windows, and macOS.
- Review New Relic's and and documentation.