grafana / loki

Like Prometheus, but for logs.
https://grafana.com/loki
GNU Affero General Public License v3.0
23.97k stars 3.46k forks source link

feat(blooms): Add task timining and sizing metrics #15032

Closed salvacorts closed 1 day ago

salvacorts commented 1 day ago

What this PR does / why we need it:

This PR adds observability around the time it takes tasks to complete as well as metrics for the amount of data the tasks will process.

We also refactor the planning strategy factory from a function into a struct. This is needed so we don't need to recreate the metrics.

Special notes for your reviewer:

Checklist

loki-gh-app[bot] commented 1 day ago

Hello @salvacorts! Backport pull requests need to be either:

Please, if the current pull request addresses a bug fix, label it with the type/bug label. If it already has the product approval, please add the product-approved label. For docs changes, please add the type/docs label. If the pull request modifies CI behaviour, please add the type/ci label. If none of the above applies, please consider removing the backport label and target the next major/minor release. Thanks!