뉴럴릭에서 NGINX 데이터를 확인하세요
설정이 완료되고 데이터가 흐르기 시작하면 뉴럴릭에서 NGINX 범위와 로그를 확인하고 사용자 지정 알림을 생성할 수 있습니다.
NRQL로 데이터 쿼리
NGINX 데이터를 분석하기 위해 사용자 지정 쿼리를 생성할 수 있습니다.
예시 쿼리:
-- 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 agoNRQL을 사용한 트레이스 데이터 쿼리
If you've enabled distributed tracing with ngx_otel_module, you can also query trace and span data:
-- NGINX spans by nameFROM Span SELECT count(*)WHERE nginx.deployment.name = 'production-web-01'FACET nameSINCE 1 hour ago
-- Distributed traces flowing through NGINX-- Shows all services participating in traces that include NGINXFROM 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 NGINXFROM Relationship SELECT *WHERE source.entityName = 'server:production-web-01' OR target.entityName = 'server:production-web-01'SINCE 1 day agoReplace 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).
데이터 가시성 문제 해결
다음 단계
데이터에 대해 자세히 알아보세요:
- NGINX distributed tracing - Enable
ngx_otel_modulefor distributed tracing and service relationships - NGINX OpenTelemetry 메트릭 및 속성 참조 - 설명과 예제를 포함한 전체 메트릭 참조
- NRQL소개 - 고급 데이터 분석을 위한 뉴렐릭의 쿼리 언어를 알아보세요.
- NRQL 공지 조건 생성 - NGINX 지표를 기반으로 사용자 정의 알림 설정
설치 가이드:
- OpenTelemetry사용하여 자체 호스팅 NGINX 모니터링 - 온호스트 구현에 대한 전체 설정, 배포
- OpenTelemetry사용하여 Kubernetes 에서 NGINX 모니터링 - Kubernetes 구현을 위한 전체 설정, 배포