Within 1-2 minutes of adding a custom event to your Lambda function, it should begin reporting that data to New Relic. Let’s take a look at what is being sent over using the Query Builder by clicking on the Query your data button on your New Relic One homepage:
With the query builder, you can run queries of your data to create custom charts and other visualizations. You can also build custom dashboards containing multiple charts.
Use the query builder to:
The query builder has several modes:
Let’s take a look at the custom event data we sent over to New Relic using NRQL mode. If you are not already in that mode, please select it:
Copy and paste the following line into Query Builder and hit enter/return:
FROM ProducerLambda SELECT *
Much like SQL, the NRQL query above queries our custom ProducerLambda event type like a SQL table. Scrolling from left to right in the results listed in the table, we can see information that the New Relic Python agent automatically adds to custom events on our behalf:
Lastly, appended to the end of the data provided by the agent by default, is the custom attribute we appended: PRODUCER TABLE NAME
As with any NRQL query, you can add the results as a chart to a custom dashboard with the click of a button. Let’s do that now by clicking the Add to Dashboard button at the bottom right of the query results table:
As pictured above, enter a name for the chart we will be creating, and then click the Or create new dashboard link:
Give your dashboard a name, and then click on the Copy to dashboard button.
You can navigate to your newly created dashboard by returning to your New Relic One homepage, hovering over the Dashboards link, searching for your dashboard by name, and then clicking the result:
For more information on creating custom dashboards, we highly recommend that you signup for one of our 1 hour live webinars on Getting started with Dashboards and NRQL.