Tune additional Thanos flags

* Disable gossip cluster now that we're using discovery.
* Enable partial response in order to avoid hanging on slow storage
requests.
parent d950aea5
Pipeline #55194963 failed with stages
in 50 seconds
......@@ -28,7 +28,7 @@ GRAPH
zypper (>= 0.0.0)
compat_resource (12.19.1)
cpu (2.0.0)
gitlab-prometheus (1.0.7)
gitlab-prometheus (1.0.8)
accumulator (~> 0.2)
ark (~> 3.1)
chef-vault (~> 3.0)
......
......@@ -26,7 +26,7 @@ default["thanos-sidecar"]["enable"] = false
default["thanos-sidecar"]["log_dir"] = "/var/log/prometheus/thanos-sidecar"
default["thanos-sidecar"]["flags"]["prometheus.url"] = "http://localhost:9090"
default["thanos-sidecar"]["flags"]["tsdb.path"] = node["prometheus"]["flags"]["storage.tsdb.path"]
default["thanos-sidecar"]["flags"]["cluster.address"] = node["thanos"]["cluster-address"]
default["thanos-sidecar"]["flags"]["cluster.disable"] = true
default["thanos-sidecar"]["flags"]["http-address"] = node["thanos"]["http-address"]
default["thanos-sidecar"]["flags"]["grpc-address"] = node["thanos"]["grpc-address"]
default["thanos-sidecar"]["flags"]["shipper.upload-compacted"] = true
......@@ -35,18 +35,22 @@ default["thanos-query"]["enable"] = false
default["thanos-query"]["log_dir"] = "/var/log/prometheus/thanos-query"
default["thanos-query"]["flags"]["http-address"] = node["thanos"]["http-address"]
default["thanos-query"]["flags"]["query.replica-label"] = "replica"
default["thanos-query"]["flags"]["cluster.address"] = node["thanos"]["cluster-address"]
default["thanos-query"]["flags"]["cluster.disable"] = true
default["thanos-query"]["flags"]["http-address"] = node["thanos"]["http-address"]
default["thanos-query"]["flags"]["grpc-address"] = node["thanos"]["grpc-address"]
default["thanos-query"]["flags"]["store.sd-files"] = node["thanos"]["store_inventory"]
default["thanos-query"]["flags"]["query.auto-downsampling"] = true
default["thanos-query"]["flags"]["query.partial-response"] = true
## Supported in >= 0.4.0
#default["thanos-query"]["flags"]["store.response-timeout"] = "2s"
default["thanos-store"]["enable"] = false
default["thanos-store"]["log_dir"] = "/var/log/prometheus/thanos-store"
default["thanos-store"]["flags"]["data-dir"] = "#{node['thanos']['dir']}/store-data"
default["thanos-store"]["flags"]["cluster.address"] = node["thanos"]["cluster-address"]
default["thanos-store"]["flags"]["cluster.disable"] = true
default["thanos-store"]["flags"]["http-address"] = node["thanos"]["http-address"]
default["thanos-store"]["flags"]["grpc-address"] = node["thanos"]["grpc-address"]
default["thanos-store"]["flags"]["log.level"] = "debug"
default["thanos-store"]["flags"]["index-cache-size"] = (node["memory"]["total"].to_i * 0.5).to_i.to_s + "KB"
default["thanos-store"]["flags"]["chunk-pool-size"] = (node["memory"]["total"].to_i * 0.20).to_i.to_s + "KB"
......
......@@ -4,7 +4,7 @@ maintainer_email "ops-contact@gitlab.com"
license "All rights reserved"
description "Installs/Configures gitlab-monitoring"
long_description IO.read(File.join(File.dirname(__FILE__), "README.md"))
version "1.0.7"
version "1.0.8"
depends "accumulator", "~> 0.2"
depends "ark", "~> 3.1"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment