refactor(info-query): 优化跨天信息和基本信息查询

This commit is contained in:
2023-06-13 10:45:33 +08:00
parent c1a9e5b24b
commit 04a23431f7
6 changed files with 229 additions and 137 deletions

View File

@@ -35,6 +35,7 @@ function overviewYarnJob(cluster, search, queue, yarnQueue) {
}
]
},
' ',
{
type: 'service',
className: 'inline',
@@ -120,6 +121,7 @@ function overviewTab() {
]
},
{type: 'divider'},
'<span class="italic text-gray-500 my-2">表数量 (重点表数量, 普通表数量)</span>',
{
type: 'service',
api: '${base}/overview',
@@ -128,29 +130,21 @@ function overviewTab() {
body: [
{
type: 'tpl',
tpl: '逻辑表:<span class="font-bold mr-1">${table_total}</span>',
tpl: '逻辑表:<span class="font-bold mr-1">${PADSTART(table_count, 4)} (<span class="text-primary">${PADSTART(table_focus_count, 4)}</span>, ${PADSTART(table_count - table_focus_count, 4)})</span>',
},
'<br>',
{
type: 'tpl',
tpl: '湖底表:<span class="font-bold mr-1">${hudi_total}</span>',
},
'<br>',
{
type: 'tpl',
tpl: '重点表:<span class="font-bold mr-1">${focus_count}</span>',
},
'<br>',
{
type: 'tpl',
tpl: '普通表:<span class="font-bold">${normal_count}</span>',
tpl: '湖底表:<span class="font-bold mr-1">${PADSTART(hudi_count, 4)} (<span class="text-primary">${PADSTART(hudi_focus_count, 4)}</span>, ${PADSTART(hudi_count - hudi_focus_count, 4)})</span>',
},
]
},
{type: 'divider'},
'<span class="italic text-gray-500 my-2">集群 (集群总资源使用,队列资源使用)(总压缩任务数,调度中任务数,运行中任务数,失败任务数)</span>',
overviewYarnJob('b5-sync', 'Sync', undefined, 'default'),
{type: 'divider'},
{
className: 'my-2',
type: 'service',
api: `\${base}/overview/queue?queue=compaction-queue-pre`,
interval: 10000,
@@ -158,7 +152,7 @@ function overviewTab() {
body: [
{
type: 'tpl',
tpl: 'Pre<span class="font-bold">${size}</span>',
tpl: '预调度队列<span class="font-bold">${size}</span>',
}
]
},