julyclyde
V2EX  ›  Grafana

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

  •  
  •   julyclyde · Jan 30, 2023 · 1650 views
    This topic created in 1250 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   ·   866 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 20:56 · PVG 04:56 · LAX 13:56 · JFK 16:56
    ♥ Do have faith in what you're doing.