`rate_counter()` takes an unwrapped range as input, but unlike `rate()`
it treats the values extracted from the log lines as "counter metric"
like in Prometheus' `rate()` function.
This is a replacement for the reverted change of #5013
Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
* [6372](https://github.com/grafana/loki/pull/6372) **splitice**: Add support for numbers in JSON fields
* [6105](https://github.com/grafana/loki/pull/6105) **rutgerke** Export metrics for the promtail journal target
* [6179](https://github.com/grafana/loki/pull/6179) **chaudum**: Add new HTTP endpoint to delete ingester ring token file and shutdown process gracefully
* [6099](https://github.com/grafana/loki/pull/6099/files) **cstyan**: Drop lines with malformed JSON in Promtail JSON pipeline stage
* [6136](https://github.com/grafana/loki/pull/6136) **periklis**: Add support for alertmanager header authorization
* [6102](https://github.com/grafana/loki/pull/6102) **timchenko-a**: Add multi-tenancy support to lambda-promtail
* [5971](https://github.com/grafana/loki/pull/5971) **kavirajk**: Record statistics about metadata queries such as labels and series queries in `metrics.go` as well
@ -87,6 +86,7 @@
#### Loki
##### Enhancements
* [6361](https://github.com/grafana/loki/pull/6361) **chaudum**: Add new unwrapped range aggregation `rate_counter()` to LogQL
@ -31,9 +31,15 @@ The output is incredibly verbose as it shows the entire internal config struct u
## Main / Unreleased
### Loki
#### Implementation of unwrapped `rate` aggregation changed
The implementation of the `rate()` aggregation function changed back to the previous implemention prior to [#5013](https://github.com/grafana/loki/pulls/5013).
This means that the rate per second is calculated based on the sum of the extracted values, instead of the average increase over time.
If you want the extracted values to be treated as [Counter](https://prometheus.io/docs/concepts/metric_types/#counter) metric, you should use the new `rate_counter()` aggregation function, which calculates the per-second average rate of increase of the vector.
#### Default value for `azure.container-name` changed
This value now defaults to `loki`, it was previously set to `cortex`. If you are relying on this container name for your chunks or ruler storage, you will have to manually specify `-azure.container-name=cortex` or `-ruler.storage.azure.container-name=cortex` respectively.
{`sum(count_over_time({foo="bar"}[5m])) by (foo,bar)`,[]int{SUM,OPEN_PARENTHESIS,COUNT_OVER_TIME,OPEN_PARENTHESIS,OPEN_BRACE,IDENTIFIER,EQ,STRING,CLOSE_BRACE,RANGE,CLOSE_PARENTHESIS,CLOSE_PARENTHESIS,BY,OPEN_PARENTHESIS,IDENTIFIER,COMMA,IDENTIFIER,CLOSE_PARENTHESIS}},