Golden Signals in NGINX
Prerequisites
Configure the NGINX log
Step 1: Update the nginx.conf
nginx.conflog_format main '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" "$http_x_forwarded_for" '
'rt=$request_time '
'urt=$upstream_response_time '
'rlen=$request_length '
'conn=$connection conn_reqs=$connection_requests';
access_log /var/log/nginx/access.log main;Step 2: Restart NGINX
Start the NGINX log exporter
Option A: Docker Compose
Option B: Direct Docker
Configure Prometheus (alternative)
Integrate with the OpenTelemetry Collector (Better)
Basic example of configuration (otel-collector-config.yaml):
otel-collector-config.yaml):Access the metrics endpoint
Use the ready-made dashboard in Grafana
Included dashboards:
Dashboard
Metric
Path normalization
Summary
Step
Ddescription
Bonus: Coverage of the Golden Signals
Signal
Metric
Last updated
Was this helpful?

