Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ Roadmap 时间点:
| 姓名 | 角色 | github地址|
| -------- | -------- | -------- |
| SoftwareKing | Owner | https://github.com/SoftwareKing|
| iShawnWang | 前端开发 |https://github.com/iShawnWang |
| iShawnWang | 前端开发 | https://github.com/iShawnWang |
| homeant | 前后台开发 | https://github.com/homeant |

### 1.3 Moss的功能

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,18 @@ public HaloMetricResponse HaloMetric() {
haloMetricResponse.setJvmMemoryUsedHeap(String.valueOf(jvmNemoryUsedHeap.getMeasurements().get(0).getValue()));
MetricResponse jvmNemoryUsedNonHeap=metric("jvm.memory.used", Arrays.asList("area:nonheap") );
haloMetricResponse.setJvmMemoryUsedNonHeap(String.valueOf(jvmNemoryUsedNonHeap.getMeasurements().get(0).getValue()));

// 2.0 actuator/metrics 中没有这个key
MetricResponse systemLoadAverage=metric("system.load.average.1m", null );
haloMetricResponse.setSystemloadAverage(String.valueOf(systemLoadAverage.getMeasurements().get(0).getValue()));

if(systemLoadAverage!=null){
haloMetricResponse.setSystemloadAverage(String.valueOf(systemLoadAverage.getMeasurements().get(0).getValue()));
}
MetricResponse heapCommitted=metric("jvm.memory.committed", Arrays.asList("area:heap") );
haloMetricResponse.setHeapCommitted(String.valueOf(heapCommitted.getMeasurements().get(0).getValue()));
MetricResponse nonheapCommitted=metric("jvm.memory.committed", Arrays.asList("area:nonheap") );
haloMetricResponse.setNonheapCommitted(String.valueOf(nonheapCommitted.getMeasurements().get(0).getValue()));

MetricResponse heapMax=metric("jvm.memory.max", Arrays.asList("area:heap") );
haloMetricResponse.setHeapMax(String.valueOf(heapMax.getMeasurements().get(0).getValue()));


getGcinfo(haloMetricResponse);
MemoryUsage memoryUsage = ManagementFactory.getMemoryMXBean()
.getHeapMemoryUsage();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ public class AppController {
*/
@PostMapping("/add")
public ResultData addApp(@RequestBody AppModel appModel) {
ResultData result = new ResultData();
appModel.setIsDeleted(Constants.IS_DELETE_FALSE);
appService.addApp(appModel);
return result;
//返回成功状态
return ResultData.builder().data(appModel).build();
}

@GetMapping("/{id}")
Expand Down
2 changes: 1 addition & 1 deletion moss-web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<artifactId>springfox-swagger-ui</artifactId>
<version>2.9.2</version>
</dependency>



</dependencies>
Expand Down
2 changes: 0 additions & 2 deletions moss-web/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ spring:
testOnReturn: false
poolPreparedStatements: true
maxOpenPreparedStatements: 20

boot:
admin:
## 兼容配置Spring Boot 1.X的端点和自定义的端点
Expand All @@ -29,7 +28,6 @@ spring:
server:
port: 8080


eureka:
instance:
leaseRenewalIntervalInSeconds: 10
Expand Down
Empty file.
84 changes: 42 additions & 42 deletions moss-web/src/main/resources/static/umi.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion moss-web/src/main/resources/static/umi.js

Large diffs are not rendered by default.