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

NR GraphQL doesn’t return APM Summary

graphql

#1

We are trying to fetch App data through NR GraphQL but doesn’t return APM Summary (though browser summary is appearing). Here is the screenshot of GraphQL Explorer


#2

Hi @sharmap, a Browser app and an APM app will have different entity GUIDs, even if they are linked together through auto-instrumentation. This is why you can only return APM or Browser summary data per a single GUID.

That being said, you can always do an entities() query to get summary data out of multiple GUIDs. Here’s a quick example:

{
  actor {
    entities(guids: ["APM application GUID", "Browser application GUID"]) {
      ... on ApmApplicationEntity {
        guid
        name
        apmSummary {
          apdexScore
          errorRate
          hostCount
          instanceCount
          nonWebResponseTimeAverage
          nonWebThroughput
          responseTimeAverage
          throughput
          webResponseTimeAverage
          webThroughput
        }
      }
      ... on BrowserApplicationEntity {
        guid
        name
        browserSummary {
          ajaxRequestThroughput
          ajaxResponseTimeAverage
          jsErrorRate
          pageLoadThroughput
          pageLoadTimeAverage
          pageLoadTimeMedian
          spaResponseTimeAverage
          spaResponseTimeMedian
        }
      }
    }
  }
}

Let me know if that helps!