Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ai3
float
Commits
2d5dafa6
Commit
2d5dafa6
authored
Dec 20, 2020
by
godog
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
thanos: add query-frontend in-memory cache
parent
86763354
Pipeline
#9730
passed with stage
in 2 minutes and 32 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
2 deletions
+19
-2
roles/prometheus/defaults/main.yml
roles/prometheus/defaults/main.yml
+2
-0
roles/prometheus/handlers/main.yml
roles/prometheus/handlers/main.yml
+6
-0
roles/prometheus/tasks/prometheus.yml
roles/prometheus/tasks/prometheus.yml
+6
-0
roles/prometheus/templates/query-frontend-cache.yml.j2
roles/prometheus/templates/query-frontend-cache.yml.j2
+3
-0
services.yml.default
services.yml.default
+1
-1
services.yml.no-elasticsearch
services.yml.no-elasticsearch
+1
-1
No files found.
roles/prometheus/defaults/main.yml
View file @
2d5dafa6
...
...
@@ -19,3 +19,5 @@ alert_playbook_url: "https://playbooks"
# Custom blackbox probes.
prometheus_custom_blackbox_probes
:
{}
thanos_query_frontend_cache_size
:
'
50MB'
roles/prometheus/handlers/main.yml
View file @
2d5dafa6
...
...
@@ -32,3 +32,9 @@
name
:
docker-prometheus-karma.service
state
:
restarted
listen
:
"
reload
karma"
-
name
:
restart thanos
systemd
:
name
:
docker-prometheus-thanos.service
state
:
restarted
listen
:
"
reload
thanos"
roles/prometheus/tasks/prometheus.yml
View file @
2d5dafa6
...
...
@@ -70,3 +70,9 @@
src
:
karma.yml.j2
dest
:
"
/etc/karma/float.yml"
notify
:
"
reload
karma"
-
name
:
Install Thanos query-frontend cache configuration
template
:
src
:
query-frontend-cache.yml.j2
dest
:
"
/etc/thanos/query-frontend-cache.yml"
notify
:
"
reload
thanos"
roles/prometheus/templates/query-frontend-cache.yml.j2
0 → 100644
View file @
2d5dafa6
type: IN-MEMORY
config:
max_size: "{{ thanos_query_frontend_cache_size }}"
services.yml.default
View file @
2d5dafa6
...
...
@@ -149,7 +149,7 @@ prometheus:
env:
QUERY_FLAGS: "--query.replica-label=monitor {% for h in groups['prometheus']|sort %} --store={{ h }}.prometheus.{{ domain }}:10901{% endfor %}"
SIDECAR_FLAGS: ""
QUERY_FRONTEND_FLAGS: ""
QUERY_FRONTEND_FLAGS: "
--query-range.response-cache-config-file=/etc/thanos/query-frontend-cache.yml
"
volumes:
- /etc/thanos: /etc/thanos
- name: karma
...
...
services.yml.no-elasticsearch
View file @
2d5dafa6
...
...
@@ -96,7 +96,7 @@ prometheus:
env:
QUERY_FLAGS: "--query.replica-label=monitor {% for h in groups['prometheus']|sort %} --store={{ h }}.prometheus.{{ domain }}:10901{% endfor %}"
SIDECAR_FLAGS: ""
QUERY_FRONTEND_FLAGS: ""
QUERY_FRONTEND_FLAGS: "
--query-range.response-cache-config-file=/etc/thanos/query-frontend-cache.yml
"
volumes:
- /etc/thanos: /etc/thanos
- name: karma
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment