Skip to main content

Data and monitoring · Intermediate · 22 min

Write PromQL for request rates, errors and latency

By Padding · Updated 18 Nov 2026
Ubuntu 26.04 · Prometheus 3.16.0 (promtool)

You will write the PromQL queries for a service's request rate, error ratio and p95 latency, plus week-on-week and missing-data checks, and prove every one with promtool unit tests over synthetic data.

On this page

Three numbers describe how a request-serving service is doing: how many requests it handles (rate), how many of those fail (errors) and how long they take (duration). This is the RED method. Each one is a short PromQL query, and each has a well-known way to get it subtly wrong: a rate that hides spikes or invents them, an error ratio that vanishes for healthy routes, a p95 that is really an average of averages.

Instead of trusting a dashboard that "looks about right", you will test each query. promtool, the checking tool that ships with Prometheus, can load synthetic series you write by hand, run a query at a chosen moment and compare the result with the number you expect. Because you choose the input, you can work out the right answer on paper first. Every query in this tutorial comes with a test that passes, so you can see exactly what each function does.

The examples use a made-up shop service with two routes, /checkout and /search, two instances and the metric names a typical client library produces: http_requests_total (a counter with route and status labels) and http_request_duration_seconds_bucket (a histogram). If your app exports different names, the queries change only in the names. To produce these metrics from your own code, see instrument a Python app with Prometheus metrics.

Step 1 · Get promtool

If you followed the Prometheus and Node Exporter tutorial, promtool is already in /usr/local/bin; use that and skip the download, but still create the work folder below. Otherwise, download the Prometheus 3.16.0 release and take only promtool out of it. It is a single program that needs no service or configuration:

Bash
sudo apt update
sudo apt install -y curl ca-certificates tar
mkdir -p ~/promql-demo
cd ~/promql-demo
PROM_VERSION=3.16.0
ARCH="$(dpkg --print-architecture)"
BASE="https://github.com/prometheus/prometheus/releases/download/v${PROM_VERSION}"
curl -fsSLO "${BASE}/prometheus-${PROM_VERSION}.linux-${ARCH}.tar.gz"
curl -fsSL -o sha256sums.txt "${BASE}/sha256sums.txt"
sha256sum --ignore-missing -c sha256sums.txt
tar -xzf "prometheus-${PROM_VERSION}.linux-${ARCH}.tar.gz" --strip-components=1 "prometheus-${PROM_VERSION}.linux-${ARCH}/promtool"
rm "prometheus-${PROM_VERSION}.linux-${ARCH}.tar.gz" sha256sums.txt
./promtool --version | head -n 1

The archive holds the whole Prometheus server, so it is the largest download in this tutorial. On metered or prepaid data, download it once and copy the promtool file to other machines of the same architecture. This copy gets no updates from apt; to upgrade, repeat the block with a newer PROM_VERSION from the releases page.

If you use the copy from /usr/local/bin, type promtool wherever this tutorial types ./promtool.

Check it worked

The checksum line ends in OK and the last line starts with promtool, version 3.16.0. ls ~/promql-demo shows one file, promtool.

Step 2 · Measure request rate with rate(), not irate()

A counter such as http_requests_total only goes up: it counts every request since the process started. Its raw value is not useful on a graph. rate(counter[5m]) turns it into "requests per second, averaged over the last five minutes". It also copes with restarts: when a process restarts, its counter drops back to zero, and rate() treats the drop as a reset instead of negative traffic.

irate() looks similar but uses only the last two samples in the window. It reacts instantly, which is nice when you are watching a graph live, and bad for alerts and dashboards you read later: a single burst between two scrapes makes it jump, and the next scrape makes it forget. An alert on irate() flips on and off with each scrape.

Write a test file with three series, one sample a minute (interval: 1m). In the values, 0+60x30 means "start at 0 and add 60, 30 times", so that counter grows by 60 a minute, one request a second:

Bash
cd ~/promql-demo
cat > rates_test.yml <<'YAML'
tests:
  - name: rate and irate
    interval: 1m
    input_series:
      # Steady traffic: 60 requests a minute.
      - series: 'http_requests_total{job="shop", instance="a", route="/checkout", status="200"}'
        values: '0+60x30'
      # Same traffic, but the process restarts at minute 11 and the counter starts again.
      - series: 'http_requests_total{job="shop", instance="b", route="/checkout", status="200"}'
        values: '0+60x10 60+60x20'
      # Steady traffic with a burst of 600 extra requests in minute 10.
      - series: 'http_requests_total{job="shop", instance="c", route="/search", status="200"}'
        values: '0+60x9 1140 1200+60x20'
    promql_expr_test:
      - expr: rate(http_requests_total{instance="a"}[5m])
        eval_time: 10m
        exp_samples:
          - labels: '{job="shop", instance="a", route="/checkout", status="200"}'
            value: 1
      # rate() handles the restart: still one request a second.
      - expr: rate(http_requests_total{instance="b"}[5m])
        eval_time: 13m
        exp_samples:
          - labels: '{job="shop", instance="b", route="/checkout", status="200"}'
            value: 1
      # Subtracting raw counter values does not: it reports -300 requests.
      - expr: http_requests_total{instance="b"} - http_requests_total{instance="b"} offset 5m
        eval_time: 13m
        exp_samples:
          - labels: '{job="shop", instance="b", route="/checkout", status="200"}'
            value: -300
      # Right after the burst: irate() jumps to 10, rate() spreads it to 3.25.
      - expr: irate(http_requests_total{instance="c"}[5m])
        eval_time: 10m
        exp_samples:
          - labels: '{job="shop", instance="c", route="/search", status="200"}'
            value: 10
      - expr: rate(http_requests_total{instance="c"}[5m])
        eval_time: 10m
        exp_samples:
          - labels: '{job="shop", instance="c", route="/search", status="200"}'
            value: 3.25
      # Two minutes later irate() has forgotten the burst; rate() still shows it.
      - expr: irate(http_requests_total{instance="c"}[5m])
        eval_time: 12m
        exp_samples:
          - labels: '{job="shop", instance="c", route="/search", status="200"}'
            value: 1
      - expr: rate(http_requests_total{instance="c"}[5m])
        eval_time: 12m
        exp_samples:
          - labels: '{job="shop", instance="c", route="/search", status="200"}'
            value: 3.25
      # Once the burst is older than five minutes, rate() is back to 1.
      - expr: rate(http_requests_total{instance="c"}[5m])
        eval_time: 16m
        exp_samples:
          - labels: '{job="shop", instance="c", route="/search", status="200"}'
            value: 1
YAML
./promtool test rules rates_test.yml

Where 3.25 comes from: the five-minute window ending at minute 10 holds the samples at minutes 6 to 10. They grow by 780 over four minutes (60 + 60 + 60 + 600). Prometheus scales that up to the full five-minute window, 975 requests, and divides by 300 seconds. The result is not "exactly what happened", it is a smoothed estimate, and that smoothing is what you want under an alert.

Choose the window so it holds at least four scrapes. With a 15-second scrape interval, [1m] works; [5m] is a calmer default for alerts.

Check it worked

promtool prints Unit Testing: rates_test.yml and then SUCCESS. Now prove the test can fail. Copy the file with one wrong expectation and run it:

Bash
cd ~/promql-demo
sed 's/value: 3.25/value: 3/' rates_test.yml > broken_test.yml
if ./promtool test rules broken_test.yml; then echo "unexpected pass"; false; else echo "promtool caught the wrong value"; fi
rm broken_test.yml

You see FAILED, an exp line ending in your wrong value, 3E+00, a got line ending in the real one, 3.25E+00 (promtool prints sample values in E notation), and then promtool caught the wrong value.

Step 3 · Add up rates by route

A real service has many series per route: one per instance, per status code and per method. To see traffic per route, compute the rate of each series first, then add them up with sum by (route). The order matters. rate() must see each counter on its own so it can spot each instance's restarts; summing raw counters first would turn one instance's restart into a dip for the whole route. PromQL enforces part of this: rate(sum(...)) is not even valid, because rate() needs a range of samples.

by (route) keeps only the route label. by (route, status) keeps both, and sum by (job) gives the whole service.

Bash
cd ~/promql-demo
cat > traffic_test.yml <<'YAML'
tests:
  - name: traffic by route
    interval: 1m
    input_series:
      # Per instance: /checkout serves 3 good and 1 failed request a second, /search 2 good.
      - series: 'http_requests_total{job="shop", instance="a", route="/checkout", status="200"}'
        values: '0+180x20'
      - series: 'http_requests_total{job="shop", instance="a", route="/checkout", status="500"}'
        values: '0+60x20'
      - series: 'http_requests_total{job="shop", instance="b", route="/checkout", status="200"}'
        values: '0+180x20'
      - series: 'http_requests_total{job="shop", instance="b", route="/checkout", status="500"}'
        values: '0+60x20'
      - series: 'http_requests_total{job="shop", instance="a", route="/search", status="200"}'
        values: '0+120x20'
      - series: 'http_requests_total{job="shop", instance="b", route="/search", status="200"}'
        values: '0+120x20'
    promql_expr_test:
      - expr: sum by (route) (rate(http_requests_total[5m]))
        eval_time: 10m
        exp_samples:
          - labels: '{route="/checkout"}'
            value: 8
          - labels: '{route="/search"}'
            value: 4
      - expr: sum by (route, status) (rate(http_requests_total[5m]))
        eval_time: 10m
        exp_samples:
          - labels: '{route="/checkout", status="200"}'
            value: 6
          - labels: '{route="/checkout", status="500"}'
            value: 2
          - labels: '{route="/search", status="200"}'
            value: 4
      - expr: sum by (job) (rate(http_requests_total[5m]))
        eval_time: 10m
        exp_samples:
          - labels: '{job="shop"}'
            value: 12
YAML
./promtool test rules traffic_test.yml

Check it worked

The output ends in SUCCESS. The numbers match the comments: /checkout is 2 instances × (3 + 1) = 8 requests a second, /search is 2 × 2 = 4, and the job serves 12. If one of your own expectations is wrong, the got line shows the real value.

Step 4 · Turn errors into a ratio

A count of errors is hard to judge: 2 failures a second is terrible at 3 requests a second and fine at 3,000. Divide the rate of failed requests by the rate of all requests to get a ratio between 0 and 1. Here a failure is any 5xx status, which the regular expression status=~"5.." matches.

When you divide two results, PromQL pairs up series with the same labels. Both sides are summed by (route), so the pairs are per route. That has a catch: a route with no errors at all has no 5xx series, so it has nothing to pair with and disappears from the result. A dashboard then shows a gap instead of 0%, and "no data" looks the same as "no traffic". The second query fills the gap: or adds a zero for every route that has traffic but no errors.

Bash
cd ~/promql-demo
cat > errors_test.yml <<'YAML'
tests:
  - name: error ratio by route
    interval: 1m
    input_series:
      - series: 'http_requests_total{job="shop", instance="a", route="/checkout", status="200"}'
        values: '0+180x20'
      - series: 'http_requests_total{job="shop", instance="a", route="/checkout", status="500"}'
        values: '0+60x20'
      - series: 'http_requests_total{job="shop", instance="b", route="/checkout", status="200"}'
        values: '0+180x20'
      - series: 'http_requests_total{job="shop", instance="b", route="/checkout", status="500"}'
        values: '0+60x20'
      - series: 'http_requests_total{job="shop", instance="a", route="/search", status="200"}'
        values: '0+120x20'
      - series: 'http_requests_total{job="shop", instance="b", route="/search", status="200"}'
        values: '0+120x20'
    promql_expr_test:
      # /search has no 5xx series, so it is missing from the result.
      - expr: |
          sum by (route) (rate(http_requests_total{status=~"5.."}[5m]))
          /
          sum by (route) (rate(http_requests_total[5m]))
        eval_time: 10m
        exp_samples:
          - labels: '{route="/checkout"}'
            value: 0.25
      # With a zero filled in for routes that have traffic but no errors.
      - expr: |
          (
            sum by (route) (rate(http_requests_total{status=~"5.."}[5m]))
            or
            sum by (route) (rate(http_requests_total[5m])) * 0
          )
          /
          sum by (route) (rate(http_requests_total[5m]))
        eval_time: 10m
        exp_samples:
          - labels: '{route="/checkout"}'
            value: 0.25
          - labels: '{route="/search"}'
            value: 0
YAML
./promtool test rules errors_test.yml

Multiply by 100 if you want a percentage on a dashboard. A route with no traffic at all in the window divides 0 by 0 and returns NaN; that is honest, because the error ratio of no requests is undefined.

Check it worked

The output ends in SUCCESS: /checkout fails 2 of its 8 requests a second, a ratio of 0.25, and /search appears with 0 only in the second query.

Step 5 · Read p95 latency from a histogram

A histogram counts requests into buckets by duration. Each bucket series has an le label ("less than or equal to") and counts every request at or below that bound, so the counts grow from the smallest bucket up to le="+Inf", which counts everything. histogram_quantile(0.95, ...) finds the bucket where the 95th request in every 100 falls, and estimates a value inside it by assuming requests are spread evenly across the bucket. Its accuracy depends on your bucket bounds, so put bounds near the latencies you care about.

The query has the same shape as before: rate() per bucket series, sum by (route, le), then the quantile. Keep le in the by clause, or there are no buckets left to work with.

The common mistake is computing p95 per instance and then averaging. Averages of percentiles do not give a percentile: an instance serving 20 requests a second gets the same weight as one serving 80. Below, the /search route has a fast, busy instance a and a slow, quiet instance b. The bucket bounds are 0.125, 0.25, 0.5 and 1 second:

Bash
cd ~/promql-demo
cat > latency_test.yml <<'YAML'
# Accept a difference in the last digit: the quantile maths leaves rounding noise.
fuzzy_compare: true
tests:
  - name: p95 latency
    interval: 1m
    input_series:
      # /checkout, instance a: 20 requests a second.
      - series: 'http_request_duration_seconds_bucket{job="shop", instance="a", route="/checkout", le="0.125"}'
        values: '0+600x20'
      - series: 'http_request_duration_seconds_bucket{job="shop", instance="a", route="/checkout", le="0.25"}'
        values: '0+960x20'
      - series: 'http_request_duration_seconds_bucket{job="shop", instance="a", route="/checkout", le="0.5"}'
        values: '0+960x20'
      - series: 'http_request_duration_seconds_bucket{job="shop", instance="a", route="/checkout", le="1"}'
        values: '0+1200x20'
      - series: 'http_request_duration_seconds_bucket{job="shop", instance="a", route="/checkout", le="+Inf"}'
        values: '0+1200x20'
      # /search, instance a: 80 requests a second, all under 0.25 s.
      - series: 'http_request_duration_seconds_bucket{job="shop", instance="a", route="/search", le="0.125"}'
        values: '0+3840x20'
      - series: 'http_request_duration_seconds_bucket{job="shop", instance="a", route="/search", le="0.25"}'
        values: '0+4800x20'
      - series: 'http_request_duration_seconds_bucket{job="shop", instance="a", route="/search", le="0.5"}'
        values: '0+4800x20'
      - series: 'http_request_duration_seconds_bucket{job="shop", instance="a", route="/search", le="1"}'
        values: '0+4800x20'
      - series: 'http_request_duration_seconds_bucket{job="shop", instance="a", route="/search", le="+Inf"}'
        values: '0+4800x20'
      # /search, instance b: 20 requests a second, all slower than 0.25 s.
      - series: 'http_request_duration_seconds_bucket{job="shop", instance="b", route="/search", le="0.125"}'
        values: '0x20'
      - series: 'http_request_duration_seconds_bucket{job="shop", instance="b", route="/search", le="0.25"}'
        values: '0x20'
      - series: 'http_request_duration_seconds_bucket{job="shop", instance="b", route="/search", le="0.5"}'
        values: '0+960x20'
      - series: 'http_request_duration_seconds_bucket{job="shop", instance="b", route="/search", le="1"}'
        values: '0+1200x20'
      - series: 'http_request_duration_seconds_bucket{job="shop", instance="b", route="/search", le="+Inf"}'
        values: '0+1200x20'
    promql_expr_test:
      # Right: add up the buckets of all instances, then take the quantile.
      - expr: histogram_quantile(0.95, sum by (route, le) (rate(http_request_duration_seconds_bucket[5m])))
        eval_time: 10m
        exp_samples:
          - labels: '{route="/checkout"}'
            value: 0.875
          - labels: '{route="/search"}'
            value: 0.484375
      # p95 per instance.
      - expr: histogram_quantile(0.95, sum by (instance, route, le) (rate(http_request_duration_seconds_bucket[5m])))
        eval_time: 10m
        exp_samples:
          - labels: '{instance="a", route="/checkout"}'
            value: 0.875
          - labels: '{instance="a", route="/search"}'
            value: 0.21875
          - labels: '{instance="b", route="/search"}'
            value: 0.875
      # Wrong: the average of the two /search p95 values is not the route's p95.
      - expr: avg by (route) (histogram_quantile(0.95, sum by (instance, route, le) (rate(http_request_duration_seconds_bucket[5m]))))
        eval_time: 10m
        exp_samples:
          - labels: '{route="/checkout"}'
            value: 0.875
          - labels: '{route="/search"}'
            value: 0.546875
YAML
./promtool test rules latency_test.yml

fuzzy_compare: true at the top of the file tells promtool to accept a value that differs from the expected one by the smallest step a floating-point number can take. Without it, the test fails on results such as 8.749999999999999E-01 where you expect 0.875, because 0.95 has no exact binary form and the rate and interpolation steps leave rounding noise. The tolerance is that one step only, so a real mistake still fails the test.

Work the /search answer through once. Together the instances serve 100 requests a second: 64 under 0.125 s, 80 under 0.25 s, 96 under 0.5 s and all 100 under 1 s. The 95th request falls in the 0.25 to 0.5 s bucket, which holds requests 81 to 96. It is the 15th of those 16, so the estimate is 0.25 + 0.25 × 15/16 = 0.484375 s. The average of the per-instance values, 0.546875 s, is about 60 ms too high, because it gives the quiet slow instance as much weight as the busy fast one. With other traffic it can just as easily be too low.

Latency percentiles matter most for people on slow connections. If many of your users are on mobile data or entry-level Android phones, p95 and p99 per route show the slow tail they live in, which an average hides.

Check it worked

The output ends in SUCCESS, and the three tests confirm 0.484375 for the route's real p95, 0.21875 and 0.875 for the two instances, and 0.546875 for their misleading average.

Step 6 · Compare with last week using offset

"Is this normal?" is easier to answer against the same time last week, which has the same daily and weekly rhythm. The offset modifier moves a selector back in time, so rate(http_requests_total[5m] offset 1w) is the rate exactly one week before the moment you evaluate. Dividing now by then gives a ratio: 1 is unchanged, 2 is double.

The test needs a week of history. The first part of the values is a week of minutes at 30 requests a minute (10,080 samples), then traffic doubles to 60 a minute:

Bash
cd ~/promql-demo
cat > week_test.yml <<'YAML'
tests:
  - name: week on week
    interval: 1m
    input_series:
      - series: 'http_requests_total{job="shop", instance="a", route="/checkout", status="200"}'
        values: '0+30x10079 302400+60x30'
    promql_expr_test:
      - expr: sum by (job) (rate(http_requests_total[5m]))
        eval_time: 7d20m
        exp_samples:
          - labels: '{job="shop"}'
            value: 1
      - expr: sum by (job) (rate(http_requests_total[5m] offset 1w))
        eval_time: 7d20m
        exp_samples:
          - labels: '{job="shop"}'
            value: 0.5
      - expr: |
          sum by (job) (rate(http_requests_total[5m]))
          /
          sum by (job) (rate(http_requests_total[5m] offset 1w))
        eval_time: 7d20m
        exp_samples:
          - labels: '{job="shop"}'
            value: 2
YAML
./promtool test rules week_test.yml

offset needs data that old, so keep at least eight days of retention if you compare week on week; the default retention is 15 days. Compare at the same level of aggregation on both sides, as here with sum by (job), or the labels will not pair up.

Check it worked

The output ends in SUCCESS: one request a second now, half a request a second a week earlier, and a ratio of 2.

Step 7 · Catch a down or missing target

Every query so far has a blind spot. If the app stops answering scrapes, its own series stop. rate() over no samples returns nothing, the error ratio returns nothing, and an alert such as "error ratio above 5%" stays quiet, because nothing is above 5%. Silence looks like health.

There are two different ways to lose a service, and they need two different checks:

  • The target is down. The app crashed, the machine is off, or a firewall rule blocks the port, but the target is still in Prometheus's configuration. Prometheus keeps trying to scrape it and records every attempt in a series called up: 1 for a successful scrape, 0 for a failed one. So up does not disappear; it turns to 0. The check is up{job="shop"} == 0, which returns one series for each instance that failed its last scrape.
  • The target has disappeared. Someone removed it from the configuration, or service discovery stopped listing it. Now Prometheus no longer scrapes it at all, so it no longer writes up for it either. The check is absent(up{job="shop"}).

absent(selector) returns a single series with the value 1 when the selector matches nothing, and nothing when it matches. It takes its labels from the = matchers in the selector, so the result says which job went missing. A third check, absent(http_requests_total{job="shop"}), catches the case where scrapes succeed but the app's own metrics have vanished, for example after a release that renamed them.

Two test groups cover both cases. In the first, scrapes of instance a start failing at minute 11, so up turns to 0 and the request counter stops. In the second, the target is removed after minute 10, so up stops as well:

Bash
cd ~/promql-demo
cat > absent_test.yml <<'YAML'
tests:
  - name: target down
    interval: 1m
    input_series:
      - series: 'up{job="shop", instance="a"}'
        values: '1x10 0x10'
      - series: 'http_requests_total{job="shop", instance="a", route="/checkout", status="200"}'
        values: '0+60x10'
    promql_expr_test:
      # While scrapes succeed, nothing is down.
      - expr: up{job="shop"} == 0
        eval_time: 5m
        exp_samples: []
      # Failed scrapes write up=0, so the down check fires.
      - expr: up{job="shop"} == 0
        eval_time: 15m
        exp_samples:
          - labels: 'up{job="shop", instance="a"}'
            value: 0
      # up is still there, so absent(up) stays silent for a down target.
      - expr: absent(up{job="shop"})
        eval_time: 15m
        exp_samples: []
      # The app's own metrics have gone, and absent() on them notices.
      - expr: absent(http_requests_total{job="shop"})
        eval_time: 20m
        exp_samples:
          - labels: '{job="shop"}'
            value: 1
      # And the rate query has silently gone empty.
      - expr: sum by (route) (rate(http_requests_total{job="shop"}[5m]))
        eval_time: 20m
        exp_samples: []

  - name: target removed
    interval: 1m
    input_series:
      - series: 'up{job="shop", instance="a"}'
        values: '1x10'
    promql_expr_test:
      # While the target is configured, absent() returns nothing.
      - expr: absent(up{job="shop"})
        eval_time: 5m
        exp_samples: []
      # Once up itself has stopped, absent() returns 1 with the job label.
      - expr: absent(up{job="shop"})
        eval_time: 20m
        exp_samples:
          - labels: '{job="shop"}'
            value: 1
YAML
./promtool test rules absent_test.yml

exp_samples: [] is how you assert that a query returns nothing. The evaluation times leave a gap on purpose. Synthetic test series carry no staleness markers, so promtool keeps using a series' last sample for up to five minutes (the default lookback) before treating it as gone. A real server is quicker: when a scrape fails or a target is removed, Prometheus writes a staleness marker, and the series drops out of instant queries at the next evaluation.

Pair every alert on rates or ratios with an up == 0 alert and an absent(up{...}) alert for the same job, so a service that is down or missing is reported as such instead of passing as healthy. On a phone with prepaid data, a short alert such as "shop instance a is down" is cheaper to receive and quicker to act on than a link to a dashboard.

Check it worked

The output ends in SUCCESS (promtool prints nothing else when every test passes). The first group's tests confirm that up == 0 returns up{instance="a", job="shop"} 0 once scrapes fail, that absent(up) stays empty for that down target, and that absent(http_requests_total) and the empty rate query show the app's own metrics are gone. The second group confirms that absent(up{job="shop"}) returns {job="shop"} 1 only after the target has been removed.

Step 8 · Run the whole suite and use it on real data

Run every test file in one command. Keep these files next to your dashboards and alerts, and run them after any change to a query:

Bash
cd ~/promql-demo
./promtool test rules rates_test.yml traffic_test.yml errors_test.yml latency_test.yml week_test.yml absent_test.yml

To try a query against your own Prometheus server, paste it into the query page at http://127.0.0.1:9090/query, or run it from the command line with promtool query instant. Your numbers will be your service's own:

Bash
./promtool query instant http://127.0.0.1:9090 'sum by (route) (rate(http_requests_total[5m]))'

When you are done, remove the work folder. This deletes the downloaded promtool and the test files, so copy any you want to keep first:

Bash
rm -rf ~/promql-demo

Check it worked

The suite prints SUCCESS six times, once per file. After the last command, ls ~/promql-demo reports that there is no such file or directory.

Next steps

Need this done for you?

Padding does this work for growing companies, from the first diagnosis to a system that keeps working.

Platform Engineering

Get new tutorials

New tutorials, about twice a month.