I’ve installed the latest version of NGF with helm and all works fine.
Now I’ve attached prometheus to scrape metrics from 9113 gateway pod ports and grafana to plot data.
My question is
How can I create dashboard to see how many http 200 or 400 is processed?
Version of NGF and/or NGINX:
Latest
Deployment environment:
Azure AKS Cluster
1 Like
Great that you have NGF running with Prometheus scraping metrics from port 9113. To create a Grafana dashboard showing HTTP 200 and 400 responses, you’ll want to use the metrics exposed by the nginx-prometheus-exporter. This guide should help setting things up.
Key Metrics to Use:
NGF (using NGINX OSS) exposes metrics through the prometheus exporter.
However, note that NGINX OSS (which NGF uses by default) has limited metrics. The metrics include:
-
nginx_connections_active
-
nginx_connections_accepted
-
nginx_connections_handled
-
nginx_http_requests_total
Unfortunately, NGINX OSS does not natively expose per-status-code metrics (like 200, 400, etc.) through the module but there are ongoing discussions to make them available, so stay tuned. Hope this helps.
1 Like