Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upTarget order in Web UI not stable #2536
Comments
This comment has been minimized.
This comment has been minimized.
|
This is expected behaviour, we are ranging over a map. Can we know the
usecase for consistent ordering?
Thanks,
Goutham
|
This comment has been minimized.
This comment has been minimized.
|
Improving readability. Sometimes, I have to refresh the page to check the status of a target did change from Down to Up, and having to search for the line position after each refresh is a little annoying, especially when the target list become large. Sorting target by endpoint would also simplify the lookup of a specific target in the list. |
This comment has been minimized.
This comment has been minimized.
|
Agreed, having a consistent sort order would be nice for the refresh-and-check use case. |
This comment has been minimized.
This comment has been minimized.
|
Actually I'm not sure why it's not sorted already. https://golang.org/pkg/text/template/ says for |
This comment has been minimized.
This comment has been minimized.
|
Ah of course. The jobs are sorted, but the targets ( |
juliusv
added a commit
that referenced
this issue
Mar 30, 2017
discordianfish
assigned
juliusv
Mar 30, 2017
discordianfish
added
the
in progress
label
Mar 30, 2017
This comment has been minimized.
This comment has been minimized.
|
PR out in #2548 |
juliusv
added a commit
that referenced
this issue
Mar 31, 2017
juliusv
closed this
in
#2548
Mar 31, 2017
fabxc
removed
the
in progress
label
Mar 31, 2017
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 23, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Jean-Daniel commentedMar 28, 2017
What did you do?
Reload the target page in the prometheus Web Admin UI
What did you expect to see?
That the order of the target is the same across page reload
What did you see instead? Under which circumstances?
The target are display in random order that vary from one request to the other
Environment
Ubuntu 16.04
System information:
Linux 4.4.0-53-generic x86_64
Prometheus version:
prometheus, version 1.5.1 (branch: master, revision: c4686f7)