️ pprof 性能调优 / 计划任务支持秒级

This commit is contained in:
naiba
2021-09-29 19:58:02 +08:00
parent 1f1e0b6db7
commit 47dfa4777b
22 changed files with 149 additions and 105 deletions

View File

@@ -5,7 +5,7 @@
<img src="/static/logo.svg?v20210804">
</div>
{{if .IsAdminPage}}
<a class='item{{if eq .MatchedPath "/server"}} active{{end}}' href="/server"><i class="server icon"></i>资产</a>
<a class='item{{if eq .MatchedPath "/server"}} active{{end}}' href="/server"><i class="server icon"></i>主机</a>
<a class='item{{if eq .MatchedPath "/monitor"}} active{{end}}' href="/monitor"><i class="rss icon"></i>服务</a>
<a class='item{{if eq .MatchedPath "/cron"}} active{{end}}' href="/cron"><i class="clock icon"></i>任务</a>
<a class='item{{if eq .MatchedPath "/notification"}} active{{end}}' href="/notification"><i class="bell icon"></i>报警</a>

View File

@@ -10,7 +10,7 @@
</div>
<div class="field">
<label>计划</label>
<input type="text" name="Scheduler" placeholder="0 3 * * *每天3点">
<input type="text" name="Scheduler" placeholder="0 0 3 * * *每天3点">
</div>
<div class="field">
<label>命令</label>
@@ -41,7 +41,7 @@
</form>
<div class="ui warning message">
<p>
计划的格式为:<code>* * * * *</code> 分 时 天 月 星期,详情见 <a
计划的格式为:<code>* * * * * *</code>&nbsp; 分 时 天 月 星期,详情见 <a
href="https://pkg.go.dev/github.com/robfig/cron/v3#hdr-CRON_Expression_Format"
target="_blank">计划表达式格式</a><br>
命令:就像写 shell/bat 脚本一样,但是不推荐换行,多个命令使用 <code>&&</code>/<code>&</code> 连接,如果遇到 xxx 命令找不到,可能是

View File

@@ -5,7 +5,7 @@
<div class="ui grid">
<div class="right floated right aligned twelve wide column">
<button class="ui right labeled nezha-primary-btn icon button" onclick="addOrEditMonitor()">
<i class="add icon"></i> 添加监控
<i class="add icon"></i> 添加服务
</button>
</div>
</div>
@@ -43,7 +43,7 @@
<i class="edit icon"></i>
</button>
<button class="ui button"
onclick="showConfirm('删除监控','确认删除此监控',deleteRequest,'/api/monitor/'+{{$monitor.ID}})">
onclick="showConfirm('删除服务','确认删除此服务',deleteRequest,'/api/monitor/'+{{$monitor.ID}})">
<i class="trash alternate outline icon"></i>
</button>
</div>

View File

@@ -6,7 +6,7 @@
<div class="ui grid">
<div class="right floated right aligned twelve wide column">
<button class="ui right labeled nezha-primary-btn icon button" onclick="addOrEditServer()"><i
class="add icon"></i> 添加服务器
class="add icon"></i> 添加主机
</button>
</div>
</div>
@@ -56,7 +56,7 @@
<i class="edit icon"></i>
</button>
<button class="ui button"
onclick="showConfirm('删除节点','确认删除此监控节点',deleteRequest,'/api/server/'+{{$server.ID}})">
onclick="showConfirm('删除主机','确认删除此主机',deleteRequest,'/api/server/'+{{$server.ID}})">
<i class="trash alternate outline icon"></i>
</button>
</div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 481 KiB

View File

@@ -1 +0,0 @@
# 默认主题

Binary file not shown.

After

Width:  |  Height:  |  Size: 856 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB