8000 Fix prometheus metrics doc · nginx/kubernetes-ingress@d56737b · GitHub
[go: up one dir, main page]

Skip to content

Commit d56737b

Browse files
committed
Fix prometheus metrics doc
1 parent 6984981 commit d56737b

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

docs-web/logging-and-monitoring/prometheus.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,22 @@ The Ingress Controller exports the following metrics:
2727
* Exported by NGINX/NGINX Plus. Refer to the [NGINX Prometheus Exporter developer docs](https://github.com/nginxinc/nginx-prometheus-exporter#exported-metrics) to find more information about the exported metrics.
2828
* There is a Grafana dashboard for NGINX Plus metrics located in the root repo folder.
2929
* Calculated by the Ingress Controller:
30-
* `controller_upstream_server_response_latency_ms_count`. Bucketed response times from when NGINX establishes a connection to an upstream server to when the last byte of the response body is received by NGINX. **Note**: The metric for the upstream isn't available until traffic is sent to the upstream. The metric isn't enabled by default. To enable the metric, set the `-enable-latency-metrics` command-line argument.
30+
* `upstream_server_response_latency_ms_count`. Bucketed response times from when NGINX establishes a connection to an upstream server to when the last byte of the response body is received by NGINX. **Note**: The metric for the upstream isn't available until traffic is sent to the upstream. The metric isn't enabled by default. To enable the metric, set the `-enable-latency-metrics` command-line argument.
3131
* Ingress Controller metrics
32-
* `controller_nginx_reloads_total`. Number of successful NGINX reloads. This includes the label `reason` with 2 possible values `endpoints` (the reason for the reload was an endpoints update) and `other` (the reload was caused by something other than an endpoint update like an ingress update).
33-
* `controller_nginx_reload_errors_total`. Number of unsuccessful NGINX reloads.
34-
* `controller_nginx_last_reload_status`. Status of the last NGINX reload, 0 meaning down and 1 up.
35-
* `controller_nginx_last_reload_milliseconds`. Duration in milliseconds of the last NGINX reload.
36-
* `controller_nginx_worker_processes_total`. Number of NGINX worker processes. This metric includes the constant label `generation` with two possible values `old` (the shutting down processes of the old generations) or `current` (the processes of the current generation).
37-
* `controller_ingress_resources_total`. Number of handled Ingress resources. This metric includes the label type, that groups the Ingress resources by their type (regular, [minion or master](/nginx-ingress-controller/configuration/ingress-resources/cross-namespace-configuration)). **Note**: The metric doesn't count minions without a master.
38-
* `controller_virtualserver_resources_total`. Number of handled VirtualServer resources.
39-
* `controller_virtualserverroute_resources_total`. Number of handled VirtualServerRoute resources. **Note**: The metric counts only VirtualServerRoutes that have a reference from a VirtualServer.
32+
* `nginx_reloads_total`. Number of successful NGINX reloads. This includes the label `reason` with 2 possible values `endpoints` (the reason for the reload was an endpoints update) and `other` (the reload was caused by something other than an endpoint update like an ingress update).
33+
* `nginx_reload_errors_total`. Number of unsuccessful NGINX reloads.
34+
* `nginx_last_reload_status`. Status of the last NGINX reload, 0 meaning down and 1 up.
35+
* `nginx_last_reload_milliseconds`. Duration in milliseconds of the last NGINX reload.
36+
* `nginx_worker_processes_total`. Number of NGINX worker processes. This metric includes the constant label `generation` with two possible values `old` (the shutting down processes of the old generations) or `current` (the processes of the current generation).
37+
* `ingress_resources_total`. Number of handled Ingress resources. This metric includes the label type, that groups the Ingress resources by their type (regular, [minion or master](/nginx-ingress-controller/configuration/ingress-resources/cross-namespace-configuration)). **Note**: The metric doesn't count minions without a master.
38+
* `virtualserver_resources_total`. Number of handled VirtualServer resources.
39+
* `virtualserverroute_resources_total`. Number of handled VirtualServerRoute resources. **Note**: The metric counts only VirtualServerRoutes that have a reference from a VirtualServer.
4040
* Kubernetes Cluster metrics
41-
* `controller_workqueue_depth` Current depth of workqueue.
42-
* `controller_workqueue_queue_duration_second`. How long in seconds an item stays in workqueue before being requested.
43-
* `controller_workqueue_work_duration_seconds`. How long in seconds processing an item from workqueue takes.
41+
* `workqueue_depth` Current depth of workqueue.
42+
* `workqueue_queue_duration_second`. How long in seconds an item stays in workqueue before being requested.
43+
* `workqueue_work_duration_seconds`. How long in seconds processing an item from workqueue takes.
4444

4545

46-
**Note**: all metrics have the namespace nginx_ingress. For example, nginx_ingress_controller_nginx_reloads_total.
46+
**Note**: all metrics have the namespace `nginx_ingress_controller`. For example, `nginx_ingress_controller_nginx_reloads_total`.
4747

4848
**Note**: all metrics include the label `class`, which is set to the class of the Ingress Controller. The class is configured via the `-ingress-class` command-line argument.

0 commit comments

Comments
 (0)
0