Grafana - InfluxDB - SUM 多个系列
我尝试从智能插头中汇总我的用电指标。它们以不同的系列出现在 influxdb 中。我尝试在“from”中使用通配符 - 部分我无法对结果进行总结?!是否有可能添加不同的系列并获得单一结果?我不想制作 4 个(或更多)手动系列,每个系列都有一个插头,以便在系统出现新插头时保持灵活性。仅供参考,我已经在 select 语句中尝试过“求和”
I try to sumerize my powerusage metrics from my smart plugs. They are present at influxdb in different series. I've tried to use wildcard in the "from"-Part by i cannot sumerize the results?! Is it even possible to add the different series and get a single result? I do not want to make 4 (or more) manual series, each for one plug to be flexible if new plugs comes to the system. Fyi, i've already tried a "sum" at the select statement
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了解决方案。不知道为什么我以前没有尝试过这个。我添加了名为“从计算中添加字段”的转换,模式设置为“立即减少”,计算为“总计”。
I found a solution. Don't know why i did not tried this before. I add the transformation called "Add field from calculation" with mode set to "Reduce now" and calculation "Total".