_If you don't send bug report, remove sections below_
Software Versions
| Grafana | Zabbix | Grafana-Zabbix Plugin |
| ------- | ------ | --------------------- |
| x.x.x | x.x.x | x.x.x |
_Describe here_
_Describe here_
_Describe here_
If it relates to metric data visualization would be great to get
Hi, Alexander.
There isn't the hostname in the graph if all charts belong to a single host. It's good in most cases, but I'd like to be able to alter this behavior.
For example, I'm using the variable $host, selected "All", and got the charts of only one host. Maybe, other hosts don't have such values or the "top" filter used and a single host won all prises.
In this case, the hostname is unclear.

Hello @alexanderzobnin How to show a host name only in graph. Sorry my english.
@thanhtuan use replaceAlias() function.
Hi Guys. Is there any update?
I have the same issue when creating a dashboard which contains multiple zabbix datasource.
If there is only one host in that zabbix, it won't show the hostname.
Added in 6729de0e489c99358fe2dc6e55e0542c85f572aa
It's possible now with setAlias($__zbx_host_name: $__zbx_item)
The problem isn't solved. Because i've got the same problem with Version 5.4.3 of Grafana. I have a overview of different VMs and their Volume usage. Now for Volume M: There is only one entry. And this entry only shows the item name and not the name of the virtual machine. All the other ones whrere there are more than one machines with the same item shows it in the right way.
Any Idea?
@fabianfasserIX Did you try to use setAlias($__zbx_host_name: $__zbx_item)?
Yes but it only works for one specific host. If I use the Filer "All" it takes every single host into it.
@alexanderzobnin
$__zbx_host_name may contain dozens of hosts, so it is not possible to make this kind of aliasing.
It is especially annoying for mixed datasource graph connected to several zabbix instances.
Suddenly it becomes a mix of named and unnamed hosts:

Sorry, setAlias($__zbx_host_name: $__zbx_item) works. But it requires to edit all the graphs in all dashboards to add setAlias function - not pretty easy task.
Is there a chance to get that fixed on a plugin level?
Most helpful comment
Added in 6729de0e489c99358fe2dc6e55e0542c85f572aa
It's possible now with
setAlias($__zbx_host_name: $__zbx_item)