Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

New Relic Insights - Unique user count for a service

dashboard
insights
configuration

#1
  • I have a service that is consumed by a web client and mobile clients. I want to know the unique number of users for a given time range. I am (probably) able to do that for the webclient through the NewRelic Browser application, but I don’t know how to do this for Mobile (without using NewRelci Mobile). I was hoping to use the Transaction table on the service to query for unique user sessions, but there’s nothing similar in this table.

  • URL to the Insights dashboard that needs addressing:
    https://insights.newrelic.com/accounts/1361924/dashboards/1209912?duration=21600000

  • NRQL queries you have tried so far:
    Select * from Transaction where appName=‘common-service’
    // common-service is the service exposing the APIs which are consumed by hosted web and mobile app clients.


#2

Hi, @pd.wanjari: By default, New Relic APM does not capture any sort of unique user ID. If your service has some way to uniquely identify users, you can add the user ID as a custom attribute. Then you can query:

SELECT uniqueCount(yourCustomID)
FROM Transaction
WHERE appName = 'Your Application'

#3

Thanks. Reading the below link it looks like such custom attributes will be only available for errors or tracing. If that’s the case, it won’t solve the problem.
https://docs.newrelic.com/docs/agents/python-agent/python-agent-api/add_custom_parameter


#4

Custom attributes are available in Insights as well.