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

Sort metrics in multiple requests. #21

Closed
alexanderzobnin opened this issue Jun 10, 2015 · 8 comments
Closed

Sort metrics in multiple requests. #21

alexanderzobnin opened this issue Jun 10, 2015 · 8 comments

Comments

@alexanderzobnin
Copy link
Collaborator

Metrics in multiple requests returns in random order.

@nucleusv
Copy link
Contributor

Needed sort by metric name if you request only one host
And if you request several hosts, sort by hostname and metric name

@alexanderzobnin alexanderzobnin added this to the grafana-zabbix 2.0.0 milestone Jun 10, 2015
@alexanderzobnin
Copy link
Collaborator Author

Fixed by 8eb9c58

@RandomReaper
Copy link

sort by hostname not working, tested in version 3.9.1

@alexanderzobnin
Copy link
Collaborator Author

@RandomReaper could you post a screenshot of your query?

@RandomReaper
Copy link

Here you go:

grafana-zabbix-host-order

Host is "/.*/" and order is the order in the hosts have been added to zabbix.

@alexanderzobnin
Copy link
Collaborator Author

I think it's due to sorting by name before setAliasByRegex(). I should check.

@RandomReaper
Copy link

without setting alias, the order is still wrong : 030 is still after 037, still the order in which the machines were added into zabbix.
screenshot_2018-07-04_09-37-57

@alexanderzobnin
Copy link
Collaborator Author

@RandomReaper Could you please open a new issue for this bug?

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

No branches or pull requests

3 participants