Skip to content

Commit

Permalink
Merge branch 'main' into add-containerSecurityContext-to-statefulset-…
Browse files Browse the repository at this point in the history
…backend-sidecar
  • Loading branch information
openbob authored Sep 25, 2024
2 parents dc84ea3 + 73d69a1 commit 22d9307
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 15 deletions.
2 changes: 1 addition & 1 deletion docs/sources/operations/query-acceleration-blooms.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Example calculation for storage requirements of blooms for a single tenant.
Since reading blooms depends heavily on disk IOPS, Bloom Gateways should make use of multiple,
locally attached SSD disks (NVMe) to increase i/o throughput.
Multiple directories on different disk mounts can be specified using the `-bloom.shipper.working-directory` [setting]storage-config-cfg]
Multiple directories on different disk mounts can be specified using the `-bloom.shipper.working-directory` [setting][storage-config-cfg]
when using a comma separated list of mount points, for example:
```
-bloom.shipper.working-directory="/mnt/data0,/mnt/data1,/mnt/data2,/mnt/data3"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ require (
github.com/fsnotify/fsnotify v1.7.0
github.com/gogo/googleapis v1.4.1
github.com/grafana/jsonparser v0.0.0-20240425183733-ea80629e1a32
github.com/grafana/loki/pkg/push v0.0.0-20240923094301-8ebb2b5300f0
github.com/grafana/loki/pkg/push v0.0.0-20240924133635-758364c7775f
github.com/hashicorp/golang-lru/v2 v2.0.7
github.com/hashicorp/raft v1.7.1
github.com/hashicorp/raft-wal v0.4.1
Expand Down
14 changes: 2 additions & 12 deletions pkg/pattern/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"sync"

"github.com/go-kit/log"
"github.com/go-kit/log/level"
"github.com/grafana/dskit/httpgrpc"
"github.com/grafana/dskit/multierror"
"github.com/grafana/dskit/ring"
Expand Down Expand Up @@ -264,20 +263,11 @@ func (i *instance) Observe(stream string, entries []logproto.Entry) {
streamMetrics, ok := i.aggMetricsByStreamAndLevel[stream]

if !ok {
streamMetrics = make(map[string]*aggregatedMetrics, len(constants.LogLevels))
for _, l := range constants.LogLevels {
streamMetrics[l] = &aggregatedMetrics{}
}
streamMetrics = map[string]*aggregatedMetrics{}
}

if _, ok := streamMetrics[lvl]; !ok {
level.Warn(i.logger).Log(
"msg", "unknown log level while observing stream",
"level", lvl,
"stream", stream,
)

lvl = constants.LogLevelUnknown
streamMetrics[lvl] = &aggregatedMetrics{}
}

streamMetrics[lvl].bytes += uint64(len(entry.Line))
Expand Down
2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,7 @@ github.com/grafana/gomemcache/memcache
# github.com/grafana/jsonparser v0.0.0-20240425183733-ea80629e1a32
## explicit; go 1.13
github.com/grafana/jsonparser
# github.com/grafana/loki/pkg/push v0.0.0-20240923094301-8ebb2b5300f0 => ./pkg/push
# github.com/grafana/loki/pkg/push v0.0.0-20240924133635-758364c7775f => ./pkg/push
## explicit; go 1.19
github.com/grafana/loki/pkg/push
# github.com/grafana/pyroscope-go/godeltaprof v0.1.8
Expand Down

0 comments on commit 22d9307

Please sign in to comment.