Note that you would replace the in with the data you'd like to export.

Using NRQL to query data on golden signals

So what kind of data would you potentially export? Here's where the golden signals come in. The Four Golden Signals of monitoring are latency, traffic, errors, and saturation. If you can only measure four metrics of your user-facing system, focus on these signals.

If you're new to NRQL, see this resource on NRQL syntax, clauses, components, and functions.

Use FACET to separate and group your results by attribute values. For example, you could your PageView data by to figure out what percentage of your traffic comes from mobile, tablet, and desktop devices.

Use the LIMIT clause to specify how many facets appear (the default is 10). For more complex grouping, use FACET CASES. These clauses support up to five attributes, separated by commas.

Querying latency

The next two queries return the following:

  • The average response time since 7 days ago, grouped hourly
  • The 95th percentile response time since 30 days ago, grouped daily

You'll need to specify your and the you are searching for-for instance, you could use for successful page views.

Attachments

  • Original Link
  • Original Document
  • Permalink

Disclaimer

New Relic Inc. published this content on 04 April 2022 and is solely responsible for the information contained therein. Distributed by Public, unedited and unaltered, on 04 April 2022 17:06:07 UTC.