julyclyde
V2EX  ›  Grafana

怎么在 Panel 里同时展示 value 和 tag 呢?

  •  
  •   julyclyde · Jan 30, 2023 · 1637 views
    This topic created in 1245 days ago, the information mentioned may be changed or developed.

    原始需求: 目前已经用 IPMI 收集了服务器的温度数据,tag 为 host ,value 为 temperature 数值 想要展示“最热的那台”的温度和主机名

    我用 select host, max(value) from ipmi_values where type='temperature' and type_instance=~/CPU/ and time >= now()-5m 条件可以查出来一个 max 和一个 host

    但是 1 我不知道怎么在 grafana panel 里同时展示这个 value 和 tag value 2 上述查询,也只能在 raw mode 里输入; editor mode 不允许我一个查询 select 两个东西出来

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1654 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 16:15 · PVG 00:15 · LAX 09:15 · JFK 12:15
    ♥ Do have faith in what you're doing.