如何在Grafana中的图中显示有关每个点的其他信息

发布于 2025-01-22 17:19:33 字数 515 浏览 3 评论 0原文

我有Grafana 7.5,infuxdb 1.7.8。

DB基本上是为每个图像构建的容器的大小存储,每次构建每次都不同。

DB的样子的一个示例:

> select * from size
name: size
time                build value version
----                ----  ----- -------
1650440494922639073 1.1   203   0.1
1650440501807252201 1.2   207   0.1
1650440501807252201 1.3   208   0.1

我的查询看起来像这样:

SELECT "value" FROM "size" WHERE "version" = '0.1' AND $timeFilter

我正在使用图表来表示数据。

当我将鼠标放在数据点上时,它仅显示值(大小),我也想显示构建。

I have Grafana 7.5 with InfluxDB 1.7.8.

The DB is basically storing the size of a container for each image builds, being build different every time and an important piece of information.

An example of how the DB looks like:

> select * from size
name: size
time                build value version
----                ----  ----- -------
1650440494922639073 1.1   203   0.1
1650440501807252201 1.2   207   0.1
1650440501807252201 1.3   208   0.1

My query looks like this:

SELECT "value" FROM "size" WHERE "version" = '0.1' AND $timeFilter

and I'm using the Graph to represent the data.

When I place the mouse over the data points, it only displays the value (size) and I would like to show the build as well.

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

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

发布评论

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

评论(1

半透明的墙 2025-01-29 17:19:33

build必须是标签(不是字段) +您需要在查询中通过该构建标签进行分组。

build must be a tag (not a field) + you need to group by that build tag in your query.

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