Zabbix graphs - Sum items with identical names, from different hosts

Hello Grafana community,

With a Zabbix datasource, is it possible to create a graph where values, from items with identical names and from different hosts, are summed ?

To give some more context, it’s about Kafka bus topic metrics (Zabbix items), shared on brokers (Zabbix hosts).

I have setup a variable which covers all the required items. Which are of this nature :

broker0 : [TopicA] MessagesInPerSec MeanRate
broker1 : [TopicA] MessagesInPerSec MeanRate
broker2 : [TopicA] MessagesInPerSec MeanRate

broker0 : [TopicB] MessagesInPerSec MeanRate
broker1 : [TopicB] MessagesInPerSec MeanRate
broker2 : [TopicB] MessagesInPerSec MeanRate

broker0 : [TopicC] MessagesInPerSec MeanRate
broker1 : [TopicC] MessagesInPerSec MeanRate
broker2 : [TopicC] MessagesInPerSec MeanRate

What I need to achieve is to have on the same graph panel (and using variables/regex, for dynamic update)

  • [TopicA] MessagesInPerSec MeanRate (for broker0 + broker1 + broker2)
  • [TopicB] MessagesInPerSec MeanRate (for broker0 + broker1 + broker2)
  • [TopicC] MessagesInPerSec MeanRate (for broker0 + broker1 + broker2)

I can have all the separate items displayed without issues on a same graph with a single query.
But I can’t figure how to differentiate TopicA/B/C when using sum().

Any advise would be greatly appreciated.

Best regards.

Jean-Jacques

Adding some screenshots.

This is what I have at the moment (not all data displayed due to Top6). 3 hosts (broker0/1/2) and the same items on all (heartbeat / consumer_offsets).

Using sumSeries(), it merges all items. I need to get a merge for heartbeat and a merge for consumer_offsets.