diff --git a/conf/services.d/thanos-query/run b/conf/services.d/thanos-query/run
index fa54ca124a3d1c871f1f7276180312fd845c538e..1f8fae665d8363028e04d6c9bafcacf991b2030c 100755
--- a/conf/services.d/thanos-query/run
+++ b/conf/services.d/thanos-query/run
@@ -10,6 +10,6 @@ esac
 exec /usr/sbin/thanos query \
 	--http-address=${QUERY_HTTP_ADDRESS:-0.0.0.0:10904} \
 	--grpc-address=${QUERY_GRPC_ADDRESS:-0.0.0.0:10903} \
-	--endpoint.sd-config-file=/etc/thanos/store-sd/*.yml \
+	--store.sd-files=/etc/thanos/store-sd/*.yml \
 	${QUERY_FLAGS:-}