V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
lin784264272
V2EX  ›  问与答

openshift 集群中访问 prometheus server

  •  
  •   lin784264272 · Dec 7, 2023 · 1260 views
    This topic created in 872 days ago, the information mentioned may be changed or developed.
    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 replies    2023-12-09 11:57:59 +08:00
    julyclyde
        1
    julyclyde  
       Dec 9, 2023
    你是不是需要申请个 oauth 的 token ?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5918 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 69ms · UTC 01:57 · PVG 09:57 · LAX 18:57 · JFK 21:57
    ♥ Do have faith in what you're doing.