Gauge for pending requests

Counts the number of pending requests for applications or services managed by GAS.

Table 1. fourjs_gas_request_pending_count
Labels Value Purpose
  1. application: name of the UA application (omitted if a service or not related to an app)
  2. service: name of the REST service (omitted if an application or not related to a service)
  3. url: URL prefix managed by the GAS
Number of pending requests Count the number of pending requests. Raise alerts if value gets too high.
Metric examples
fourjs_gas_request_pending_count{application="demo",url="/ua/r"} 0
fourjs_gas_request_pending_count{application="demo",url="/ua/sua"} 0
fourjs_gas_request_pending_count{service="demo/BookService",url="/ua/sua"} 0
fourjs_gas_request_pending_count{url="/metrics"} 1

Grafana

PromQL query:
fourjs_gas_request_pending_count{application="demo"}
This query calculates the pending requests for application demo.
Figure: Pending requests

Image of a Grafana panel showing zero pending requests for application 'demo'