mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-08-30 12:45:32 +08:00
- 6 张表加 node_id 字段 + position/stat 改复合唯一键(migration) - 6 个 Scheme 同步 node_id 注解 + 唯一键 - Reader 带 node_id 参数 + 懒加载接管(getLastPosition 回退查 node_id='') - Aggregator 全局行(node_id='')+ 按节点循环 insertAggregatesForScope - Stat 所有查询方法加 where node_id 条件 - Dashboard 控制器/视图加节点筛选下拉框 + AJAX 带 node_id - AccessLog 列表加节点列 + 采集进度卡片显示节点信息 - import 定时任务 run_type 改 all(每节点采集自己的日志) - v2.4.0 升级脚本追加 ALTER TABLE(幂等 check-then-alter) - 菜单调整:去掉 Nginx 顶级菜单 + 读取位置管理,改为系统管理下挂两个子菜单 - ulthon-timer 文档补充 run_type=all 多节点部署注意事项
52 lines
2.3 KiB
PHP
52 lines
2.3 KiB
PHP
<div class="layuimini-container">
|
|
<div class="layuimini-main">
|
|
{if condition="$positions->isEmpty()"}
|
|
<div class="layui-card" style="margin-bottom: 10px;">
|
|
<div class="layui-card-body" style="padding: 12px 15px;">
|
|
<i class="layui-icon layui-icon-tips" style="color: #FFB800; font-size: 16px;"></i>
|
|
<span style="color: #666;">暂无采集位置记录,请确认 nginx_log.enable 已开启且 timer 正在运行。</span>
|
|
</div>
|
|
</div>
|
|
{else/}
|
|
{volist name="positions" id="pos"}
|
|
<div class="layui-card" style="margin-bottom: 10px;">
|
|
<div class="layui-card-body" style="padding: 12px 15px;">
|
|
<div style="display: flex; flex-wrap: wrap; gap: 24px; align-items: center; font-size: 13px;">
|
|
<div>
|
|
<span style="color: #999;">监控文件</span><br>
|
|
<code style="font-size: 12px;">{$pos.file_path}</code>
|
|
</div>
|
|
<div>
|
|
<span style="color: #999;">节点</span><br>
|
|
<strong>{$pos.node_id}</strong>
|
|
</div>
|
|
<div>
|
|
<span style="color: #999;">已读取</span><br>
|
|
<strong>{$pos.offset_human}</strong>
|
|
</div>
|
|
<div>
|
|
<span style="color: #999;">最后采集</span><br>
|
|
<span>{$pos.last_read_time_text}</span>
|
|
</div>
|
|
<div>
|
|
<span style="color: #999;">解析失败</span><br>
|
|
{if condition="$pos.parse_fail_count > 0"}
|
|
<span style="color: #FF5722; font-weight: bold;">{$pos.parse_fail_count} 次</span>
|
|
{else/}
|
|
<span style="color: #5FB878;">0 次</span>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{/volist}
|
|
{/if}
|
|
|
|
<table id="currentTable" class="layui-table layui-hide"
|
|
data-auth-index="{:auth('nginx.access_log/index')}"
|
|
data-auth-read="{:auth('nginx.access_log/read')}"
|
|
lay-filter="currentTable">
|
|
</table>
|
|
</div>
|
|
</div>
|