基于 Oauth 的 API 的 Thanos Ruler 查询配置承载不起作用
我正在使用Thanos标尺,并尝试将基于API的查询URL添加到其配置中。 从Thanos官方文档中提及Thanos统治者的官方文档( https> https:https:// thanos。 io/tip/components/rule.md/#query-api ),我们通过以下格式配置了基于OAUTH的令牌访问。
- http_config:
bearer_token: "<oauth-token>"
static_configs: ["<query API>"]
scheme: https
根据我们的要求,我们能够获取每个计划间隔后添加携带者令牌并添加到此配置示意图中。 Thanos统治者试图达到查询者,但始终以回应返回: “无查询API服务器可到达”。
任何人都可以向我解释我在哪里做错法。同样,如果您可以提供一些示例配置,那就太好了。
I'm using Thanos Ruler and trying to add a an API based query url to its configuration.
Referring from the Thanos Official docs of building Thanos Ruler (https://thanos.io/tip/components/rule.md/#query-api), we configured the oauth based token access via a Configmap in the below format.
- http_config:
bearer_token: "<oauth-token>"
static_configs: ["<query API>"]
scheme: https
As per our requirement, we were able to fetch the Bearer Token and add to this configmap after every scheduled interval.
Thanos Ruler tries to reach the querier but always returned with response:
"no query API server reachable".
Can anyone pls explain me where I'm doing it wrong. Also it would be great, if you can provide some sample configurations to refer to.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论