grafana-zabbix
grafana-zabbix copied to clipboard
'wide ' is prepended to metric names
Describe the bug I create a query with regex resulting in multiple metrics: metric names / aliases are "hostname: item name". When I create an abritary second one, the names of the first query change to "wide hostname: item name". It does not matter, if regex is in 'Host' or 'Item'. SetAlias function does not help: new name is applied, but 'wide' keeps to be displayed in front. Also order of the queries do not matter.
Expected behavior On adding a second query, names of first one keep the same.
Screenshots
Software versions
Grafana | Zabbix | Grafana-Zabbix Plugin |
---|---|---|
8.2.3 | 5.4.7 | 4.2.4 |
This happens after I upgraded from Grafana 7.5.4 / Grafana-Zabbix 4.1.5. Can anyone reproduce that, has an idea what can cause this behavior or know a workaround?
Also having this issue. "wide" is prepended to almost all of my legend items after upgrading. I have toggled both "Use Zabbix value mapping" and "Disable data alignment" options witch fixes this issue briefly but then it goes back to showing "wide". Some inconsistent behavior there. Not sure which option is fixing it. Sometimes fixes it instantly and sometimes doesn't. Very Odd.
Grafana - 8.2.5 Zabbix - 5.0.4 Grafana-Zabbix Plugin - 4.2.4
I confirm the problem. Very strange thing.
It's not so strange after some investigation. It's surely connected with data alignment, when it's disabled I don't have the issue.
I think the root of the issue is somewhere here: https://github.com/alexanderzobnin/grafana-zabbix/blob/f6e25409f163530b1affc61e47807a0b1e105715/src/datasource-zabbix/responseHandler.ts#L343
And as a result, I'm getting answer in the Inspector that looks like this: wide-cut.json.gz
I disabled data alignment just now and it did not fix the issue for me. But the first time I was playing around with those settings, it did get fixed briefly. Can't seem to put my finger on it.
I have the same issue.
Grafana | Zabbix | Grafana-Zabbix Plugin |
---|---|---|
8.3.1 | 5.0.18 | 4.2.4 |
It happens always when there are multiple queries for a panel and wide
is added only on metrics name of the first query.
I got this too.
I have the same issue. Grafana - 8.4.6 Zabbix - 5.4.12 Grafana-Zabbix Plugin - 4.2.6