mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-12 14:27:27 -08:00
Fixes service-discovery view when accessed from unhealthy targets (#5915)
* fix service-discovery view Signed-off-by: Harkishen-Singh <harkishensingh@hotmail.com> * updated localStorage logic Signed-off-by: Harkishen-Singh <harkishensingh@hotmail.com> * sign off Signed-off-by: Harkishen-Singh <harkishensingh@hotmail.com> * committed vfs unicodes Signed-off-by: Harkishen-Singh <harkishensingh@hotmail.com>
This commit is contained in:
parent
02430f88da
commit
f0bb8129c3
|
@ -144,9 +144,9 @@ var Assets = func() http.FileSystem {
|
|||
"/static/js/targets.js": &vfsgen۰CompressedFileInfo{
|
||||
name: "targets.js",
|
||||
modTime: time.Date(1970, 1, 1, 0, 0, 1, 0, time.UTC),
|
||||
uncompressedSize: 2094,
|
||||
uncompressedSize: 2204,
|
||||
|
||||
compressedContent: []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xa4\x54\x3d\x6f\xdb\x30\x10\xdd\xf5\x2b\xae\x8c\x07\x0a\x70\x84\xa0\x63\x5d\x0f\x45\x51\xa0\xed\xd2\x21\xee\x1c\x50\xd4\x59\x64\x43\x93\x86\x78\x4a\x53\x24\xfe\xef\x05\x25\xea\xcb\x92\xd3\x04\x5d\x49\xde\x7b\xef\xee\xbd\xe3\xbe\xb6\x92\xb4\xb3\x40\xae\x2c\x0d\x7e\x77\xf9\x4e\xe4\x06\x79\x5e\x13\x39\xbb\x06\xaf\x5c\x6d\x8a\x2f\x8f\x47\x61\x8b\xf4\x29\x01\xd0\x7b\x88\x97\x99\x41\x5b\x92\x82\xed\x76\x0b\x37\x29\x3c\x41\x85\x54\x57\x76\x03\xa7\x24\xbe\x9b\x14\x43\xa8\x06\x88\xb5\x15\x1e\xdc\x03\x7e\x36\xc2\x7b\xce\xa4\x33\x46\x1c\x3d\x16\xd7\x14\xc8\x59\x9a\x89\xa2\x88\x77\xd8\x54\x8f\xae\x14\x1d\x0c\x67\x5e\xb9\xdf\x60\xd0\x7b\x96\x6e\x12\x80\x13\xa0\xf1\xf8\x02\xc5\x0c\x66\x60\x98\xb3\x8f\x28\x0e\xae\xc2\x48\x11\xba\x8a\xd0\x47\x51\xa1\x25\xcf\x59\xd6\x94\x5c\x4b\x67\x49\x68\x8b\x15\x4b\xb3\xbd\xb6\x05\x67\x1d\x54\x3b\xd6\xe9\x24\x36\x6f\x01\xca\x06\x79\x68\xf0\x80\x96\x2e\xa2\x9e\x92\xa4\xb7\x33\x88\xff\x64\x0c\xbf\x5b\x43\x8f\xd9\x5a\xb0\xe2\xc3\x41\x16\x9e\xf1\x85\xd2\x9f\x56\xa1\x30\xa4\xfe\x2c\x00\x48\x67\x3d\x81\xf6\x5f\xdb\x17\xb0\x9d\x42\xb6\xb2\xd5\xfb\x30\x63\xa2\x8a\x33\x19\xc6\xcc\xd2\x4c\xdb\x02\x1f\x7f\xec\x39\x2b\x84\x2d\x43\x87\xf0\x11\x6e\x36\x31\x2a\x3d\x5c\x08\xd2\x04\x4f\xe9\x02\x79\x1a\x52\x35\x16\xa9\xad\x26\xde\xea\x09\xe5\xef\x8c\x93\xc2\xdc\x92\xab\x44\x89\x99\x47\x83\x92\xb0\xd8\x89\x1c\x9e\x9f\xe1\xe2\xdd\x76\x0b\x4c\x18\x73\x4d\xa2\x2a\x91\x3c\x4b\xdb\xfc\xac\x38\xbb\x9a\x1c\x47\x9b\xf8\x38\x35\x42\x92\x7e\x88\xd1\x68\x4a\x16\x1c\x44\x21\x15\x8f\x4e\x8c\x63\x1a\x14\xbf\x28\xaa\xee\xc6\x3f\x68\x80\x41\xdb\xc2\xed\x7f\x2b\xec\x0d\x1f\xb2\xbe\xe2\x2c\xa6\x74\xa0\x91\x46\xcb\x7b\xde\xbb\xc0\x3b\x59\x6d\x26\x1a\xfc\x9d\x26\x83\x4d\x28\x48\x69\x1f\x4a\x9c\x47\x4f\x31\x12\x6d\x3a\x44\x1f\x0e\x5d\x04\x81\x0d\x46\x98\x4a\x57\xa4\x84\xbf\xb4\x9d\x1d\x25\x9c\xfb\x4a\xdf\x08\x0f\x7c\xd0\xb0\x86\x7e\xeb\xbb\x21\xc0\xf9\x37\x17\xf9\xd6\x40\x55\x8d\xf1\xd1\xc8\xa4\xb9\x9c\xf3\x7f\xe4\x2d\x6a\xfa\x56\xfe\x2d\x67\x2f\x8c\xef\xf5\x04\x43\xda\x21\x05\x13\x7f\xb9\xfc\x4e\xa1\x28\xb0\x02\xd1\x39\x38\x18\x72\xb7\x06\xa3\xed\xfd\xd4\x17\x29\xa4\x6a\xc2\x65\xf0\x96\x04\x05\x77\x26\x6a\xcb\xa8\x76\xc5\x9b\xda\x91\x35\x51\x42\x98\xc5\x1c\x24\x24\x75\xd4\x53\x3f\x89\xe5\xa6\x32\xaf\x73\xa3\x6d\xe9\xbb\x58\xb1\x17\xfb\xbc\x0a\xa9\xdc\xb5\xc1\x83\x0f\xda\x1e\xeb\xf0\xf1\x49\x15\xfe\x8e\xbe\xdf\x59\xfe\xc2\xf3\x51\xf6\x16\x33\xd6\xbd\x9a\x6d\x7f\xdf\xc0\x2b\xb7\xf9\xa2\xeb\x6c\xb4\xcf\x6c\x7d\xc6\x32\x0b\xd9\x58\xcf\xe5\xc5\x7f\xe3\x06\xbf\x5a\xdb\x02\xe3\xd4\x8e\x53\x92\xac\x78\xf8\x6e\xd3\x4d\xf2\x37\x00\x00\xff\xff\x81\x58\x5c\xf6\x2e\x08\x00\x00"),
|
||||
compressedContent: []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xa4\x54\x4d\x6f\xdb\x38\x10\xbd\xeb\x57\xcc\x32\x3e\x50\x80\x23\x04\x7b\x5c\xaf\x0f\x8b\x45\x81\xb6\x97\x1e\xe2\x9e\x03\x9a\x1a\x8b\x6c\x68\xd2\x10\xc7\x69\x8a\xc4\xff\xbd\x18\x8b\xfa\xb2\x65\x27\x41\xaf\xd2\xcc\x9b\x37\xf3\x1e\xdf\x66\xef\x35\xd9\xe0\x81\x42\x55\x39\xfc\x1a\xd6\x2b\xb5\x76\x28\xd7\x7b\xa2\xe0\xe7\x10\x4d\xd8\xbb\xf2\xd3\xf3\x4e\xf9\x32\x7f\xc9\x00\xec\x06\xd2\xcf\xc2\xa1\xaf\xc8\xc0\x72\xb9\x84\xbb\x1c\x5e\xa0\x46\xda\xd7\x7e\x01\x87\x2c\xd5\x8d\x9a\x81\xbb\x01\x52\x6f\x8d\xdb\xf0\x84\xff\x3b\x15\xa3\x14\x3a\x38\xa7\x76\x11\xcb\x5b\xe2\xe1\x22\x2f\x54\x59\xa6\x7f\x78\xec\x1e\xfc\x32\xb4\x75\x52\x44\x13\x7e\x82\xc3\x18\x45\xbe\xc8\x00\x0e\x80\x2e\xe2\x95\x11\x67\x30\xfd\x84\xf3\xe9\x83\x11\xdb\x50\x63\x1a\xc1\x5b\x25\xe8\x9d\xaa\xd1\x53\x94\xa2\x38\xb6\xdc\xea\xe0\x49\x59\x8f\xb5\xc8\x8b\x8d\xf5\xa5\x14\x2d\x54\x73\xd6\xf1\x25\x16\x1f\x01\x2a\x7a\x7a\xe8\x70\x8b\x9e\x2e\xa2\x1e\xb2\xac\x93\x93\xc9\xff\xe7\x9c\x7c\x98\x43\x87\xd9\x48\x30\x93\xfd\x87\x82\xcb\xe4\x44\xeb\x77\x6f\x50\x39\x32\xbf\x26\x00\x74\xf0\x91\xc0\xc6\xcf\x4d\x05\x2c\xc7\x90\x0d\x6d\xf3\x37\xdf\x98\xa8\x96\x42\xf3\x99\x45\x5e\x58\x5f\xe2\xf3\xb7\x8d\x14\xa5\xf2\x15\x6f\x08\xff\xc2\xdd\x22\x59\xa5\x83\x63\x23\x8d\xf0\x8c\x2d\x51\xe6\xec\xaa\x21\x49\xeb\x2d\xc9\x86\x0f\xb7\xcf\xa4\xb8\xd9\xb7\x9c\x6f\x49\xd5\x15\x12\xcf\x6c\x2c\xda\x7a\x8f\x2b\xff\x72\x41\x2b\x77\x4f\xa1\x56\x15\x16\x11\x1d\x6a\xc2\x72\xa5\xd6\x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e\x13\x13\xc7\x72\x1c\xb2\x6c\x26\x39\xdc\xf3\x45\xf6\x3b\x00\x00\xff\xff\x7a\x51\xde\x61\x9c\x08\x00\x00"),
|
||||
},
|
||||
"/static/vendor": &vfsgen۰DirInfo{
|
||||
name: "vendor",
|
||||
|
|
|
@ -21,15 +21,19 @@ function showUnhealthy(_, container) {
|
|||
}
|
||||
|
||||
function init() {
|
||||
if (!localStorage.selectedTab || localStorage.selectedTab == "all-targets"){
|
||||
$("#all-targets").parent().addClass("active");
|
||||
if ($("#unhealthy-targets").length) {
|
||||
if (!localStorage.selectedTab || localStorage.selectedTab == "all-targets") {
|
||||
$("#all-targets").parent().addClass("active");
|
||||
$(".table-container").each(showAll);
|
||||
} else if (localStorage.selectedTab == "unhealthy-targets") {
|
||||
$("#unhealthy-targets").parent().addClass("active");
|
||||
$(".table-container").each(showUnhealthy);
|
||||
}
|
||||
} else {
|
||||
$(".table-container").each(showAll);
|
||||
} else if (localStorage.selectedTab == "unhealthy-targets") {
|
||||
$("#unhealthy-targets").parent().addClass("active");
|
||||
$(".table-container").each(showUnhealthy);
|
||||
}
|
||||
|
||||
$("button.targets").click(function () {
|
||||
$("button.targets").click(function() {
|
||||
const tableTitle = $(this).closest("h2").find("a").attr("id");
|
||||
|
||||
if ($(this).hasClass("collapsed-table")) {
|
||||
|
|
Loading…
Reference in a new issue