How the Prometheus rate() function works
Prometheus and its querying language, PromQL, have several functions that perform various calculations on their data. One of the most widely used functions is rate(); however, it is also one of the most misunderstood.