Integrating New Relic with an AI Agent: No-Code Monitoring in 5 Minutes
Monitoring infrastructure and applications is the foundation of stable operation for any digital product. New Relic has long been the standard for observability, collecting metrics, logs, and traces. But setting up alerts, creating dashboards, and analyzing logs still require manual work from engineers. What if these routine tasks could be handed over to an AI agent?
In this article, I'll show how the ASI Biont AI agent integrates with New Relic via its API, automating the monitoring process without a single line of code on your part. You'll learn how to connect the service in a couple of minutes, what tasks this automation handles, and what it looks like in practice.
Why Connect New Relic to an AI Agent?
New Relic collects massive amounts of data—from server response times to error stack traces. Without automation, you're forced to:
- Manually create dashboards for each metric.
- Set up alerts that often miss anomalies or generate false positives.
- Spend hours analyzing logs during incidents.
The ASI Biont AI agent turns New Relic into a true digital assistant. It autonomously writes code to interact with the New Relic API, interprets data, and makes decisions—for example, sending a notification to Slack, creating a ticket in Jira, or adjusting infrastructure configurations.
What Tasks Does This Integration Automate?
After connecting, ASI Biont takes over three key areas:
1. Automatic Metric Collection and Aggregation
The AI agent fetches data from New Relic (CPU, memory, latency, error count) via the REST API. You can ask questions in natural language: "Show me the average API response time over the last hour broken down by endpoint." ASI Biont will form the corresponding GraphQL query itself and return a ready answer or dashboard.
2. Intelligent Dashboard Creation
Instead of manually dragging widgets, you can say: "Create a dashboard for monitoring the payments server's performance: include CPU load, memory, request count, and error rate charts." The AI agent, via the New Relic API, creates a dashboard with the needed elements and even sets it to refresh every minute.
3. Log and Event Analysis with Automatic Alerts
The most powerful feature is log analysis. ASI Biont can regularly scan New Relic logs for patterns you describe in words. For example: "Check the nginx logs every 5 minutes for occurrences of '502 Bad Gateway'. If the frequency exceeds 10 in 10 minutes, send an alert to our Telegram chat." The AI agent implements this logic by itself, without your code.
How to Connect New Relic to ASI Biont: Step-by-Step Guide
The entire process is a dialogue with the AI agent in a chat. No control panels, "add integration" buttons, or scripts. All you need is your New Relic API key.
Step 1. Get Your New Relic API Key
Go to New Relic → Administration → API keys. Create a key of type USER (for managing dashboards, alerts) or INGEST (for sending data only). Copy it.
Step 2. Start a Dialog with ASI Biont
Open the chat with the AI agent at asibiont.com and write something like:
"Connect my New Relic. My API key: NRAK-XXXXXXXXXXXXXXX. Domain: eu.newrelic.com (or default — US)."
Step 3. The AI Agent Writes the Integration Code on Its Own
Based on your key and the New Relic API documentation, ASI Biont generates a Python script (or uses a built-in module) that authenticates with New Relic, fetches data, and returns results. You don't see this code unless you ask—the AI works in the background.
Step 4. Assign Tasks
After connection, you can give instructions:
- "Create a dashboard called 'Production Health' with widgets for error rate, latency, and throughput."
- "Set up an alert: if error rate > 5% for 10 minutes, notify via Telegram."
- "Find the last 20 database errors in the logs and show the text of each."
Example of a real dialog (from a test session):
You: Connect New Relic. Key: NRAK-abc…
AI: OK, checking access. Connection established. Account: MyCompany (ID 12345).
You: Create a dashboard called 'Frontend Latency' with p50, p95, p99 charts for the last 6 hours.
AI: Dashboard created (ID: 67890). Here's the link: https://…
Concrete Use Cases
Case 1: Automatic Escalation on Performance Degradation
Initial situation: The support team spent 20 minutes finding the cause of high latency.
Solution: ASI Biont checks the duration metric from New Relic every 10 minutes. If p95 exceeds 1 second, the AI analyzes related logs and finds the slowest endpoint. Then it automatically creates a Jira task with an attached dashboard screenshot and error text.
Result: Incident response time reduced by 70%.
Case 2: Anomaly Detection via Logs
Task: Find recurring errors in the payment-gateway application logs over the last 24 hours.
Command: "New Relic, analyze the payment-gateway logs for today. Group errors by type and show the count of each."
The AI agent executes an NRQL query to New Relic: SELECT count(*) FROM Log WHERE appName='payment-gateway' AND level='ERROR' FACET message and returns a neat table with the top 5 errors.
Case 3: On-Demand Dashboards Without an Engineer
Manager's request: "Show me the response time graph for the last 7 days for the users service."
Without AI, you'd look for a responsible engineer. With ASI Biont, you simply tell the agent, and within a minute you get a link to a newly created dashboard.
Why Is It Beneficial?
| Factor | Without AI | With ASI Biont |
|---|---|---|
| Time to set up monitoring for a new service | 30–60 minutes of manual work | 1 minute of dialogue |
| Dashboard creation complexity | Requires knowledge of New Relic UI and NRQL | Just describe it in words |
| Log analysis during incidents | Search manually, write queries | Agent parses and groups it automatically |
| Alert maintenance | Change rules in console | Ask AI to update parameters |
All of this without a single line of code on your part. The AI itself writes the integration for each unique request, using the official New Relic API (documentation: docs.newrelic.com/docs/apis — confirmed support for REST and GraphQL).
ASI Biont Feature: Connect Any Service via API
It's important to understand: ASI Biont does not have a preset list of integrations. It connects to any service with an open API. This means you're not limited to popular tools—New Relic, Datadog, Grafana, custom developments. Just give the AI agent an API key and describe what needs to be done. It will write integration code tailored to the specific endpoint.
Conclusion
New Relic is a powerful observability tool, but its full potential is unlocked only when paired with automation. The ASI Biont AI agent replaces manual work related to dashboard setup, alert configuration, and log analysis. Connection takes a minute, and the result is hours saved every day.
Try it yourself: go to asibiont.com, open the chat, and connect your New Relic today. See for yourself that monitoring can be not just observable, but also intelligent.
Comments