Hello, Friends!
I use Grafana 8.1 and for viewing data from a Zabbix datasource.
I created a text item on Zabbix to retrieve the top 10 processes consuming CPU. The item retrieves the percentage and the process name using a simple bash script, as bellow:
In Grafana I added a STATS panel, formated as table and the data is shown in a sigle line, as below:
I would like to know if there is a way for the tada to be displayed as list, with each specific process data in a different line, such as:
15,3% process1
11,6% process2
And so on.
I read the Grafana documentation on regex use and tried using Regex but had no success. It seems not to be possible a regex for replacing a space for a new line. I also tried capture groups with the regex “/(?<value>\d+.\d+%)|(?<text>\w+)/” and it didn´t work.
Does anybody have an idea of how to make this work?
Thanks in advance!
Andre.