Skip to content
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

Thanos generates a lot of warnings when Prometheus creates empty chunks #7182

Open
jrRibeiro opened this issue Mar 5, 2024 · 0 comments
Open

Comments

@jrRibeiro
Copy link
Contributor

Versions used: Thanos v0.34.1 - Prometheus v2.46.0

What happened:

I noticed thousands of log lines (one per empty chunk) appearing in our logging system, e.g:

caller=streamed_block_writer.go:116 level=warn msg="empty chunks happened, skip series" series="{__name__='metric_name, <list_of_labels>}"

Stale data on the Prometheus side often generates these chunks, which are then ignored when writing the series on the Thanos side during a compaction:

if len(chunks) == 0 {
level.Warn(w.logger).Log("msg", "empty chunks happened, skip series", "series", strings.ReplaceAll(lset.String(), "\"", "'"))
return nil
}

What you expected to happen:

A message per each series is logged as a warning everytime empty chunks appear. Given this might generate a lot of logs (one per series) in larger environments and it's not a concern on the Thanos side, should the log level be reduced to debug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant