Grafana - InfluxDB - SUM 多个系列

发布于 2025-01-10 21:30:30 字数 316 浏览 2 评论 0原文

我尝试从智能插头中汇总我的用电指标。它们以不同的系列出现在 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

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

孤独陪着我 2025-01-17 21:30:30

我找到了解决方案。不知道为什么我以前没有尝试过这个。我添加了名为“从计算中添加字段”的转换,模式设置为“立即减少”,计算为“总计”。

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".

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文