Commit d950aea5 authored by Ben Kochie's avatar Ben Kochie

Merge branch 'bjk/thanos_query_cache_math' into 'master'

Adjust Thanos settings

See merge request !446
parents 37524939 29006ed1
Pipeline #55192038 passed with stages
in 3 minutes and 43 seconds
......@@ -28,7 +28,7 @@ GRAPH
zypper (>= 0.0.0)
compat_resource (12.19.1)
cpu (2.0.0)
gitlab-prometheus (1.0.6)
gitlab-prometheus (1.0.7)
accumulator (~> 0.2)
ark (~> 3.1)
chef-vault (~> 3.0)
......
......@@ -39,6 +39,7 @@ default["thanos-query"]["flags"]["cluster.address"] = node["thanos"]["cluster-ad
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-store"]["enable"] = false
default["thanos-store"]["log_dir"] = "/var/log/prometheus/thanos-store"
......@@ -46,8 +47,8 @@ default["thanos-store"]["flags"]["data-dir"] = "#{node['thanos']['dir']}/store-d
default["thanos-store"]["flags"]["cluster.address"] = node["thanos"]["cluster-address"]
default["thanos-store"]["flags"]["http-address"] = node["thanos"]["http-address"]
default["thanos-store"]["flags"]["grpc-address"] = node["thanos"]["grpc-address"]
default["thanos-store"]["flags"]["index-cache-size"] = (node["memory"]["total"].to_i * 0.10).to_i.to_s + "KB"
default["thanos-store"]["flags"]["chunk-pool-size"] = (node["memory"]["total"].to_i * 0.50).to_i.to_s + "KB"
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"
default["thanos-compact"]["enable"] = false
default["thanos-compact"]["log_dir"] = "/var/log/prometheus/thanos-compact"
......
......@@ -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.6"
version "1.0.7"
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