V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
julyclyde
V2EX  ›  Grafana

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

  •  
  •   julyclyde · 2023-01-30 18:02:21 +08:00 · 550 次点击
    这是一个创建于 423 天前的主题,其中的信息可能已经有所发展或是发生改变。

    原始需求: 目前已经用 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 两个东西出来

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3247 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 12:05 · PVG 20:05 · LAX 05:05 · JFK 08:05
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.