| | |
| | | return FebsUtil.view("monitor/httpTrace"); |
| | | } |
| | | |
| | | @GetMapping("jvm") |
| | | @RequiresPermissions("jvm:view") |
| | | public String jvmInfo(Model model) { |
| | | List<FebsMetricResponse> jvm = actuatorHelper.getMetricResponseByType("jvm"); |
| | | JvmInfo jvmInfo = actuatorHelper.getJvmInfoFromMetricData(jvm); |
| | | model.addAttribute("jvm", jvmInfo); |
| | | return FebsUtil.view("monitor/jvmInfo"); |
| | | } |
| | | |
| | | @GetMapping("tomcat") |
| | | @RequiresPermissions("tomcat:view") |
| | | public String tomcatInfo(Model model) { |
| | | List<FebsMetricResponse> tomcat = actuatorHelper.getMetricResponseByType("tomcat"); |
| | | TomcatInfo tomcatInfo = actuatorHelper.getTomcatInfoFromMetricData(tomcat); |
| | | model.addAttribute("tomcat", tomcatInfo); |
| | | return FebsUtil.view("monitor/tomcatInfo"); |
| | | } |
| | | |
| | | @GetMapping("server") |
| | | @RequiresPermissions("server:view") |
| | | public String serverInfo(Model model) { |
| | | List<FebsMetricResponse> jdbcInfo = actuatorHelper.getMetricResponseByType("jdbc"); |
| | | List<FebsMetricResponse> systemInfo = actuatorHelper.getMetricResponseByType("system"); |
| | | List<FebsMetricResponse> processInfo = actuatorHelper.getMetricResponseByType("process"); |
| | | |
| | | ServerInfo serverInfo = actuatorHelper.getServerInfoFromMetricData(jdbcInfo, systemInfo, processInfo); |
| | | model.addAttribute("server", serverInfo); |
| | | return FebsUtil.view("monitor/serverInfo"); |
| | | } |
| | | |
| | | @GetMapping("swagger") |
| | | public String swagger() { |
| | | return FebsUtil.view("monitor/swagger"); |
| | | } |
| | | // @GetMapping("jvm") |
| | | // @RequiresPermissions("jvm:view") |
| | | // public String jvmInfo(Model model) { |
| | | // List<FebsMetricResponse> jvm = actuatorHelper.getMetricResponseByType("jvm"); |
| | | // JvmInfo jvmInfo = actuatorHelper.getJvmInfoFromMetricData(jvm); |
| | | // model.addAttribute("jvm", jvmInfo); |
| | | // return FebsUtil.view("monitor/jvmInfo"); |
| | | // } |
| | | // |
| | | // @GetMapping("tomcat") |
| | | // @RequiresPermissions("tomcat:view") |
| | | // public String tomcatInfo(Model model) { |
| | | // List<FebsMetricResponse> tomcat = actuatorHelper.getMetricResponseByType("tomcat"); |
| | | // TomcatInfo tomcatInfo = actuatorHelper.getTomcatInfoFromMetricData(tomcat); |
| | | // model.addAttribute("tomcat", tomcatInfo); |
| | | // return FebsUtil.view("monitor/tomcatInfo"); |
| | | // } |
| | | // |
| | | // @GetMapping("server") |
| | | // @RequiresPermissions("server:view") |
| | | // public String serverInfo(Model model) { |
| | | // List<FebsMetricResponse> jdbcInfo = actuatorHelper.getMetricResponseByType("jdbc"); |
| | | // List<FebsMetricResponse> systemInfo = actuatorHelper.getMetricResponseByType("system"); |
| | | // List<FebsMetricResponse> processInfo = actuatorHelper.getMetricResponseByType("process"); |
| | | // |
| | | // ServerInfo serverInfo = actuatorHelper.getServerInfoFromMetricData(jdbcInfo, systemInfo, processInfo); |
| | | // model.addAttribute("server", serverInfo); |
| | | // return FebsUtil.view("monitor/serverInfo"); |
| | | // } |
| | | // |
| | | // @GetMapping("swagger") |
| | | // public String swagger() { |
| | | // return FebsUtil.view("monitor/swagger"); |
| | | // } |
| | | } |