V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
lin784264272
V2EX  ›  问与答

openshift 集群中访问 prometheus server

  •  
  •   lin784264272 · 148 天前 · 405 次点击
    这是一个创建于 148 天前的主题,其中的信息可能已经有所发展或是发生改变。
    openshift 集群中的 pod 如何通过代理来访问 prometheus server 执行 query ,现在被 openshift 的 oauth proxy 给拦住了
    $ curl -X GET -kG "http://10.128.1.66:3300/api/v1/namespaces/openshift-monitoring/services/https:prometheus-k8s:9091/proxy/api/v1/query?query=prometheus_ht
    tp_requests_total"

    <!DOCTYPE html>
    <html lang="en" charset="utf-8">
    <head>
    <title>Log In</title>
    1 条回复    2023-12-09 11:57:59 +08:00
    julyclyde
        1
    julyclyde  
       146 天前
    你是不是需要申请个 oauth 的 token ?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1199 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 17:37 · PVG 01:37 · LAX 10:37 · JFK 13:37
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.