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

chore(deps): update helm chart thanos to v0.4.2 #328

Merged
merged 1 commit into from
Mar 1, 2021

Conversation

xunholy
Copy link
Owner

@xunholy xunholy commented Mar 1, 2021

This PR contains the following updates:

Package Update Change
thanos minor 0.3.31 -> 0.4.2

Release Notes

thanos-io/thanos

v0.4.0

⚠️ IMPORTANT ⚠️ This is the last release that supports gossip. From Thanos v0.5.0, gossip will be completely removed.

This release also disables gossip mode by default for all components.
See this for more details.

⚠️ This release moves Thanos docker images (NOT artifacts by accident) to Golang 1.12. This release includes change in GC's memory release which gives following effect:

On Linux, the runtime now uses MADV_FREE to release unused memory. This is more efficient but may result in higher reported RSS. The kernel will reclaim the unused data when it is needed. To revert to the Go 1.11 behavior (MADV_DONTNEED), set the environment variable GODEBUG=madvdontneed=1.

If you want to see exact memory allocation of Thanos process:

  • Use go_memstats_heap_alloc_bytes metric exposed by Golang or container_memory_working_set_bytes exposed by cadvisor.
  • Add GODEBUG=madvdontneed=1 before running Thanos binary to revert to memory releasing to pre 1.12 logic.

Using cadvisor container_memory_usage_bytes metric could be misleading e.g: google/cadvisor#​2242

Added
  • thanos.io website & automation 🎉
  • #​1053 compactor: Compactor & store gateway now handles incomplete uploads gracefully. Added hard limit on how long block upload can take (30m).
  • #​811 Remote write receiver component ❤️ ❤️ thanks to RedHat (@​brancz) contribution.
  • #​910 Query's stores UI page is now sorted by type and old DNS or File SD stores are removed after 5 minutes (configurable via the new --store.unhealthy-timeout=5m flag).
  • #​905 Thanos support for Query API: /api/v1/labels. Notice that the API was added in Prometheus v2.6.
  • #​798 Ability to limit the maximum number of concurrent request to Series() calls in Thanos Store and the maximum amount of samples we handle.
  • #​1060 Allow specifying region attribute in S3 storage configuration

⚠️ WARNING ⚠️ #​798 adds a new default limit to Thanos Store: --store.grpc.series-max-concurrency. Most likely you will want to make it the same as --query.max-concurrent on Thanos Query.

New options:

New Store flags:

* `--store.grpc.series-sample-limit` limits the amount of samples that might be retrieved on a single Series() call. By default it is 0. Consider enabling it by setting it to more than 0 if you are running on limited resources.
* `--store.grpc.series-max-concurrency` limits the number of concurrent Series() calls in Thanos Store. By default it is 20. Considering making it lower or bigger depending on the scale of your deployment.

New Store metrics:

* `thanos_bucket_store_queries_dropped_total` shows how many queries were dropped due to the samples limit;
* `thanos_bucket_store_queries_concurrent_max` is a constant metric which shows how many Series() calls can concurrently be executed by Thanos Store;
* `thanos_bucket_store_queries_in_flight` shows how many queries are currently "in flight" i.e. they are being executed;
* `thanos_bucket_store_gate_duration_seconds` shows how many seconds it took for queries to pass through the gate in both cases - when that fails and when it does not.

New Store tracing span: * store_query_gate_ismyturn shows how long it took for a query to pass (or not) through the gate.

  • #​1016 Added option for another DNS resolver (miekg/dns client).
    Note that this is required to have SRV resolution working on Golang 1.11+ with KubeDNS below v1.14

    New Querier and Ruler flag: -- store.sd-dns-resolver which allows to specify resolver to use. Either golang or miekgdns

  • #​986 Allow to save some startup & sync time in store gateway as it is no longer needed to compute index-cache from block index on its own for larger blocks.
    The store Gateway still can do it, but it first checks bucket if there is index-cached uploaded already.
    In the same time, compactor precomputes the index cache file on every compaction.

    New Compactor flag: --index.generate-missing-cache-file was added to allow quicker addition of index cache files. If enabled it precomputes missing files on compactor startup. Note that it will take time and it's only one-off step per bucket.

  • #​887 Compact: Added new --block-sync-concurrency flag, which allows you to configure number of goroutines to use when syncing block metadata from object storage.

  • #​928 Query: Added --store.response-timeout flag. If a Store doesn't send any data in this specified duration then a Store will be ignored and partial data will be returned if it's enabled. 0 disables timeout.

  • #​893 S3 storage backend has graduated to stable maturity level.

  • #​936 Azure storage backend has graduated to stable maturity level.

  • #​937 S3: added trace functionality. You can add trace.enable: true to enable the minio client's verbose logging.

  • #​953 Compact: now has a hidden flag --debug.accept-malformed-index. Compaction index verification will ignore out of order label names.

  • #​963 GCS: added possibility to inline ServiceAccount into GCS config.

  • #​1010 Compact: added new flag --compact.concurrency. Number of goroutines to use when compacting groups.

  • #​1028 Query: added --query.default-evaluation-interval, which sets default evaluation interval for sub queries.

  • #​980 Ability to override Azure storage endpoint for other regions (China)

  • #​1021 Query API series now supports POST method.

  • #​939 Query API query_range now supports POST method.

Changed
  • #​970 Deprecated partial_response_disabled proto field. Added partial_response_strategy instead. Both in gRPC and Query API.
    No PartialResponseStrategy field for RuleGroups by default means abort strategy (old PartialResponse disabled) as this is recommended option for Rules and alerts.

    Metrics:

    • Added thanos_rule_evaluation_with_warnings_total to Ruler.
    • DNS thanos_ruler_query_apis* are now thanos_ruler_query_apis_* for consistency.
    • DNS thanos_querier_store_apis* are now thanos_querier_store_apis__* for consistency.
    • Query Gate thanos_bucket_store_series* are now thanos_bucket_store_series_* for consistency.
    • Most of thanos ruler metris related to rule manager has strategy label.

    Ruler tracing spans:

    • /rule_instant_query HTTP[client] is now /rule_instant_query_part_resp_abort HTTP[client]" if request is for abort strategy.
  • #​1009: Upgraded Prometheus (~v2.7.0-rc.0 to v2.8.1) and TSDB (v0.4.0 to v0.6.1) deps.

    Changes that affects Thanos:

    • query:
      • [ENHANCEMENT] In histogram_quantile merge buckets with equivalent le values. #​5158.
      • [ENHANCEMENT] Show list of offending labels in the error message in many-to-many scenarios. #​5189
      • [BUGFIX] Fix panic when aggregator param is not a literal. #​5290
    • ruler:
      • [ENHANCEMENT] Reduce time that Alertmanagers are in flux when reloaded. #​5126
      • [BUGFIX] prometheus_rule_group_last_evaluation_timestamp_seconds is now a unix timestamp. #​5186
      • [BUGFIX] prometheus_rule_group_last_duration_seconds now reports seconds instead of nanoseconds. Fixes our issue #​1027
      • [BUGFIX] Fix sorting of rule groups. #​5260
    • store: [ENHANCEMENT] Fast path for EmptyPostings cases in Merge, Intersect and Without.
    • tooling: [FEATURE] New dump command to tsdb tool to dump all samples.
    • compactor:
      • [ENHANCEMENT] When closing the db any running compaction will be cancelled so it doesn't block.
      • [CHANGE] breaking Renamed flag --sync-delay to --consistency-delay #​1053

    For ruler essentially whole TSDB CHANGELOG applies between v0.4.0-v0.6.1: https://github.com/prometheus/tsdb/blob/master/CHANGELOG.md

    Note that this was added on TSDB and Prometheus: [FEATURE] Time-ovelapping blocks are now allowed. #​370
    Whoever due to nature of Thanos compaction (distributed systems), for safety reason this is disabled for Thanos compactor for now.

  • #​868 Go has been updated to 1.12.

  • #​1055 Gossip flags are now disabled by default and deprecated.

  • #​964 repair: Repair process now sorts the series and labels within block.

  • #​1073 Store: index cache for requests. It now calculates the size properly (includes slice header), has anti-deadlock safeguard and reports more metrics.

Fixed
  • #​921 thanos_objstore_bucket_last_successful_upload_time now does not appear when no blocks have been uploaded so far.
  • #​966 Bucket: verify no longer warns about overlapping blocks, that overlap 0s
  • #​848 Compact: now correctly works with time series with duplicate labels.
  • #​894 Thanos Rule: UI now correctly shows evaluation time.
  • #​865 Query: now properly parses DNS SRV Service Discovery.
  • #​889 Store: added safeguard against merging posting groups segfault
  • #​941 Sidecar: added better handling of intermediate restarts.
  • #​933 Query: Fixed 30 seconds lag of adding new store to query.
  • #​962 Sidecar: Make config reloader file writes atomic.
  • #​982 Query: now advertises Min & Max Time accordingly to the nodes.
  • #​1041 Ruler is now able to return long time range queries.
  • #​904 Compact: Skip compaction for blocks with no samples.
  • #​1070 Downsampling works back again. Deferred closer errors are now properly captured.

Renovate configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@xunholy xunholy added dependency/minor Minor version changes renovate/helm-release Helm chart version change labels Mar 1, 2021
Signed-off-by: Renovate Bot <renovate@whitesourcesoftware.com>
@xunholy xunholy self-assigned this Mar 1, 2021
@xunholy xunholy force-pushed the self-hosted/helm-thanos-0.x branch from 756ba4f to b173218 Compare March 1, 2021 07:43
@xunholy xunholy merged commit 868ca08 into main Mar 1, 2021
@xunholy xunholy deleted the self-hosted/helm-thanos-0.x branch March 1, 2021 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependency/minor Minor version changes renovate/helm-release Helm chart version change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants