Histogram for static file request duration

Tracks request execution time and counts static files managed by GAS.

Table 1. fourjs_gas_static_request_duration_seconds
Labels Value Purpose
No label Time of execution in seconds
  • Track time of execution for requests for static files managed by the GAS
  • Sum the total request time
  • Count the number of requests
  • Calculate the request execution time at the Xth percentile — the time below which X% of all requests completed.

This histogram is configured in the GAS configuration file (as.xcf) in the HISTOGRAM_BUCKETS element; for details about the bucket used to measure static-file response times, see the res.prometheus.rq_static_duration.buckets resource.

Metric example:
fourjs_gas_static_request_duration_seconds{le="0.005"} 1

Grafana

A PromQL query for percentile and average request duration is provided.
  • PromQL query (percentile):
    histogram_quantile(0.90, sum(rate(fourjs_gas_static_request_duration_seconds_bucket[$__rate_interval])) by (le))
    This query calculates the 90th percentile for static file requests.
  • PromQL query (rate):
    rate(fourjs_gas_static_request_duration_seconds_sum[5m]) /
          rate(fourjs_gas_static_request_duration_seconds_count[5m])
    This query calculates the average request duration rate for static files.