-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add unwrapped aggregation rate_counter()
#6412
Conversation
`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 <[email protected]>
@@ -9,7 +9,6 @@ | |||
* [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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicate changlog entry (line 5)
./tools/diff_coverage.sh ../loki-main/test_results.txt test_results.txt ingester,distributor,querier,querier/queryrange,iter,storage,chunkenc,logql,loki Change in test coverage per package. Green indicates 0 or positive change, red indicates that test coverage for a package fell. + ingester 0%
+ distributor 0%
+ querier 0%
- querier/queryrange -0.1%
+ iter 0%
+ storage 0%
+ chunkenc 0%
+ logql 0%
+ loki 0% |
`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 <[email protected]> (cherry picked from commit a56a88b)
* Add unwrapped aggregation `rate_counter()` (#6412) `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 <[email protected]> (cherry picked from commit a56a88b) * Update CHANGELOG Co-authored-by: Christian Haudum <[email protected]> Co-authored-by: Susana Ferreira <[email protected]>
What this PR does / why we need it:
rate_counter()
takes an unwrapped range as input, but unlikerate()
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
Special notes for your reviewer:
Part to of the implementation of #6351
Checklist
CHANGELOG.md
.docs/sources/upgrading/_index.md