Commit 629c0b0b authored by godog's avatar godog

Add command line flags from environment

parent ed812c39
Pipeline #5555 passed with stages
in 1 minute and 59 seconds
......@@ -9,7 +9,9 @@ The following environment variables are understood:
QUERY_OFF
QUERY_HTTP_ADDRESS
QUERY_GRPC_ADDRESS
QUERY_FLAGS
SIDECAR_OFF
QUERY_HTTP_ADDRESS
QUERY_GRPC_ADDRESS
SIDECAR_HTTP_ADDRESS
SIDECAR_GRPC_ADDRESS
SIDECAR_FLAGS
thanos-query.service: {
command: "/usr/sbin/thanos query --http-address=$(QUERY_HTTP_ADDRESS:-0.0.0.0:10902) --grpc-address=$(QUERY_GRPC_ADDRESS:-0.0.0.0:10901) --store.sd-files=/etc/thanos/store-sd/*.yml",
command: "/usr/sbin/thanos query --http-address=$(QUERY_HTTP_ADDRESS:-0.0.0.0:10902) --grpc-address=$(QUERY_GRPC_ADDRESS:-0.0.0.0:10901) --store.sd-files=/etc/thanos/store-sd/*.yml $(QUERY_FLAGS)",
enabled: "$(QUERY_OFF:|false|true)",
kill_signal: SIGTERM,
exit_kills: true,
......
thanos-sidecar.service: {
command: "/usr/sbin/thanos sidecar --http-address=$(SIDECAR_HTTP_ADDRESS:-0.0.0.0:10912) --grpc-address=$(SIDECAR_GRPC_ADDRESS:-0.0.0.0:10911)",
command: "/usr/sbin/thanos sidecar --http-address=$(SIDECAR_HTTP_ADDRESS:-0.0.0.0:10912) --grpc-address=$(SIDECAR_GRPC_ADDRESS:-0.0.0.0:10911) $(SIDECAR_FLAGS)",
enabled: "$(SIDECAR_OFF:|false|true)",
kill_signal: SIGTERM,
exit_kills: true,
......
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