Log New Relic metrics every 5 minutes via email

Recipe ToolsMarketingDeveloper Tool

What it does

When the clock triggers every 5 minutes, this automation runs Python code to query New Relic. It sends an email with the results so someone has the latest performance data without manual checks.

Who it's for

Engineering teams who monitor application performance and need regular New Relic updates.

How teams use this

Monitor application performance continuously

Query New Relic every 5 minutes and email the results to track application health. The team stays informed of performance trends without manual checks or dashboard visits.

Alert on specific performance thresholds

Modify the Python code to check if metrics exceed defined thresholds before sending email. Only send alerts when performance degrades, reducing noise and focusing attention on real issues.

Route alerts to different teams

Send New Relic results to different email addresses based on which service or component triggered the query. Database alerts go to the data team, API alerts go to backend engineers.

How it works

  1. Run on a 5-minute schedule. This automation starts every 5 minutes so New Relic data stays current and the team always has fresh metrics.
  2. Query New Relic with Python. Execute Python code to pull the latest metrics and performance data from New Relic for analysis and reporting.
  3. Send results by email. Email the New Relic query results to the team so they see performance updates without logging into New Relic.