You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add documentation for the new Prometheus counter metrics that track
NATS client reconnections across the gateway, operator and JetStream
queue-worker components.
Signed-off-by: Han Verstraete (OpenFaaS Ltd) <han@openfaas.com>
|`http_requests_total`| counter | The total number of HTTP requests |`method`, `path`, `status`| Pro Edition |
52
52
|`http_requests_total`| counter | The total number of HTTP requests |`method`, `path`, `status`| Pro Edition |
53
+
|`gateway_nats_reconnect_total`| counter | Total number of times the NATS client has reconnected || Pro Edition |
53
54
54
55
The `http_request*` metrics record the latency and statistics of `/system/*` routes to monitor the OpenFaaS gateway and its provider. The `/async-function` route is also recorded in these metrics to observe asynchronous ingestion rate and latency.
55
56
@@ -60,6 +61,7 @@ Additional metrics from the Operator:
60
61
|`faasnetes_scale_total`| counter | Number of times a function has been scaled (ignoring requests where current and desired replicas are equal) |`function_name`, `status`| Pro Edition |
61
62
|`faasnetes_sync_handler_gauge`| gauge | Number of reconciliation functions running at given time |`status`| Pro Edition |
62
63
|`faasnetes_sync_handler_histogram`| histogram | Time taken to reconcile function Custom Resources into Kubernetes objects |`status`| Pro Edition |
64
+
|`faasnetes_nats_reconnect_total`| counter | Total number of times the NATS client has reconnected || Pro Edition |
63
65
64
66
The `faasnetes_scale_total` metric is useful for tracking the number of times a function has been scaled up or down. The `faasnetes_sync_handler_gauge` and `faasnetes_sync_handler_histogram` metrics are useful for tracking the amount of time spent reconciling function Custom Resources into Kubernetes objects in large deployments of OpenFaaS.
65
67
@@ -82,6 +84,7 @@ The queue-worker for NATS JetStream exposes metrics to help you get insight in t
82
84
|`queue_worker_messages_processed_total`| counter | Total number of messages processed |`queue_name`, `kubernetes_pod_name`| Pro Edition |
83
85
|`queue_worker_messages_submitted_total`| gauge | Total number of messages submitted to the queue by the gateway |`queue_name`, `kubernetes_pod_name`| Pro Edition |
84
86
|`queue_worker_function_invocation_inflight`| gauge | Total number of inflight function requests made by the queue-worker |`queue_name`, `function_name`| Pro Edition |
87
+
|`queue_worker_nats_reconnect_total`| counter | Total number of times the NATS client has reconnected || Pro Edition |
0 commit comments