Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single host items contain the hostname in the legend #1335

Closed
osas1111 opened this issue Oct 22, 2021 · 9 comments
Closed

Single host items contain the hostname in the legend #1335

osas1111 opened this issue Oct 22, 2021 · 9 comments
Labels
Milestone

Comments

@osas1111
Copy link

Describe the bug
Since 4.2.0 version of Grafana plugin I facing a problem with legend presentation. For single host items hostname is present the same as for multi-host graph/time_series. These changes was not present in change logs so I want to make sure before changing my dashboards for new version

Expected behavior
No hostname in legend for single host graph/time_series

Screenshots
expected:
image

current:
image

Software versions

Grafana Zabbix Grafana-Zabbix Plugin
8.1.4 5.4.4 4.2.4
@Phobos-7
Copy link

Phobos-7 commented Nov 10, 2021

I've managed to remediate this using setAlias and replaceAlias... But still, it would be better not to show hostname by default as it was in earlier versions.

@rike50
Copy link

rike50 commented Mar 18, 2022

Same problem here
Grafana 8.4.2, Zabbix 5.2.7, Grafana-Zabbix 4.2.5

@stvolinko
Copy link

Got same on my testing instalation:
Grafana: 8.2.6
Zabbix-plugin: 4.2.5
Zabbix: 5.0.19

@alexanderzobnin alexanderzobnin added this to the 4.3.2 milestone Apr 3, 2023
@alexanderzobnin alexanderzobnin modified the milestones: 4.3.2, 4.4 Jul 27, 2023
@alexanderzobnin
Copy link
Collaborator

There's a workaround - you can use setAlias($__zbx_item_name) to force plugin use only item name.

@vryzhevsky
Copy link

There's a workaround - you can use setAlias($__zbx_item_name) to force plugin use only item name.

This is not a good option for existing environments - it requires to edit hundreds existing dashboards

@alexanderzobnin
Copy link
Collaborator

@vryzhevsky Yes, I agree, that's why I called it a workaround. I'm looking into this issue, seems, it's not that straightforward since plugin now uses data frame format for response, but I hope I can find out a solution.

@vryzhevsky
Copy link

Hi, new version 4.1.1 did not fix the issue

@isaqueprofeta
Copy link

You should use replaceAlias function to remove the hostname part. look at the steps on this video: https://youtu.be/-dT8Yu0Upk4?list=PLTAdaA8clXXK9A9rPjBKqxho4AGSTb6un&t=352

@onanok
Copy link

onanok commented Nov 13, 2023

When using "Direct DB Connection" on version 4.4.3 , still not fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants