uses lowercase standard for logging and adds total bytes to shard res… (#9828)

Minor logging cleanup + helpful to have total bytes on this log line to
correlate without needing to derive total bytes from factor *
bytes_per_shard
pull/9791/head
Owen Diehl 2 years ago committed by GitHub
parent bcdc807dd3
commit b251a10234
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      pkg/querier/queryrange/shard_resolver.go

@ -201,8 +201,9 @@ func (r *dynamicShardResolver) Shards(e syntax.Expr) (int, uint64, error) {
level.Debug(log).Log(
append(
combined.LoggingKeyValues(),
"msg", "Got shard factor",
"msg", "got shard factor",
"factor", factor,
"total_bytes", strings.Replace(humanize.Bytes(combined.Bytes), " ", "", 1),
"bytes_per_shard", strings.Replace(humanize.Bytes(bytesPerShard), " ", "", 1),
)...,
)

Loading…
Cancel
Save