Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ See up to date [jsonnet mixins](https://github.com/thanos-io/thanos/tree/main/mi
* [HelloFresh blog posts part 1](https://engineering.hellofresh.com/monitoring-at-hellofresh-part-1-architecture-677b4bd6b728)
* [HelloFresh blog posts part 2](https://engineering.hellofresh.com/monitoring-at-hellofresh-part-2-operating-the-monitoring-system-8175cd939c1d)
* [Thanos deployment](https://www.metricfire.com/blog/ha-kubernetes-monitoring-using-prometheus-and-thanos)
* [Taboola user story](https://blog.taboola.com/monitoring-and-metering-scale/)
* [Taboola user story](https://www.taboola.com/engineering/monitoring-and-metering-scale/)
* [Thanos via Prometheus Operator](https://kkc.github.io/2019/02/10/prometheus-operator-with-thanos/)

* 2018:
Expand Down
2 changes: 1 addition & 1 deletion pkg/extprom/http/instrument_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type ClientMetrics struct {

// NewClientMetrics creates a new instance of ClientMetrics.
// It will also register the metrics with the included register.
// This ClientMetrics should be re-used for diff clients with the same purpose.
// This ClientMetrics should be reused for diff clients with the same purpose.
// e.g. 1 ClientMetrics should be used for all the clients that talk to Alertmanager.
func NewClientMetrics(reg prometheus.Registerer) *ClientMetrics {
var m ClientMetrics
Expand Down
2 changes: 1 addition & 1 deletion pkg/query/endpointset.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ func (e *EndpointSet) Update(ctx context.Context) {
if er.HasStoreAPI() && (er.ComponentType() == component.Sidecar || er.ComponentType() == component.Rule) &&
stats[component.Sidecar.String()][extLset]+stats[component.Rule.String()][extLset] > 0 {

level.Warn(e.logger).Log("msg", "found duplicate storeEndpoints producer (sidecar or ruler). This is not advices as it will malform data in in the same bucket",
level.Warn(e.logger).Log("msg", "found duplicate storeEndpoints producer (sidecar or ruler). This is not advised as it will malform data in in the same bucket",
"address", addr, "extLset", extLset, "duplicates", fmt.Sprintf("%v", stats[component.Sidecar.String()][extLset]+stats[component.Rule.String()][extLset]+1))
}
stats[er.ComponentType().String()][extLset]++
Expand Down
2 changes: 1 addition & 1 deletion pkg/runutil/runutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
// The rununtil.Exhaust* family of functions provide the same functionality but
// they take an io.ReadCloser and they exhaust the whole reader before closing
// them. They are useful when trying to use http keep-alive connections because
// for the same connection to be re-used the whole response body needs to be
// for the same connection to be reused the whole response body needs to be
// exhausted.
package runutil

Expand Down
9 changes: 8 additions & 1 deletion pkg/store/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -766,8 +766,15 @@ func (s *BucketStore) SyncBlocks(ctx context.Context) error {
return metaFetchErr
}

s.mtx.RLock()
keys := make([]ulid.ULID, 0, len(s.blocks))
for k := range s.blocks {
keys = append(keys, k)
}
s.mtx.RUnlock()

// Drop all blocks that are no longer present in the bucket.
for id := range s.blocks {
for _, id := range keys {
if _, ok := metas[id]; ok {
continue
}
Expand Down
Loading