【Emergency Help】The issue regarding the usage method of the "thanos query --endpoint.sd-config-file" parameter #8527
Unanswered
cscowx
asked this question in
Questions & Answers
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, everyone!
Container image version:thanosio/thanos:main-2025-10-07-be442a5
/bin $ ./thanos --version
thanos, version 0.40.0-dev (branch: main, revision: be442a5)
build user: root@76cd6c6b9001
build date: 20251007-14:11:33
go version: go1.25.1
platform: linux/amd64
tags: netgo,slicelabels
My CoreDNS does not support IPv6.
./thanos query --help
May I ask --endpoint.sd-config-file=
How should the format of this configuration file be written? Could you provide me with a specific example or an official document?
I found that there were the following errors in the operation log of the Thanos Query Pod.
kubectl logs -f pod/my-thanos-query-0 -n monitor
Some DNS resolution tests were also conducted, as follows
If the parameter "type=" is not specified, the domain name resolution will encounter problems. The phenomenon is that sometimes it can be parsed successfully, and sometimes it returns "No answer".
kubectl exec -it pod/my-thanos-query-0 -n monitor -- nslookup my-prometheus-thanos-sidecar-headless.monitor.svc.cluster.local
By using "type=A", the parsing can be successfully completed.
kubectl exec -it pod/my-thanos-query-0 -n monitor -- nslookup -type=A my-prometheus-thanos-sidecar-headless.monitor.svc.cluster.local
I wonder if it's the DNS resolution issue that caused these error logs? How can we solve this problem? Or is it that my endpoints.json configuration file is written incorrectly?
I couldn't find any examples related to this parameter on the Thanos website either.
./thanos query --endpoint.sd-config-file=/etc/thanos/endpoints.json
Beta Was this translation helpful? Give feedback.
All reactions