New Relic Insights is the place you go to ask questions of your data and find answers. Insights is designed to make it easy to ask questions, but drilling down to find the precise information you’re looking for can sometimes require multiple iterations. You may write a query, look at the results, change the query, and run it again until you reach the data you need to fully answer your question. Or you might prefer to build a New Relic dashboard made up of multiple queries to see how your data looks side by side. Other times, you may not know what information is interesting or important until you try several other initial queries.
No matter how you get there, the key to finding useful answers is being able to identify the important patterns and trends. To help you do that, New Relic is proud to announce multi-attribute FACETs as a new New Relic Query Language (NRQL) capability in New Relic Insights. The ability to add multiple FACETs increases the power of NRQL and allows customers to group data together in new ways.
Write more robust NRQL queries
With multi-attribute FACETs, what used to require multiple queries can now be consolidated into a single query, making it easier to mix and match attributes that may be correlated.
Users will now be able to add up to five FACETs in a single query and see the results together in the same widget. (For example, the code snippet below includes three FACETs: pageUrl
,
userAgentName
, and userAgentVersion
.)
Importantly, multiple FACETs are not restricted to simple attributes, but can be used with anything that you can already facet on, including CASES. The code snippet below includes apm_product
and mobile-product
:
Using more FACETs in a query gives New Relic customers much more fine-grained control over their data analysis.
Come to conclusions more quickly
Multi-attribute FACETs can be used to do almost anything, from exploring the data by mixing and matching to see what surfaces, to drilling down on various combinations of data to see the results of a mission-critical query.
Prior to this feature, a user might have to run different query permutations in order to understand the data set. They might run this query:
SELECT average(pageRenderingDuration) FROM PageView where userAgentName = 'Chrome' facet pageUrl since 60 minutes ago limit 10
And then run a second query swapping “Chrome” to “Firefox,” do a WHERE clause to narrow down the pageURL, or other functions to reduce the data set.
With multi-attribute FACETs, users don’t need to refine the query as much to get meaningful results. Now they can get a more complete look of the data set by applying multiple FACETs, like this:
SELECT average(pageRenderingDuration) FROM PageView facet userAgentName, userAgentVersion, pageUrl since 60 minutes ago limit 10
Below is an example of three different charts for the same query, showing the average time it takes to render a page. Additionally, you can view the data in groupings to see it by PageURL, userAgentName, and userAgentVersion:
Seeing data FACETs together on the same chart can help close gaps that may have formed when running query after query in an attempt to understand the full data set.
To learn more about how to apply multi-attribute FACETs, check out the New Relic Insights documentation.
이 블로그에 표현된 견해는 저자의 견해이며 반드시 New Relic의 견해를 반영하는 것은 아닙니다. 저자가 제공하는 모든 솔루션은 환경에 따라 다르며 New Relic에서 제공하는 상용 솔루션이나 지원의 일부가 아닙니다. 이 블로그 게시물과 관련된 질문 및 지원이 필요한 경우 Explorers Hub(discuss.newrelic.com)에서만 참여하십시오. 이 블로그에는 타사 사이트의 콘텐츠에 대한 링크가 포함될 수 있습니다. 이러한 링크를 제공함으로써 New Relic은 해당 사이트에서 사용할 수 있는 정보, 보기 또는 제품을 채택, 보증, 승인 또는 보증하지 않습니다.