Skip to content

Commit

Permalink
Merge pull request #633 from didi/master
Browse files Browse the repository at this point in the history
合并主分支
  • Loading branch information
ZQKC authored Sep 29, 2022
2 parents 9fc9c54 + f414b47 commit 045f652
Show file tree
Hide file tree
Showing 64 changed files with 764 additions and 469 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Before sending pull request to this project, please read and follow guidelines b

Add device mode, API version, related log, screenshots and other related information in your pull request if possible.

NOTE: We assume all your contribution can be licensed under the [Apache License 2.0](LICENSE).
NOTE: We assume all your contribution can be licensed under the [AGPL-3.0](LICENSE).

## Issues

Expand Down
27 changes: 27 additions & 0 deletions Releases_Notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@


## v3.0.0

**Bug修复**
- 修复 Group 指标防重复采集不生效问题
- 修复自动创建 ES 索引模版失败问题
- 修复 Group+Topic 列表中存在已删除Topic的问题
- 修复使用 MySQL-8 ,因兼容问题, start_time 信息为 NULL 时,会导致创建任务失败的问题
- 修复 Group 信息表更新时,出现死锁的问题
- 修复图表补点逻辑与图表时间范围不适配的问题


**体验优化**
- 按照资源类别,拆分健康巡检任务
- 优化 Group 详情页的指标为实时获取
- 图表拖拽排序支持用户级存储
- 多集群列表 ZK 信息展示兼容无 ZK 情况
- Topic 详情消息预览支持复制功能
- 部分内容大数字支持千位分割符展示


**新增**
- 集群信息中,新增 Zookeeper 客户端配置字段
- 集群信息中,新增 Kafka 集群运行模式字段
- 新增 docker-compose 的部署方式



## v3.0.0-beta.3

**文档**
Expand Down
19 changes: 15 additions & 4 deletions docs/install_guide/版本升级手册.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,28 @@
## 6.2、版本升级手册

注意:如果想升级至具体版本,需要将你当前版本至你期望使用版本的变更统统执行一遍,然后才能正常使用。
注意:
- 如果想升级至具体版本,需要将你当前版本至你期望使用版本的变更统统执行一遍,然后才能正常使用。
- 如果中间某个版本没有升级信息,则表示该版本直接替换安装包即可从前一个版本升级至当前版本。


### 6.2.0、升级至 `master` 版本

暂无


### 6.2.1、升级至 `v3.0.0` 版本

**SQL 变更**

```sql
ALTER TABLE `ks_km_physical_cluster`
ADD COLUMN `zk_properties` TEXT NULL COMMENT 'ZK配置' AFTER `jmx_properties`;
```

### 6.2.1、升级至 `v3.0.0-beta.2`版本
---


### 6.2.2、升级至 `v3.0.0-beta.2`版本

**配置变更**

Expand Down Expand Up @@ -82,7 +93,7 @@ ALTER TABLE `logi_security_oplog`

---

### 6.2.2、升级至 `v3.0.0-beta.1`版本
### 6.2.3、升级至 `v3.0.0-beta.1`版本

**SQL 变更**

Expand All @@ -101,7 +112,7 @@ ALTER COLUMN `operation_methods` set default '';

---

### 6.2.3`2.x`版本 升级至 `v3.0.0-beta.0`版本
### 6.2.4`2.x`版本 升级至 `v3.0.0-beta.0`版本

**升级步骤:**

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,15 +272,11 @@ private PaginationResult<GroupMetrics> pagingGroupTopicPartitionMetrics(Long clu


// 获取Group指标信息
Result<List<GroupMetrics>> groupMetricsResult = groupMetricService.listPartitionLatestMetricsFromES(
clusterPhyId,
groupName,
topicName,
latestMetricNames == null? Arrays.asList(): latestMetricNames
);
Result<List<GroupMetrics>> groupMetricsResult = groupMetricService.collectGroupMetricsFromKafka(clusterPhyId, groupName, latestMetricNames == null ? Arrays.asList() : latestMetricNames);


// 转换Group指标
List<GroupMetrics> esGroupMetricsList = groupMetricsResult.hasData()? groupMetricsResult.getData(): new ArrayList<>();
List<GroupMetrics> esGroupMetricsList = groupMetricsResult.hasData() ? groupMetricsResult.getData().stream().filter(elem -> topicName.equals(elem.getTopic())).collect(Collectors.toList()) : new ArrayList<>();
Map<Integer, GroupMetrics> esMetricsMap = new HashMap<>();
for (GroupMetrics groupMetrics: esGroupMetricsList) {
esMetricsMap.put(groupMetrics.getPartitionId(), groupMetrics);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;


/**
* @author didi
*/
Expand All @@ -22,6 +25,7 @@ public class MetricDetailDTO extends BaseDTO {
@ApiModelProperty("指标是否显示")
private Boolean set;

@NotNull(message = "MetricDetailDTO的rank字段应不为空")
@ApiModelProperty("指标优先级")
private Integer rank;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import java.util.List;
import java.util.Map;

Expand All @@ -19,6 +20,7 @@ public class UserMetricConfigDTO extends BaseDTO {
@ApiModelProperty("指标展示设置项,key:指标名;value:是否展现(true展现/false不展现)")
private Map<String, Boolean> metricsSet;

@Valid
@ApiModelProperty("指标自定义属性列表")
private List<MetricDetailDTO> metricDetailDTOList;
}
Loading

0 comments on commit 045f652

Please sign in to comment.