我正在尝试通过Telegraf中IPMI输入从网络上的另一台服务器绘制Chronograf中的CPU温度。
执行以下查询可以正常工作:
SELECT "value" FROM "telegraf"."autogen"."ipmi_sensor" WHERE time > :dashboardTime: AND ("entity_id"='3.2' OR "entity_id"='3.1') GROUP BY "entity_id"
但是,在图中,元素被命名为“ entity_id = 3.1”和“ entity_id = 3.2”
如何重命名图中的那些元素?我已经尝试过了,但是没有提出正确的建议:
SELECT "entity_id"='3.1' AS "CPU 1" AND "entity_id"='3.2' AS "CPU 2" FROM "telegraf"."autogen"."ipmi_sensor" WHERE time > :dashboardTime: GROUP BY "entity_id"
我确定这是一个简单的语法修复程序,但是我只是在这里学习而已。