如何在Grafana面板中显示动态信息

发布于 2025-02-10 19:08:51 字数 709 浏览 1 评论 0 原文

我正在Grafana中配置面板,但是显示屏显示的信息比我想要的要多。

理想情况下,我只想看到IP地址和值,而没有实例ID。

目前,我只能使用覆盖,并手动硬编码我想看到的值,在这种情况下,在这种情况下是私有IP地址。

是否有一种方法可以动态生成这种动态生成的方式,您将如何在尺寸中使用变量,以便每个面板显示要可视化的实例的值和私有IP地址,以便我不必在跨越跨越跨越这么多实例。

我正在使用grafana 9.0.x

我认为使用传奇是可能的,但是我似乎找不到这个新版本的Grafana中的lengend。

我可以看到添加 Label 的选项,但是我看不到使用我创建的PrivateIP变量创建一个方法。

I'm configuring panels in Grafana, but the display shows a little more information than I would like.

enter image description here

Ideally, I only want to see the IP address and the value, like this, without the instance ID.

enter image description here

At the moment, I'm only able to do this using overrides and manually hardcoding the value I want to see, in this case, the private IP address.

Is there a way to have this dynamically generated, sort of how you would use variables in the Dimensions, so that each panel shows the value and private IP address of the instance being visualised, so that I don;t have to manually update this across so many instances.

I'm using Grafana 9.0.x

I'd have thought this would be possible using Legends, but I can't seem to find the Lengend in this new version of Grafana.

I can see the option to add a Label, but I don't see any way to create one using the privateIP variable I've created.

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

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

发布评论

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

评论(1

晨光如昨 2025-02-17 19:08:51

您可以从“ nofollow noreferrer”>转换<< /a>为此。

转到选项卡转换,选择通过REGEX 重命名,输入与 Match> Match 字段中的所有IP地址的正则态度,然后将初始名称替换为比赛。一个示例可以在

You can use Rename by regex from the Transformations for that.

Go to the tab Transform, select Rename by regex, enter a regex that matches all IP addresses in the Match field and replace the initial name with the match. An example can be found in the docs.

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