我正在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.

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

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.
发布评论
评论(1)
您可以从“ nofollow noreferrer”>转换<< /a>为此。
转到选项卡
转换
,选择通过REGEX
重命名,输入与Match> Match
字段中的所有IP地址的正则态度,然后将初始名称替换为比赛。一个示例可以在。You can use Rename by regex from the Transformations for that.
Go to the tab
Transform
, selectRename by regex
, enter a regex that matches all IP addresses in theMatch
field and replace the initial name with the match. An example can be found in the docs.