{
  "id": "prometheus-rate-increase-table",
  "kind": "table",
  "slug": "prometheus-rate-increase",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/prometheus-rate-increase/",
  "title": "PromQL rate(), irate() and increase() turn counters into per-second rates or totals",
  "columns": [
    "name",
    "source",
    "detail"
  ],
  "rows": [
    {
      "name": "rate(v range-vector)",
      "source": "Prometheus docs",
      "detail": "computes the per-second average rate of increase for each series in the range vector. Counter resets due to target restarts and other breaks in monotonicity are adjusted for automatically."
    },
    {
      "name": "rate",
      "source": "Prometheus docs",
      "detail": "also extrapolates to the ends of the time range, which allows for missed scrapes or imperfect alignment of scrape cycles with the range."
    },
    {
      "name": "irate(v range-vector)",
      "source": "Prometheus docs",
      "detail": "gives the per-second instant rate of increase, based on the last two data points, looking back up to the range for the two most recent samples."
    },
    {
      "name": "increase(v range-vector)",
      "source": "Prometheus docs",
      "detail": "is syntactic sugar for rate(v) multiplied by the number of seconds under the time range window."
    }
  ],
  "related_slugs": [
    "prometheus-promql-selectors",
    "kubernetes-horizontal-pod-autoscaling"
  ],
  "license": "CC-BY-4.0",
  "source_license": "Apache-2.0 (Prometheus docs); Apache-2.0 (prometheus/prometheus (GitHub)); prose restates cited source lines in own words",
  "as_of": "2026-11-18",
  "status": "fill-draft-20261118",
  "note": "Restated from the note's GREEN sources; check those sources before relying on a value."
}