milvus/internal/http/webui/channels.html
jaime 9d16b972ea
feat: add tasks page into management WebUI (#37002)
issue: #36621

1. Add API to access task runtime metrics, including:
  - build index task
  - compaction task
  - import task
- balance (including load/release of segments/channels and some leader
tasks on querycoord)
  - sync task
2. Add a debug model to the webpage by using debug=true or debug=false
in the URL query parameters to enable or disable debug mode.

Signed-off-by: jaime <yun.zhang@zilliz.com>
2024-10-28 10:13:29 +08:00

158 lines
5.2 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Milvus WebUI - Channels</title>
<meta name="description" content="Milvus Management WebUI">
<link href="./static/css/bootstrap.min.css" rel="stylesheet">
<link href="./static/css/style.css" rel="stylesheet">
<script src="./static/js/jquery.min.js"></script>
<script src="./static/js/bootstrap.min.js"></script>
<script src="./static/js/bootstrap.bundle.min.js"></script>
<script src="./static/js/render.js"></script>
<script src="./static/js/common.js"></script>
<script src="./static/js/mockdata.js"></script>
</head>
<body>
<div class="container-fluid">
<div id="header"></div>
<div class="row">
<div class="col-md-2">
</div>
<div class="col-md-8">
<h2>
Channel Checkpoints
</h2>
<table id="channelCP" class="table table-hover">
<thead class="thead-light">
<tr>
<th scope="col">Channel Name</th>
<th scope="col">Collection ID</th>
<th scope="col">Checkpoint Ts</th>
<th scope="col">Checkpoint Offset</th>
<th scope="col">Datanode</th>
</tr>
</thead>
<tbody>
<tr>
<td>channel1</td>
<td>11</td>
<td>2022-11-11 12:00:00</td>
<td>{ledgerID:1, entryID:1, batchIdx:0}</td>
<td>datanode1</td>
</tr>
<tr>
<td>channel2</td>
<td>22</td>
<td>2022-11-11 12:00:00</td>
<td>{ledgerID:2, entryID:2, batchIdx:0}</td>
<td>datanode1</td>
</tr>
</tbody>
</table>
<h2>
Watched Channels On Datanode
</h2>
<table id="watchedChDataNode" class="table table-hover">
<thead class="thead-light">
<tr>
<th scope="col">Channel Name</th>
<th scope="col">Collection ID</th>
<th scope="col">Consume Rate/s</th>
<th scope="col">Latency</th>
<th scope="col">TimeTickLag</th>
<th scope="col">State</th>
<th scope="col">Datanode</th>
</tr>
</thead>
<tbody>
<tr>
<td>channel1</td>
<td>200</td>
<td>11</td>
<td>50ms</td>
<td>100ms</td>
<td>watching</td>
<td>datanode1</td>
</tr>
<tr>
<td>channel1</td>
<td>200</td>
<td>11</td>
<td>50ms</td>
<td>100ms</td>
<td>watched</td>
<td>datanode2</td>
</tr>
</tbody>
</table>
<h2>
Watched Channels On QueryNode
</h2>
<table id="watchedChQueryNode" class="table table-hover">
<thead class="thead-light">
<tr>
<th scope="col">Channel Name</th>
<th scope="col">Collection ID</th>
<th scope="col">Consume Rate/s</th>
<!-- consume latency-->
<th scope="col">Latency</th>
<th scope="col">TimeTickLag</th>
<th scope="col">State</th>
<th scope="col">Datanode</th>
</tr>
</thead>
<tbody>
<tr>
<td>channel1</td>
<td>200</td>
<td>11</td>
<td>50ms</td>
<td>100ms</td>
<td>watching</td>
<td>querynode1</td>
</tr>
<tr>
<td>channel2</td>
<td>200</td>
<td>11</td>
<td>50ms</td>
<td>100ms</td>
<td>watching</td>
<td>querynode2</td>
</tr>
</tbody>
</table>
</div>
<div class="col-md-2">
</div>
</div>
<div id="footer"></div>
</div>
<script>
$(document).ready(function(){
$('#header').load("header.html");
$('#footer').load("footer.html");
});
// load cluster information data
document.addEventListener("DOMContentLoaded", function() {
fetch(MILVUS_URI + "/")
.then(text => {
//TODO add channel render
throw new Error("Unimplemented API")
})
.catch(error => {
handleError(error);
});
});
</script>
</body>
</html>