Histogram for static file request duration
Tracks request execution time and counts static files managed by GAS.
| Labels | Value | Purpose |
|---|---|---|
| No label | Time of execution in seconds |
|
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):
This query calculates the 90th percentile for static file requests.histogram_quantile(0.90, sum(rate(fourjs_gas_static_request_duration_seconds_bucket[$__rate_interval])) by (le)) - PromQL query (rate):
This query calculates the average request duration rate for static files.rate(fourjs_gas_static_request_duration_seconds_sum[5m]) / rate(fourjs_gas_static_request_duration_seconds_count[5m])