• /
  • EnglishEspañolFrançais日本語한국어Português
  • Inicia sesiónComenzar ahora

Find and query your NGINX data in New Relic

|View as Markdown (English)

View your NGINX data in New Relic

Once your setup is complete and data is flowing, you can view your NGINX metrics and logs in New Relic and create custom alerts.

Query your data with NRQL

You can create custom queries to analyze your NGINX data:

Example queries:

-- View request rate over time
FROM Metric SELECT rate(sum(nginx.requests), 1 minute)
WHERE nginx.deployment.name = 'production-web-01'
TIMESERIES
-- Check connection states
FROM Metric SELECT latest(nginx.connections_current)
WHERE nginx.deployment.name = 'production-web-01'
FACET state
-- Analyze log patterns (if log forwarding enabled)
FROM Log SELECT count(*)
WHERE nginx.deployment.name = 'production-web-01'
FACET status SINCE 1 hour ago

Query trace data with NRQL

If you've enabled distributed tracing with ngx_otel_module, you can also query trace and span data:

-- NGINX spans by name
FROM Span SELECT count(*)
WHERE nginx.deployment.name = 'production-web-01'
FACET name
SINCE 1 hour ago
-- Distributed traces flowing through NGINX
-- Shows all services participating in traces that include NGINX
FROM Span SELECT uniques(service.name)
WHERE trace.id IN (
SELECT uniques(trace.id) FROM Span
WHERE nginx.deployment.name = 'production-web-01'
SINCE 30 minutes ago LIMIT 10
)
SINCE 30 minutes ago
-- Service relationships involving NGINX
FROM Relationship SELECT *
WHERE source.entityName = 'server:production-web-01'
OR target.entityName = 'server:production-web-01'
SINCE 1 day ago

Replace production-web-01 with your nginx.deployment.name. The NGINX entity name defaults to server:<nginx.deployment.name> (set by the nginx.display.name transform in your collector config).

Troubleshoot data visibility

Next steps

Learn more about your data:

Setup guides:

Copyright © 2026 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.