Browser subscription usage attributes and queries

This document contains the attributes available for New Relic Browser subscription usage, and provides example NRQL queries for use in Insights or API calls.

Data generation

Once per day, for every monitored application, a New Relic Browser account will generate a NrDailyUsage Insights event. Each event will summarize the usage for the last 24 hours.

When querying Browser usage data, use a productLine attribute value of Browser.

For query examples, see Browser query examples.

General attributes

The following are general (not Browser-specific) account-related attributes. These attributes can help you understand how your accounts and sub-accounts are using New Relic products.

Attribute Description
consumingAccountId

ID of the New Relic account that is directly responsible for the stored events, as determined from the license key used.

consumingAccountName Name of the New Relic account that is directly responsible for the stored events, as determined from the license key used.
masterAccountId

The ID of the master account that is either responsible for stored events or that is the parent of the consuming account. When a master account is the consuming account, masterAccountId is the consumingAccountId.

This attribute is present even for accounts that do not have a master account. This is to ensure continued reporting if the account is later made a master account.

masterAccountName

Name of the master account that is either responsible for stored events, or that is the parent of the consuming account. When a master account is the consuming account, masterAccountName is the consumingAccountName.

This attribute is present even for accounts that do not have a master account. This is to ensure continued reporting if the account is later made a master account.

partnershipId

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.

partnershipName

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.

subAccountId

ID of the sub-account that is responsible for the stored event. When this attribute is present, subAccountId is the consumingAccountId.

This attribute is only present if the consuming account is a sub-account (not a master account).

subAccountName

Name of the sub-account responsible for stored events. When present, this attribute is the same as the consumingAccountName.

This attribute is only present if the consuming account is a sub-account (not a master account).

timestamp UNIX timestamp (seconds since epoch) of the day and time when event generation was initiated.

Browser attributes

The following are usage-related attributes generated by New Relic Browser. To query Browser data, use a productLine attribute value of Browser.

Attribute Description
browserAppId ID uniquely identifying the application reporting this usage, as it appears in the Browser product.
browserPageViewCount Number of page views for an application for that 24-hour period. For more on how events are generated, see Data generation.Page views for both Pro and Lite Browser agents are counted.
isPrimaryApp

Boolean. true means the application is the primary app. false means the app is one of several apps that an agent reports data for. For more on multiple app names in APM and Browser, see Use multiple app names.

The sum of events where this attribute is true will give an accurate total of page views when you are using the multiple app names feature. Counting events where this attribute is false will result in over-counting of usage.

productLine The New Relic product the usage data is from. For Browser data, this value is Browser.
usageType

The type of entity this event records values for. For Browser, this value is Application.

Query examples

Here are some examples of NRQL queries you can use with your subscription usage data. You can run NRQL queries with the Insights query tool, use the resulting charts in Insights dashboards, and use the NRQL with the Insights query API.

Page views for the last complete month

This query shows a count of page views from the last complete month:

SELECT sum(browserPageViewCount) 
FROM NrDailyUsage 
WHERE usageType='Application' 
AND productLine='Browser' 
AND isPrimaryApp='true' 
SINCE last month 
UNTIL this month
Page views for the past month, by application

This query shows a count of page views from the last complete month, faceted by application:

SELECT sum(browserPageViewCount) 
FROM NrDailyUsage 
WHERE usageType='Application' 
AND productLine='Browser' 
AND isPrimaryApp='true' 
SINCE 1 month ago 
FACET browserAppId
Page views for the last week, by application and account

This query shows a count of page views from the last week, faceted by application and account:

SELECT sum(browserPageViewCount) 
FROM NrDailyUsage 
WHERE usageType='Application' 
AND productLine='Browser' 
AND isPrimaryApp='true' 
SINCE 7 days ago 
FACET browserAppId,consumingAccountName
Account hierarchy

This query is useful for seeing the account hierarchy (partnership, master, sub-accounts):

SELECT count(*) 
FROM NrDailyUsage 
FACET partnershipName,masterAccountName,masterAccountId,consumingAccountName,consumingAccountId 
LIMIT 1000 
SINCE 1 day ago

For more help

Recommendations for learning more: