Counter for requests processed

Counts the number of requests processed by GAS, grouped by application, service, status, URL, and HTTP verb.

Table 1. fourjs_gas_url_count_total
Labels Value Purpose
  1. application: name of the application (omitted if a service)
  2. service: name of the service (omitted if an application)
  3. status: HTTP status code
  4. url: URL prefix managed by the GAS
  5. verb: HTTP verb (GET, POST, PUT, and so on)
Number of requests processed
  • Count the number of requests per URL and get the status code
  • Detect errors based on the status
  • Detect the number of applications or services started by filtering on URL
Metric examples
fourjs_gas_url_count_total{application="demo",url="/ua/r",status="200",verb="GET"} 4
fourjs_gas_url_count_total{application="demo",url="/ua/sua",status="404",verb="GET"} 2

Grafana

PromQL query to calculate application request failure rate is provided:
count(fourjs_gas_url_count_total{application!="",url="/ua/r",status!="200"}) /
 count(fourjs_gas_url_count_total{application!="",url="/ua/r"}) * 100
This query calculates the application request failure rate.
Figure: Application start up failure

Image of a Grafana panel showing no application start-up failures