grafana-zabbix icon indicating copy to clipboard operation
grafana-zabbix copied to clipboard

'wide ' is prepended to metric names

Open juge2 opened this issue 3 years ago • 9 comments

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 image image

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?

juge2 avatar Nov 05 '21 11:11 juge2

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

bthresher183 avatar Nov 30 '21 15:11 bthresher183

I confirm the problem. Very strange thing.

iprok avatar Dec 02 '21 15:12 iprok

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

iprok avatar Dec 02 '21 18:12 iprok

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.

bthresher183 avatar Dec 02 '21 19:12 bthresher183

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.

polak785 avatar Dec 09 '21 17:12 polak785

I got this too.

Artyrm avatar Jan 19 '22 17:01 Artyrm

I have the same issue. Grafana - 8.4.6 Zabbix - 5.4.12 Grafana-Zabbix Plugin - 4.2.6

serrrios avatar May 06 '22 10:05 serrrios