Sort data in graph panel with Series mode

Hi,

I display Zabbix data in a graph panel, using the “Series” mode.
The displayed data is not sorted.
Is it possible to sort them alphabetically for example in this mode?

Always in the same panel graph, actually, if I add an additional series, it will be added to the suite following the first one. Can we imagine using an aggregation if the alias is exactly the same ?

Thanks a lot for your answer.
Regards,

You will have to consult the Zabbix query docs and see if this is supported by their query api, the maybe the grafana plugin can take advantage of it.

Sorting and aggregation is delegated to the time series backend (Zabbix in your case)

Aggregation for several queries may be tricky because plugin works with each query separately. Sorting by alias may be a good feature request for plugin. Can you try to construct query which covers all needed metrics (using regex)?

Thank you for your reply.
I don’t understand exactly what you expect of me.
Can you give me an example? I really want to help you if I can.
Thank you

Can you post your queries? I’ll try to find a way to combine it into one.

Hi Alexander, Thank,
I use your Zabbix plugin, so when I look into the query inspector, I have this :

request:Object
method:"POST"
url:"api/datasources/proxy/9"
data:Object
jsonrpc:"2.0"
method:"history.get"
params:Object
output:"extend"
history:"0"
itemids:Array[13]
0:"136662"
1:"136800"
2:"136788"
3:"136776"
4:"136764"
5:"136752"
6:"136740"
7:"136728"
8:"136716"
9:"136704"
10:"136692"
11:"136680"
12:"136665"
sortfield:"clock"
sortorder:"ASC"
time_from:1507586400
time_till:1507672800
id:1

I use a regex to select all the items I want to display. Then, I use the replaceAlias ​​function to change the alias.
It would be great to be able to sort the items in alpha order of their alias.
It would be even more brilliant if we could group them by alias to make a sum for example items with the same alias.

How can i help you ?
Thank you very much for your job.

I mean queries in plugin query editor.

Hello Alexander,
I tried the last update of the plugin and everything is ok.
a very big thank you for your work.
Regards,

1 Like