Visualize your New Relic data with Victory charts!
- Add this Nerdpack to your account
- Select one of the Nerdpack's visualizations
- Choose your New Relic account
- Enter a NRQL query
After configuring your visualization, add it to a dashboard to see your data.
Plot multifaceted data in a stacked bar chart view.
For example, if you query SELECT average(duration) FROM Transaction FACET environment, appName
, you'll see the average duration of a Transaction
event in a stacked bar chart where:
- Each bar represents a different
environment
(production, development, etc.) - Each segment of the bar represents a different
appName
This is ideal for visualizing related facets with respect to some numeric or aggregate attribute.
Edit these values in the Custom Visualizations Nerdlet or directly in the visualization's dashboard widget.
To use the visualization, provide the following properties:
Prop | Usage | Required |
---|---|---|
nrqlQueries |
A collection of NRQL queries. This visualization only accepts one query. See Multifacet NRQL Data Details for more details on accepted NRQL queries. | Yes |
accountId |
Associated account ID for the data you wish to plot. | Yes |
other.visible |
A toggle that controls the display of "other" groups of attributes | No |
yAxis.label |
A custom label to describe the y-axis | No |
This visualization accepts a NRQL query in the form:
SELECT [numeric attribute or aggregate of attribute] FROM [event] FACET [attribute1, attribute2, ...]
You must select an attribute that's either numeric or an aggregate function. You must also specify at least one facet.
Note: If you only specify one facet in your query, you'll have a standard bar chart.
NRQL feature | Usage | Type |
---|---|---|
All but last facet attribute | X-axis label or bar on bar chart | string or boolean |
Last facet attribute | Bar color or segment of bar on bar chart | string or boolean |
Aggregate | Y-axis value or bar height | aggregate function |
SELECT count(*) FROM PageAction WHERE actionName = 'clickSignUpButton' FACET pageUrl, deviceType
In the above query, you can visualize:
- number of times a user clicked the sign up button on your site
- what pages those events occurred on
- what devices people tend to click the button
SELECT average(duration) FROM TransactionError FACET errorType, appName
In the above query, you can see:
- average duration for transaction errors for each
appName
- how the duration is broken up for each
errorType
Visualize the range of numeric attributes grouped by a facet.
For example, if you query FROM Transaction SELECT percentile(duration, 5), percentile(duration, 95) FACET dateOf(timestamp) SINCE 7 days ago
you'll see a bar for each day of the last week where:
- The top segment shows the 95th percentile of the duration
- The bottom segment shows the 5th percentile of the duration
Edit these values in the Custom Visualizations Nerdlet or directly in the visualization's dashboard widget.
To use the visualization, provide the following properties:
Prop | Usage | Required |
---|---|---|
nrqlQueries |
A collection of NRQL queries. This visualization only accepts one query. See Range Chart NRQL Data Details for more details on accepted NRQL queries. | Yes |
accountId |
Associated account ID for the data you wish to plot. | Yes |
other.visible |
A toggle that controls the display of "other" groups of attributes | No |
This visualization accepts a NRQL query in the form:
SELECT [aggregate1, aggregate2] FROM [event] FACET [attribute]
You must supply two aggregate functions to act as the top and bottom of the range for a facet.
NRQL feature | Usage | Type |
---|---|---|
First aggregate | Y-axis position of top of range bar | aggregate function |
Second aggregate | Y-axis position of bottom of range bar | aggregate function |
Facet | X-axis position or x-axis label | attribute with string or boolean values |
SELECT max(duration), min(duration) FROM Transaction FACET appName SINCE 1 day ago
In the above query, you will see:
- the max duration since a day ago for each appName
- the min duration since a day ago for each appName
- how much of a difference there is between the min and the max
SELECT average(duration) + stddev(duration), average(duration) - stddev(duration) FROM Transaction FACET appName SINCE 1 day ago
In the above query, you will see:
- the range of one standard deviation above the average duration
- the range of one standard deviation below the average duration
- how much
Transaction
events vary for each app
Visualize your progress toward a limit or goal.
This chart is similar to the New Relic Bullet chart but with the following differences:
- It provides specific coloring related to the completion percentage
- It provides a circular representation of the data
- It emphasizes the percentage
For example, if you query FROM PageView SELECT percentage(count(*), WHERE duration < 1)
, you'll see what percentage of page views were shorter than one second.
Edit these values in the Custom Visualizations Nerdlet or directly in the visualization's dashboard widget.
To use the visualization, provide the following properties:
Prop | Usage | Required |
---|---|---|
nrqlQueries |
A collection of NRQL queries. This visualization only accepts one query. See Progress Bar NRQL Data Details for more details on accepted NRQL queries. | Yes |
accountId |
Associated account ID for the data you wish to plot. | Yes |
criticalThreshold |
Value at which progress is displayed as critical | No |
highValuesAreSuccess |
If toggled on, values above the threshold display as successful. Otherwise, values at or above the threshold display as critical. | No |
This visualization accepts a NRQL query in the form:
SELECT [percentage(aggregate(attribute), WHERE...) or numeric_attribute1/numeric_attribute2 or numeric attribute] FROM [event]
You must supply a percentage or fractional value of two attributes. For example, SELECT filter(count(*), WHERE duration < 1)/filter(count(*), WHERE duration < 2) FROM PageView
gives the number of PageView
events that last less than one second over the number of events that last less than two seconds.
NRQL feature | Usage | Type |
---|---|---|
percentage(aggregate(attribute), WHERE...) or numeric attribute |
Fill of circle over 100 | aggregate functions or mathematical operations that return a percentage or fraction value less than 1 |
SELECT percentage(count(*), WHERE actionName = 'clickButton') FROM PageAction SINCE 2 weeks ago
In the above query, you will see what percentage of actions on your site were a user clicking a button!
SELECT average(StorageDataUsagePercent) FROM ContainerSamples
In the above query, you can use the percentage value of StorageDataUsagePercent
to visualize how much data is being used on average!
Display aggregate or non-aggregate data in a scatter plot.
For non-aggregate data, provide a query with two or three attributes in the SELECT
clause. For aggregate data, provide a query with two or three aggregator functions in the SELECT
clause and add a FACET
clause.
The order of the SELECT
fields matters. The first attribute or funciton provides the x-axis value for each bubble on the scatter plot. The second field provides the y-axis for each bubble. The third field is optional and it provides the size for each bubble.
NRQL feature | Usage | Type |
---|---|---|
First SELECT clause entry | X-axis position | attribute name or aggregate function |
Second SELECT clause entry | Y-axis position | attribute name or aggregate function |
Third SELECT clause entry (optional) | Size of bubble | attribute name or aggregate function |
Facet (only for aggregate queries) | Color of bubble | attribute with string or boolean values |
SELECT externalCallCount, externalDuration, duration FROM Transaction LIMIT 1000
With this non-aggregate query, you can highlight the effect of external calls made by your applications. Note the inclusion of the LIMIT
clause which allows you to increase the number of data points displayed. See the LIMIT clause documentation for more.
SELECT average(externalCallCount), average(externalDuration), average(duration) FROM Transaction FACET appName LIMIT 1000
In this aggregate query, the attributes are wrapped in aggregate functions and a FACET
clause is included. Faceting by appName
aggregates leads to each of your applications represented by a bubble on the scatter plot.
This visualization is ideal for highlighting outliers, similarities and corralations across two or three attributes.
Edit these values in the Custom Visualizations Nerdlet or directly in the visualization's dashboard widget.
To use the visualization, provide the following properties:
Prop | Usage | Required |
---|---|---|
nrqlQueries |
A collection of NRQL queries. This visualization only accepts one query | Yes |
accountId |
Associated account ID for the data you wish to plot. | Yes |
other.visible |
A toggle that controls the display of the "Other" entry, often an outlier as it summarizes all events outide the LIMIT (only pplicable for queries with a FACET clause) |
No |
- To learn more about custom visualizations, read through our introduction to the topic or some of our guides for building on New Relic.
- To learn more about these visualizations, visit our
repo
. - To learn more about the attributes and events available in NRQL, see our Attribute Dictionary.