Commit b8ae7586 authored by godog's avatar godog

thanos: add query-frontend service

parent f9716de2
......@@ -22,6 +22,7 @@ prometheus-lts:
- 10912 # sidecar http
env:
QUERY_OFF: "yes" # The main 'thanos query' service is 'prometheus'
QUERY_FRONTEND_OFF: "yes" # Ditto for 'query-frontend'
SIDECAR_GRPC_ADDRESS: "0.0.0.0:10911"
SIDECAR_HTTP_ADDRESS: "0.0.0.0:10912"
SIDECAR_FLAGS: "--prometheus.url=http://localhost:9099"
......
......@@ -144,9 +144,12 @@ prometheus:
- 10902 # sidecar http
- 10903 # query grpc
- 10904 # query http
- 10905 # query-frontend grpc
- 10906 # query-frontend http
env:
QUERY_FLAGS: "--query.replica-label=monitor {% for h in groups['prometheus']|sort %} --store={{ h }}.prometheus.{{ domain }}:10901{% endfor %}"
SIDECAR_FLAGS: ""
QUERY_FRONTEND_FLAGS: ""
volumes:
- /etc/thanos: /etc/thanos
- name: karma
......@@ -199,6 +202,9 @@ prometheus:
- job_name: thanos-sidecar
port: 10902
scheme: http
- job_name: thanos-query-frontend
port: 10906
scheme: http
ports:
- 9094
- 10901
......
......@@ -91,9 +91,12 @@ prometheus:
- 10902 # sidecar http
- 10903 # query grpc
- 10904 # query http
- 10905 # query-frontend grpc
- 10906 # query-frontend http
env:
QUERY_FLAGS: "--query.replica-label=monitor {% for h in groups['prometheus']|sort %} --store={{ h }}.prometheus.{{ domain }}:10901{% endfor %}"
SIDECAR_FLAGS: ""
QUERY_FRONTEND_FLAGS: ""
volumes:
- /etc/thanos: /etc/thanos
- name: karma
......@@ -146,6 +149,9 @@ prometheus:
- job_name: thanos-sidecar
port: 10902
scheme: http
- job_name: thanos-query-frontend
port: 10906
scheme: http
ports:
- 9094
- 10901
......
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