The Simplest Way to Make Looker and New Relic Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams use looker and new relic together to pair business charts with system health metrics. This setup lets engineers trace slow dashboard queries right back to database load spikes. Most companies run business reports on one side and system monitors on the other. When a big report stalls, nobody knows if the database or the app failed. Linking these two platforms gives both analysts and site builders the same clear view. You can spot heavy queries fast and fix the root cause before users compl

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

Teams use looker and new relic together to pair business charts with system health metrics. This setup lets engineers trace slow dashboard queries right back to database load spikes.

Most companies run business reports on one side and system monitors on the other. When a big report stalls, nobody knows if the database or the app failed. Linking these two platforms gives both analysts and site builders the same clear view. You can spot heavy queries fast and fix the root cause before users complain.

How looker and new relic share data and permissions

Data flows between looker and new relic through two main paths in production. In the first path, the monitoring agent watches the database that serves your charts. When an analyst runs a report, the platform adds user tags to the query. The database logs those tags along with the query text and the run time. The monitoring agent reads those logs and shows which report caused a load spike.

In the second path, teams pull system uptime data into their main data warehouse. Scheduled jobs export metric summaries from the monitor API and write them into tables. From there, business leaders view app uptime right next to daily sales numbers. Both paths need strict keys and narrow database roles to stay safe.

Each system must log in with its own scoped account and read-only rights. The analytics tool needs permission to read warehouse tables and write temp tables. The monitoring agent only needs permission to read system views and query stats. Keeping these roles separate stops one tool from changing data it should not touch.

Common failure modes and how to scope roles

The biggest risk in this setup is a shared admin account for all tools. Teams often reuse one broad database user to get dashboards working on a deadline. When every query runs under one name, your audit logs lose all value. You cannot tell if a slow query came from a person or a script. Worse, a leaked key from one platform gives an attacker full database control.

End-to-End Encryption + New Relic Security: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Broad API keys create another common gap between your analytics and monitoring teams. If an export job uses a master key, anyone who reads that script can edit alerts. You should create a read-only key that only pulls the metric tables you need. Store that key in a secret manager and rotate it on a set schedule.

Unlogged queries and raw personal data in logs also hurt security and speed. When an analyst filters a report by email, that value can end up in query logs. Masking rewrites matched fields like emails, phone numbers, card numbers, or national IDs in results. This step keeps sensitive user details out of your system monitors and trace logs.

Network paths and query limits

Good network rules keep traffic between your analytics host, database, and monitor clean. Place your database in a private subnet that blocks public web traffic by default. Allow inbound traffic only from the known IP addresses of your analytics and monitoring hosts. Set strict query timeouts on the analytics database role so bad joins stop fast. These limits keep one broken chart from locking up the database for everyone else.

Add runtime guardrails and masking beside your databases and APIs

Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.

Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.

Frequently asked questions

How do we trace a slow dashboard query in our system monitor?

Turn on query context comments in your analytics database settings. This feature adds user and model tags to every SQL query so your monitor can group load by report.

What database permissions should the analytics account have?

Give the analytics account read-only rights on the specific schemas it needs for reports. If it builds summary tables, grant write rights only on one dedicated scratch schema.

How do we keep sensitive data out of query performance logs?

Turn on query value stripping in your monitoring agent before it sends data out. You can also apply data masking so emails and card numbers are rewritten in results.

The query runs. The emails stay hidden.