Skip to content

Commit c29342d

Browse files
authored
Merge branch 'main' into docs/update-manifest-installation
2 parents c67604b + e95ea2b commit c29342d

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ The Ingress Controller exports the following metrics:
5050
* `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.
5151
* `controller_virtualserver_resources_total`. Number of handled VirtualServer resources.
5252
* `controller_virtualserverroute_resources_total`. Number of handled VirtualServerRoute resources. **Note**: The metric counts only VirtualServerRoutes that have a reference from a VirtualServer.
53+
* `location_zone` (upstream services) metrics:
54+
* `location_zone_sent`. Number of bytes sent to clients.
55+
* `location_zone_received`. Number of bytes received from clients.
56+
* `location_zone_requests`. Total number of client requests.
57+
* `location_zone_responses`. Total number of responses sent to clients.
58+
* `location_zone_responses_codes`. Total number of responses sent to clients.
59+
* `location_zone_sent`. Number of bytes sent to clients.
5360
* `controller_transportserver_resources_total`. Number of handled TransportServer resources. This metric includes the label type, that groups the TransportServer resources by their type (passthrough, tcp or udp).
5461
* Workqueue metrics. **Note**: the workqueue is a queue used by the Ingress Controller to process changes to the relevant resources in the cluster like Ingress resources. The Ingress Controller uses only one queue. The metrics for that queue will have the label `name="taskQueue"`
5562
* `workqueue_depth`. Current depth of the workqueue.

internal/configs/version1/nginx-plus.ingress.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ server {
179179
{{range $location := $server.Locations}}
180180
location {{$location.Path}} {
181181
set $service "{{$location.ServiceName}}";
182+
status_zone "{{ $location.ServiceName }}";
182183
{{with $location.MinionIngress}}
183184
# location for minion {{$location.MinionIngress.Namespace}}/{{$location.MinionIngress.Name}}
184185
set $resource_name "{{$location.MinionIngress.Name}}";

internal/configs/version2/nginx-plus.virtualserver.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ server {
337337
{{ range $l := $s.Locations }}
338338
location {{ $l.Path }} {
339339
set $service "{{ $l.ServiceName }}";
340+
status_zone "{{ $l.ServiceName }}";
340341
{{ if $l.IsVSR }}
341342
set $resource_type "virtualserverroute";
342343
set $resource_name "{{ $l.VSRName }}";

0 commit comments

Comments
 (0)