A gauge rises and falls with a current condition, such as queue depth or memory use. Read its current value when the question asks what is waiting now. Applying a counter rate to queue depth changes the question and handles decreases incorrectly.
Read the labels before you run the example. This workbench evaluates the final sample of a regularly spaced fixture, so its rates omit Prometheus scrape extrapolation. Compare the result with the underlying series, then change the service scope. The last request leaves the query construction to you; a hard-coded number won't survive the changed dataset.