Skip to content

Commit

Permalink
[hertzbeat] release hertzbeat version v1.4.1 (#1261)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsun28 authored Sep 25, 2023
1 parent 3899a62 commit a1cdaa4
Show file tree
Hide file tree
Showing 21 changed files with 63 additions and 40 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ git push origin a-feature-branch

另外,我们的项目有比较规范和严格的 CI 检查流程,在提交 PR 之后会触发 CI,请注意是否通过 CI 检查。

最后,Committer 可以将 PR 合并入DEV主分支
最后,Committer 可以将 PR 合并入 master 主分支

### 代码被合并后

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

**Home: [hertzbeat.dromara.org](https://hertzbeat.dromara.org) | [hertzbeat.com](https://hertzbeat.com)**

**Cloud: [tancloud.cn](https://tancloud.cn)**
**Cloud: [console.tancloud.cn](https://console.tancloud.cn)**

## 🎡 <font color="green">Introduction</font>

Expand Down
2 changes: 1 addition & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

**官网: [hertzbeat.dromara.org](https://hertzbeat.dromara.org) | [hertzbeat.com](https://hertzbeat.com)**

**云服务: [tancloud.cn](https://tancloud.cn)**
**云服务: [console.tancloud.cn](https://console.tancloud.cn)**

## 🎡 <font color="green">介绍</font>

Expand Down
2 changes: 2 additions & 0 deletions collector/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ collector:
entrance:
netty:
enabled: true
# Config the collector unique identity name.
identity: ${IDENTITY:}
# Config the running mode(public or private), public cluster or private cloud-edge.
mode: ${MODE:public}
manager-host: ${MANAGER_HOST:}${MANAGER_IP:}
manager-port: ${MANAGER_PORT:1158}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ git push origin a-feature-branch

另外,我们的项目有比较规范和严格的 CI 检查流程,在提交 PR 之后会触发 CI,请注意是否通过 CI 检查。

最后,Committer 可以将 PR 合并入DEV主分支
最后,Committer 可以将 PR 合并入 master 主分支

### 代码被合并后

Expand Down
2 changes: 1 addition & 1 deletion script/assembly/collector/assembly.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd
http://maven.apache.org/ASSEMBLY/2.0.0 ">
<!--必填,会追加到打包文件名称的末尾-->
<id>1.4.0</id>
<id>1.4.1</id>
<!--打包类型,可以设置多种类型,打包的时候不同的类型都会打包打出来-->
<formats>
<format>tar</format>
Expand Down
2 changes: 1 addition & 1 deletion script/assembly/server/assembly.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd
http://maven.apache.org/ASSEMBLY/2.0.0 ">
<!--必填,会追加到打包文件名称的末尾-->
<id>1.4.0</id>
<id>1.4.1</id>
<!--打包类型,可以设置多种类型,打包的时候不同的类型都会打包打出来-->
<formats>
<format>tar</format>
Expand Down
4 changes: 4 additions & 0 deletions script/docker/collector/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ ARG VERSION

MAINTAINER tancloud "tomsun28@outlook.com"

# Install SSH
RUN apt-get update && apt-get install -y openssh-server
RUN mkdir /var/run/sshd

ADD hertzbeat-collector-${VERSION}.tar /opt/

ENV TZ=Asia/Shanghai
Expand Down
4 changes: 2 additions & 2 deletions script/helm/hertzbeat/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ icon: https://raw.githubusercontent.com/dromara/hertzbeat/master/home/static/img
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.4.0
version: 1.4.1
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "v1.4.0"
appVersion: "v1.4.1"
1 change: 1 addition & 0 deletions script/helm/hertzbeat/templates/collector/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ data:
netty:
enabled: true
identity: ${IDENTITY:}
mode: ${MODE:public}
manager-host: ${MANAGER_HOST:127.0.0.1}
manager-port: ${MANAGER_PORT:1158}
Expand Down
5 changes: 3 additions & 2 deletions web-app/src/app/layout/basic/basic.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { I18NService } from '@core';
import { ALAIN_I18N_TOKEN, SettingsService, User } from '@delon/theme';
import { LayoutDefaultOptions } from '@delon/theme/layout-default';
import { environment } from '@env/environment';
import { CONSTS } from 'src/app/shared/consts';

import { CONSTANTS } from '../../shared/constants';

@Component({
selector: 'layout-basic',
Expand Down Expand Up @@ -104,7 +105,7 @@ export class LayoutBasicComponent {
avatar: string = `./assets/img/avatar.svg`;
searchToggleStatus = false;
showSettingDrawer = !environment.production;
version = CONSTS.VERSION;
version = CONSTANTS.VERSION;
currentYear = new Date().getFullYear();
get user(): User {
return this.settings.user;
Expand Down
10 changes: 9 additions & 1 deletion web-app/src/app/layout/basic/widgets/i18n.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,15 @@ import { BooleanInput, InputBoolean } from '@delon/util/decorator';
{{ 'menu.lang' | i18n }}
<i nz-icon nzType="down"></i>
</div>
<i *ngIf="!showLangText" nz-dropdown [nzDropdownMenu]="langMenu" nzPlacement="bottomRight" nz-icon nzType="global"></i>
<i
style="font-size: 25px; color: #b421cc"
*ngIf="!showLangText"
nz-dropdown
[nzDropdownMenu]="langMenu"
nzPlacement="bottomRight"
nz-icon
nzType="global"
></i>
<nz-dropdown-menu #langMenu="nzDropdownMenu">
<ul nz-menu>
<li nz-menu-item class="mr-sm" *ngFor="let item of langs" [nzSelected]="item.code === curLangCode" (click)="change(item.code)">
Expand Down
6 changes: 3 additions & 3 deletions web-app/src/app/layout/basic/widgets/user.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Router } from '@angular/router';
import { SettingsService, User } from '@delon/theme';

import { LocalStorageService } from '../../../service/local-storage.service';
import { CONSTS } from '../../../shared/consts';
import { CONSTANTS } from '../../../shared/constants';

@Component({
selector: 'header-user',
Expand Down Expand Up @@ -98,7 +98,7 @@ import { CONSTS } from '../../../shared/consts';
})
export class HeaderUserComponent {
isAboutModalVisible = false;
version = CONSTS.VERSION;
version = CONSTANTS.VERSION;
currentYear = new Date().getFullYear();
get user(): User {
return this.settings.user;
Expand Down Expand Up @@ -126,6 +126,6 @@ export class HeaderUserComponent {

showAndCloseAboutModal() {
this.isAboutModalVisible = true;
setTimeout(() => (this.isAboutModalVisible = false), 12000);
setTimeout(() => (this.isAboutModalVisible = false), 20000);
}
}
4 changes: 2 additions & 2 deletions web-app/src/app/layout/passport/passport.component.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="container">
<header-i18n showLangText="false" class="langs"></header-i18n>
<div class="wrap">
<div class="wrap" style="display: flex; flex-direction: column">
<div class="top">
<div class="head">
<img class="logo" src="./assets/brand.svg" alt="" />
Expand Down Expand Up @@ -38,7 +38,7 @@
<router-outlet></router-outlet>
</div>
</div>
<global-footer style="border-top: 1px solid #d692e3; min-height: 120px; margin-top: 10%">
<global-footer style="border-top: 1px solid #d692e3; margin-top: auto">
<div style="margin-top: 30px">
HertzBeat {{ version }}<br />
Copyright &copy; 2021-{{ currentYear }}
Expand Down
7 changes: 4 additions & 3 deletions web-app/src/app/layout/passport/passport.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,20 @@ import { Component, Inject, OnInit } from '@angular/core';
import { I18NService } from '@core';
import { DA_SERVICE_TOKEN, ITokenService } from '@delon/auth';
import { ALAIN_I18N_TOKEN } from '@delon/theme';
import { CONSTS } from 'src/app/shared/consts';

import { CONSTANTS } from '../../shared/constants';

@Component({
selector: 'layout-passport',
templateUrl: './passport.component.html',
styleUrls: ['./passport.component.less']
})
export class LayoutPassportComponent implements OnInit {
version = CONSTS.VERSION;
version = CONSTANTS.VERSION;
links = [
{
title: this.i18nSvc.fanyi('app.passport.welcome'),
href: 'https://tancloud.cn'
href: 'https://console.tancloud.cn'
}
];

Expand Down
12 changes: 7 additions & 5 deletions web-app/src/app/routes/setting/collector/collector.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,21 +280,23 @@ export class CollectorComponent implements OnInit {
this.identity = message.data.identity;
this.managerHost = message.data.host;
this.dockerShell =
`${this.i18nSvc.fanyi('collector.deploy.docker.help')}\n \n` +
`${this.i18nSvc.fanyi('collector.deploy.docker.help')}\n` +
`$ docker run -d \\\n` +
` -e IDENTITY=${this.identity} \\\n` +
` -e MANAGER_HOST=${this.managerHost} \\\n` +
` -e MODE=public \\\n` +
` --name hertzbeat-collector tancloud/hertzbeat-collector` +
`\n \n` +
`\n` +
`${this.i18nSvc.fanyi('collector.deploy.docker.help.1')}\n` +
`${this.i18nSvc.fanyi('collector.deploy.docker.help.2')}\n` +
`${this.i18nSvc.fanyi('collector.deploy.docker.help.3')}\n` +
`${this.i18nSvc.fanyi('collector.deploy.docker.help.4')}\n` +
`${this.i18nSvc.fanyi('collector.deploy.docker.help.5')}\n`;
`${this.i18nSvc.fanyi('collector.deploy.docker.help.5')}\n` +
`${this.i18nSvc.fanyi('collector.deploy.docker.help.6')}\n`;
this.packageShell =
`${this.i18nSvc.fanyi('collector.deploy.package.help')}\n` +
`${this.i18nSvc.fanyi('collector.deploy.package.help.1')}\n` +
`${this.i18nSvc.fanyi('collector.deploy.package.help.2')}\n \n` +
`${this.i18nSvc.fanyi('collector.deploy.package.help.2')}\n` +
`collector:\n` +
` dispatch:\n` +
` entrance:\n` +
Expand All @@ -303,7 +305,7 @@ export class CollectorComponent implements OnInit {
` mode: public\n` +
` identity: ${this.identity}\n` +
` manager-host: ${this.managerHost}\n` +
` manager-port: 1158\n\n` +
` manager-port: 1158\n` +
`${this.i18nSvc.fanyi('collector.deploy.package.help.3')}\n`;
} else {
this.notifySvc.error(this.i18nSvc.fanyi('common.notify.apply-fail'), message.msg);
Expand Down
3 changes: 3 additions & 0 deletions web-app/src/app/shared/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const CONSTANTS = {
VERSION: 'v1.4.1'
};
3 changes: 0 additions & 3 deletions web-app/src/app/shared/consts.ts

This file was deleted.

14 changes: 7 additions & 7 deletions web-app/src/assets/i18n/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -453,10 +453,9 @@
"app.role.admin": "administrator",
"app.lock": "Unlock",
"app.lock.placeholder": "Enter Any To Unlock",
"app.passport.desc": "An Open Source Real-Time Monitoring Tool",
"app.passport.desc": "An Open Source Real-Time Monitoring System",
"app.passport.intro-1": "Open Source、Distributed",
"app.passport.intro-2": "Real-Time Monitoring",
"app.login.message-need-identifier": "Please enter your username",
"app.passport.intro-2": "Real-Time Monitoring", "app.login.message-need-identifier": "Please enter your username",
"app.login.message-need-credential": "Please enter password",
"app.login.message-invalid-credentials": "Invalid username or password",
"app.login.tab-login-credentials": "Sign In HertzBeat",
Expand Down Expand Up @@ -526,8 +525,9 @@
"collector.deploy.docker.help.1": "# docker run -d : Start a container running in the background through Docker",
"collector.deploy.docker.help.2": "# -e IDENTITY=xxx : Set the collector's identity token",
"collector.deploy.docker.help.3": "# -e MANAGER_HOST=127.0.0.1 : Set the main HertzBeat service address for connection",
"collector.deploy.docker.help.4": "# --name hertzbeat-collector: Name the container name hertzbeat-collector",
"collector.deploy.docker.help.5": "# tancloud/hertzbeat-collector: Use the HertzBeat official application image source, or use quay.io/tancloud/hertzbeat-collector to replace it",
"collector.deploy.docker.help.4": "# -e MODE=public : Set the running mode(public or private), public cluster or private cloud-edge.",
"collector.deploy.docker.help.5": "# --name hertzbeat-collector: Name the container name hertzbeat-collector",
"collector.deploy.docker.help.6": "# tancloud/hertzbeat-collector: Use the HertzBeat official application image source, or use quay.io/tancloud/hertzbeat-collector to replace it",
"collector.deploy.package": "Deploy via Package",
"collector.deploy.package.github": "Download From Github",
"collector.deploy.package.gitee": "Download From Gitee",
Expand All @@ -545,10 +545,10 @@
"collector.help.link": "https://hertzbeat.com/docs/help/guide",
"about.title": "HertzBeat is an open source, real-time monitoring system with custom, performance and agentless.",
"about.point.1": "Monitor-alarm-notify all in one, supports web, database, os, middleware, network etc.",
"about.point.2": "Easy to use, full web-based operations with just a few clicks.",
"about.point.2": "Easy to use, full web-based operations with just a click of a mouse.",
"about.point.3": "Powerful monitoring template capabilities, custom monitoring any metrics you want.",
"about.point.4": "High performance, supports collector cluster, multi-isolated network and cloud-edge.",
"about.point.5": "Flexible alarm threshold, timely notification via discord, slack, telegram, webhook etc.",
"about.point.5": "Flexible alarm threshold rules, timely notification via discord, slack, telegram, webhook etc.",
"about.help": "HertzBeat's powerful customization, multi-type support, high performance and easy expansion, aims to help users quickly build their own monitoring system.",
"about.github": "Github",
"about.gitee": "Gitee",
Expand Down
8 changes: 5 additions & 3 deletions web-app/src/assets/i18n/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@
"app.lock": "解除锁定",
"app.lock.placeholder": "输入任意解锁",
"app.passport.desc": "易用友好的开源实时监控系统",
"app.passport.welcome": "点击探索 TanCloud 监控云服务",
"app.passport.intro-1": "开源、高性能、分布式的",
"app.passport.intro-2": "实时监控",
"app.login.message-need-identifier": "请输入用户名",
Expand Down Expand Up @@ -522,8 +523,9 @@
"collector.deploy.docker.help.1": "# docker run -d : 通过Docker启动一个在后台运行的容器",
"collector.deploy.docker.help.2": "# -e IDENTITY=xxx : 设置采集器的标识令牌",
"collector.deploy.docker.help.3": "# -e MANAGER_HOST=127.0.0.1 : 设置连接的主HertzBeat服务地址",
"collector.deploy.docker.help.4": "# --name hertzbeat-collector : 命名容器名称 hertzbeat-collector",
"collector.deploy.docker.help.5": "# tancloud/hertzbeat-collector : 使用HertzBeat官方应用镜像源,也可若使用quay.io/tancloud/hertzbeat-collector替换",
"collector.deploy.docker.help.4": "# -e MODE=public : 配置运行模式(public or private), 公共集群模式或私有云边模式",
"collector.deploy.docker.help.5": "# --name hertzbeat-collector : 命名容器名称 hertzbeat-collector",
"collector.deploy.docker.help.6": "# tancloud/hertzbeat-collector : 使用HertzBeat官方应用镜像源,也可若使用quay.io/tancloud/hertzbeat-collector替换",
"collector.deploy.package": "通过 安装包 方式部署",
"collector.deploy.package.github": "下载安装包-Github",
"collector.deploy.package.gitee": "下载安装包-Gitee",
Expand All @@ -540,7 +542,7 @@
"collector.help": "除了使用内置采集器外,您可以注册多个采集器应用于<strong>高性能集群</strong>或<strong>云边协同</strong>场景。<br>采集集群用于已注册的采集器集群节点管理,展示当前采集器集群状态和调度任务分布,支持对采集器的部署删除,上线下线等批量操作。",
"collector.help.link": "https://hertzbeat.com/docs/help/guide",
"about.title": "HertzBeat(赫兹跳动) 是一个拥有强大自定义监控能力,高性能集群,无需 Agent 的开源实时监控告警系统。",
"about.point.1": "一站式监控告警通知,支持应用服务数据库操作系统中间件云原生网络等。",
"about.point.1": "一站式监控告警通知,支持应用服务数据库操作系统中间件云原生网络等。",
"about.point.2": "易用友好,无需 Agent,全页面操作,鼠标点一点就能监控告警。",
"about.point.3": "强大监控模版能力,自定义监控任何您想要的指标。",
"about.point.4": "高性能,采集器集群横向扩展,支持多隔离网络监控,云边协同。",
Expand Down
8 changes: 5 additions & 3 deletions web-app/src/assets/i18n/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,7 @@
"app.lock": "解除鎖定",
"app.lock.placeholder": "輸入任意解鎖",
"app.passport.desc": "易用友好的開源實時監控系統",
"app.passport.welcome": "點選探索 TanCloud 監控雲端服務",
"app.passport.intro-1": "開源、高效能、分散式的",
"app.passport.intro-2": "即時監控",
"app.login.message-need-identifier": "請輸入用戶名",
Expand Down Expand Up @@ -521,8 +522,9 @@
"collector.deploy.docker.help.1": "# docker run -d : 通過Docker啟動一個在後台運行的容器",
"collector.deploy.docker.help.2": "# -e IDENTITY=xxx : 設置採集器的標識令牌",
"collector.deploy.docker.help.3": "# -e MANAGER_HOST=127.0.0.1 : 設置連接的主HertzBeat服務地址",
"collector.deploy.docker.help.4": "# --name hertzbeat-collector : 命名容器名稱 hertzbeat-collector",
"collector.deploy.docker.help.5": "# tancloud/hertzbeat-collector : 使用HertzBeat官方應用鏡像源,也可若使用quay.io/tancloud/hertzbeat-collector替換",
"collector.deploy.docker.help.4": "# -e MODE=public : 設定運作模式(public or private), 公有叢集模式或私有雲邊模式",
"collector.deploy.docker.help.5": "# --name hertzbeat-collector : 命名容器名稱 hertzbeat-collector",
"collector.deploy.docker.help.6": "# tancloud/hertzbeat-collector : 使用HertzBeat官方應用鏡像源,也可若使用quay.io/tancloud/hertzbeat-collector替換",
"collector.deploy.package": "通過 安裝包 方式部署",
"collector.deploy.package.github": "下載安裝包-Github",
"collector.deploy.package.gitee": "下載安裝包-Gitee",
Expand All @@ -539,7 +541,7 @@
"collector.help": "除了使用內置採集器外,您可以註冊多個採集器應用於<strong>高性能集群</strong>或<strong>雲邊協同</strong>場景。<br>採集集群用於已註冊的採集器集群節點管理,展示當前採集器集群狀態和調度任務分佈,支持對採集器的部署刪除,上線下線等批量操作。",
"collector.help.link": "https://hertzbeat.com/docs/help/guide",
"about.title": "HertzBeat(赫茲跳動) 是一個擁有強大自定義監控能力,高性能集群,無需 Agent 的開源實時監控告警系統。",
"about.point.1": "一站式監控告警通知,支持應用服務數據庫操作系統中間件雲原生網絡等。",
"about.point.1": "一站式監控告警通知,支持應用服務數據庫操作系統中間件雲原生網絡等。",
"about.point.2": "易用友好,無需 Agent,全頁面操作,鼠標點一點就能監控告警。",
"about.point.3": "強大監控模版能力,自定義監控任何您想要的指標。",
"about.point.4": "高性能,採集器集群橫向擴展,支持多隔離網絡監控,雲邊協同。",
Expand Down

0 comments on commit a1cdaa4

Please sign in to comment.