【7.0.1】【monitor】更新控制器名

pull/3/head
fengshuonan 2021-03-06 10:30:36 +08:00
parent defb78ba09
commit 2657c2e9fb
1 changed files with 3 additions and 29 deletions

View File

@ -22,17 +22,14 @@ import java.util.Map;
import java.util.Objects;
/**
*
* prometheus
*
* @author chenli
* @date 2020/12/30 16:40
*/
@Controller
@ApiResource(name = "项目监控")
public class MonitorController {
@Resource
private SystemHardwareInfoHolder systemHardwareInfoHolder;
@ApiResource(name = "来自prometheus的监控")
public class PrometheusMonitorController {
@Value("${spring.application.name}")
private String name;
@ -46,29 +43,6 @@ public class MonitorController {
@Resource
private PrometheusApi service;
/**
*
*
* @author fengshuonan
* @date 2018/12/24 22:43
*/
@GetResource(name = "服务器监控", path = "/view/monitor/systemInfo")
public String systemInfo(Model model) {
model.addAttribute("server", systemHardwareInfoHolder.getSystemHardwareInfo());
return "/modular/system/monitor/systemInfo.html";
}
/**
* druid sql
*
* @author chenli
* @date 2021/1/4 16:32
*/
@GetResource(name = "SQL监控", path = "/view/monitor/druid")
public String druidInfo() {
return "/modular/system/monitor/druid.html";
}
/**
* tomcat
*