Add query parameters to service

I have a server defined that requires a query parameter to be passed into every request. How do I add this query parameter to my services.servers ?

            services:
              amb:
                loadBalancer:
                  servers:
                  - url: https://my-url.com?myquery=parameter

Paths in the servers' url have no effect. If you want the requests to be sent to a specific path on your servers, configure your routers to use a corresponding middleware (e.g. the AddPrefix or ReplacePath) middlewares.

(Source)

The problem with AddPrefix and Replace path is that they don't support query parameters. These are just for paths in the URI.

In the AddPrefix docs, it says " It should include a leading slash (/ )."

But thats not a query paramter. A query parameter is a question mark: "?query=parameter"

Can you use ReplacePathRegex middleware to add the parameter to the original request?

I'm trying that now and doesn't seem to be working:

          http:
            middlewares:
              addon:
                replacePathRegex:
                  regex: ^/.*
                  replacement: /$1\?billingtoken\=my-token-here
            routers:
              amb:
                middlewares:
                - addon
                rule: Path(`/`)
                service: amb
            services:
              amb:
                loadBalancer:
                  healthCheck:
                    path: /health/v1/node
                    interval: 10s
                  servers:
                  - url: https://nd-x.t.x.x.us-east-1.amazonaws.com

The addon middleware doesn't seem to be working because the health check still fails as if its not getting the query parameter passed in

I would not expect the health check to run through middlewares.

Set up a traefik/whoami service to echo http headers and see what is been sent.