Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.31.0 query parameter query.replica-label doesn't take effect on storegateway #6248

Open
zhangrj opened this issue Mar 31, 2023 · 0 comments

Comments

@zhangrj
Copy link

zhangrj commented Mar 31, 2023

Thanos version

After update from 0.30.1 to 0.31.0, query parameter query.replica-label doesn't run as expected.

Config

      containers:
        - name: query
          image: registry.cn-hangzhou.aliyuncs.com/zhangrongjie/thanos:v0.31.0
          imagePullPolicy: "IfNotPresent"
          securityContext:
            allowPrivilegeEscalation: false
            readOnlyRootFilesystem: false
            runAsNonRoot: true
            runAsUser: 1001
          args:
            - query
            - --log.level=info
            - --log.format=logfmt
            - --grpc-address=0.0.0.0:10901
            - --http-address=0.0.0.0:10902
            - --query.replica-label=replica
            - --query.replica-label=prometheus_replica
            - --store=dnssrv+_grpc._tcp.thanos-prod-storegateway-headless.thanos-prod.svc.cluster.local
            - --store=dnssrv+_grpc._tcp.thanos-prod-ruler-headless.thanos-prod.svc.cluster.local
            - --store=dnssrv+_grpc._tcp.thanos-prod-receive-headless.thanos-prod.svc.cluster.local
            - --query.lookback-delta=5m
            - --query.auto-downsampling
            - --query.partial-response

when query receive, the result is:

receive

when query storegateway, the result is:
storegateway

We can see the prometheus_replica label doesn't be duplicated on storegateway.

Then we delete - --query.replica-label=prometheus_replica, the query result become normal:
normal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant