lin784264272
V2EX  ›  问与答

openshift 集群中访问 prometheus server

  •  
  •   lin784264272 · Dec 7, 2023 · 1397 views
    This topic created in 913 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   ·   2158 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 16:11 · PVG 00:11 · LAX 09:11 · JFK 12:11
    ♥ Do have faith in what you're doing.