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 timeFROM Metric SELECT rate(sum(nginx.requests), 1 minute)WHERE nginx.deployment.name = 'production-web-01'TIMESERIES
-- Check connection statesFROM 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 agoTroubleshoot data visibility
Next steps
Learn more about your data:
- NGINX OpenTelemetry metrics and attributes reference - Complete metrics reference with descriptions and examples
- Introduction to NRQL - Learn New Relic's query language for advanced data analysis
- Create NRQL alert conditions - Set up custom alerts based on your NGINX metrics
Setup guides:
- Monitor self-hosted NGINX with OpenTelemetry - Complete setup for on-host deployments
- Monitor NGINX on Kubernetes with OpenTelemetry - Complete setup for Kubernetes deployments