Skip to content

Commit

Permalink
update monitoring state un-manage to unmonitored, update pic (#1430)
Browse files Browse the repository at this point in the history
Signed-off-by: tomsun28 <tomsun28@outlook.com>
  • Loading branch information
tomsun28 authored Dec 19, 2023
1 parent fca777b commit 8c10c83
Show file tree
Hide file tree
Showing 37 changed files with 73 additions and 68 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ public interface CommonConstants {


/**
* Monitoring Status Code: Unmanaged
* 任务状态码: 未管理
* Monitoring Status Code: Unmonitored
* 任务状态码: 未监控
*/
byte UN_MANAGE_CODE = 0x00;

Expand Down
2 changes: 1 addition & 1 deletion e2e/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/linuxsuren/api-testing:master
FROM ghcr.io/linuxsuren/api-testing:v0.0.15

WORKDIR /workspace
COPY . .
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ keywords: [告警 Telegram 通知, 开源告警系统, 开源监控告警系统]

> 请排查在告警中心是否已有触发的告警信息
> 请排查是否配置正确机器人Token, UserId,是否已配置告警策略关联
> UserId 应为消息接收人的UserId
> UserId 应为消息接收对象的UserId
其它问题可以通过交流群ISSUE反馈哦!
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ keywords: [告警 Telegram 通知, 开源告警系统, 开源监控告警系统]

> 请排查在告警中心是否已有触发的告警信息
> 请排查是否配置正确机器人Token, UserId,是否已配置告警策略关联
> UserId 应为消息接收人的UserId
> UserId 应为消息接收对象的UserId
其它问题可以通过交流群ISSUE反馈哦!
Binary file modified home/static/img/home/10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified home/static/img/home/11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified home/static/img/home/12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified home/static/img/home/13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified home/static/img/home/14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified home/static/img/home/16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified home/static/img/home/17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified home/static/img/home/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified home/static/img/home/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion home/versioned_docs/version-v1.1.x/help/alert_telegram.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ keywords: [告警 Telegram 通知, 开源告警系统, 开源监控告警系统]

> 请排查在告警中心是否已有触发的告警信息
> 请排查是否配置正确机器人Token, UserId,是否已配置告警策略关联
> UserId 应为消息接收人的UserId
> UserId 应为消息接收对象的UserId
其它问题可以通过交流群ISSUE反馈哦!
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ public void store(Alert alert) {
tags.put(CommonConstants.TAG_MONITOR_NAME, monitor.getName());
}
if (monitor.getStatus() == CommonConstants.UN_MANAGE_CODE) {
// When monitoring is not managed, ignore and silence its alarm messages
// 当监控未管理时 忽略静默其告警信息
// When monitoring is not monitored, ignore and silence its alarm messages
return;
}
if (CommonConstants.AVAILABILITY.equals(alert.getTarget())) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public AppCount(String app, byte status, Long size) {
*/
private long availableSize;
/**
* 任务状态未管理的数量
* 任务状态未监控的数量
*/
private long unManageSize;
/**
Expand Down
2 changes: 1 addition & 1 deletion manager/src/main/resources/define/app-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ metrics:
unit: ms
i18n:
zh-CN: 响应时间
en-US: ResponseTime
en-US: Response Time
- field: keyword
type: 0
i18n:
Expand Down
2 changes: 1 addition & 1 deletion manager/src/main/resources/define/app-api_code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ metrics:
unit: ms
i18n:
zh-CN: 响应时间
en-US: ResponseTime
en-US: Response Time
- field: code
type: 1
i18n:
Expand Down
2 changes: 1 addition & 1 deletion manager/src/main/resources/define/app-ftp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ metrics:
unit: ms
i18n:
zh-CN: 响应时间
en-US: ResponseTime
en-US: Response Time
# the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk
protocol: ftp
# the config content when protocol is ftp
Expand Down
2 changes: 1 addition & 1 deletion manager/src/main/resources/define/app-memcached.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ metrics:
unit: ms
i18n:
zh-CN: 响应时间
en-US: ResponseTime
en-US: Response Time
- field: pid
type: 1
i18n:
Expand Down
2 changes: 1 addition & 1 deletion manager/src/main/resources/define/app-ntp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ metrics:
unit: ms
i18n:
zh-CN: 响应时间
en-US: ResponseTime
en-US: Response Time
- field: time
type: 0
unit: ms
Expand Down
2 changes: 1 addition & 1 deletion manager/src/main/resources/define/app-ping.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ metrics:
unit: ms
i18n:
zh-CN: 响应时间
en-US: ResponseTime
en-US: Response Time
# Monitoring and collection protocols eg: sql, ssh, http, telnet, wmi, snmp, sdk
# 监控采集使用协议 eg: sql, ssh, http, telnet, wmi, snmp, sdk
protocol: icmp
Expand Down
2 changes: 1 addition & 1 deletion manager/src/main/resources/define/app-port.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ metrics:
unit: ms
i18n:
zh-CN: 响应时间
en-US: ResponseTime
en-US: Response Time
# the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk
# 采集协议, 目前支持sql, ssh, http, telnet, wmi, snmp, sdk
protocol: telnet
Expand Down
2 changes: 1 addition & 1 deletion manager/src/main/resources/define/app-smtp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ metrics:
unit: ms
i18n:
zh-CN: 响应时间
en-US: ResponseTime
en-US: Response Time
- field: response
type: 1
i18n:
Expand Down
2 changes: 1 addition & 1 deletion manager/src/main/resources/define/app-udp_port.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ metrics:
unit: ms
i18n:
zh-CN: 响应时间
en-US: ResponseTime
en-US: Response Time
# the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk
# 采集协议, 目前支持sql, ssh, http, telnet, wmi, snmp, sdk
protocol: udp
Expand Down
2 changes: 1 addition & 1 deletion manager/src/main/resources/define/app-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ metrics:
unit: ms
i18n:
zh-CN: 响应时间
en-US: ResponseTime
en-US: Response Time
- field: keyword
type: 0
i18n:
Expand Down
2 changes: 1 addition & 1 deletion manager/src/main/resources/define/app-websocket.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ metrics:
unit: ms
i18n:
zh-CN: 响应时间
en-US: ResponseTime
en-US: Response Time
- field: httpVersion
type: 1
i18n:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@
[nzOptions]="receiversOption"
id="receiver"
name="receiver"
nzPlaceHolder="Select a person"
nzPlaceHolder="Select a receiver"
nzShowSearch
required
>
Expand Down Expand Up @@ -477,7 +477,7 @@
</form>
</div>
</nz-modal>
<!-- 新增或修改消息接收人弹出框 -->
<!-- 新增或修改通知媒介弹出框 -->
<nz-modal
(nzOnCancel)="onManageReceiverModalCancel()"
(nzOnOk)="onManageReceiverModalOk()"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class AlertNoticeComponent implements OnInit {
loading = false;
code: string = '';
originalCode: string = '';
// start 新增或修改通知接收人弹出框
// start 新增或修改通知接收对象弹出框
isManageReceiverModalVisible: boolean = false;
isManageReceiverModalAdd: boolean = true;
isManageReceiverModalOkLoading: boolean = false;
Expand Down
23 changes: 12 additions & 11 deletions web-app/src/app/routes/dashboard/dashboard.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
><span style="font-weight: bolder">{{ appCountService.unAvailableSize }}</span>
</nz-tag>
<nz-tag class="mb-xs">
<span>{{ 'monitor.status.un-manage' | i18n }} </span
<span>{{ 'monitor.status.unmonitored' | i18n }} </span
><span style="font-weight: bolder">{{ appCountService.unManageSize }}</span>
</nz-tag>
</div>
Expand All @@ -47,7 +47,7 @@
><span style="font-weight: bolder">{{ appCountProgram.unAvailableSize }}</span>
</nz-tag>
<nz-tag class="mb-xs">
<span>{{ 'monitor.status.un-manage' | i18n }} </span
<span>{{ 'monitor.status.unmonitored' | i18n }} </span
><span style="font-weight: bolder">{{ appCountProgram.unManageSize }}</span>
</nz-tag>
</div>
Expand All @@ -73,7 +73,7 @@
><span style="font-weight: bolder">{{ appCountDb.unAvailableSize }}</span>
</nz-tag>
<nz-tag class="mb-xs">
<span>{{ 'monitor.status.un-manage' | i18n }} </span><span style="font-weight: bolder">{{ appCountDb.unManageSize }}</span>
<span>{{ 'monitor.status.unmonitored' | i18n }} </span><span style="font-weight: bolder">{{ appCountDb.unManageSize }}</span>
</nz-tag>
</div>
</div>
Expand All @@ -99,7 +99,8 @@
><span style="font-weight: bolder">{{ appCountCache.unAvailableSize }}</span>
</nz-tag>
<nz-tag class="mb-xs">
<span>{{ 'monitor.status.un-manage' | i18n }} </span><span style="font-weight: bolder">{{ appCountCache.unManageSize }}</span>
<span>{{ 'monitor.status.unmonitored' | i18n }} </span
><span style="font-weight: bolder">{{ appCountCache.unManageSize }}</span>
</nz-tag>
</div>
</div>
Expand All @@ -124,7 +125,7 @@
><span style="font-weight: bolder">{{ appCountOs.unAvailableSize }}</span>
</nz-tag>
<nz-tag class="mb-xs">
<span>{{ 'monitor.status.un-manage' | i18n }} </span><span style="font-weight: bolder">{{ appCountOs.unManageSize }}</span>
<span>{{ 'monitor.status.unmonitored' | i18n }} </span><span style="font-weight: bolder">{{ appCountOs.unManageSize }}</span>
</nz-tag>
</div>
</div>
Expand All @@ -149,7 +150,7 @@
><span style="font-weight: bolder">{{ appCountMid.unAvailableSize }}</span>
</nz-tag>
<nz-tag class="mb-xs">
<span>{{ 'monitor.status.un-manage' | i18n }} </span><span style="font-weight: bolder">{{ appCountMid.unManageSize }}</span>
<span>{{ 'monitor.status.unmonitored' | i18n }} </span><span style="font-weight: bolder">{{ appCountMid.unManageSize }}</span>
</nz-tag>
</div>
</div>
Expand All @@ -175,7 +176,7 @@
><span style="font-weight: bolder">{{ appCountBigdata.unAvailableSize }}</span>
</nz-tag>
<nz-tag class="mb-xs">
<span>{{ 'monitor.status.un-manage' | i18n }} </span
<span>{{ 'monitor.status.unmonitored' | i18n }} </span
><span style="font-weight: bolder">{{ appCountBigdata.unManageSize }}</span>
</nz-tag>
</div>
Expand All @@ -202,7 +203,7 @@
><span style="font-weight: bolder">{{ appCountWebserver.unAvailableSize }}</span>
</nz-tag>
<nz-tag class="mb-xs">
<span>{{ 'monitor.status.un-manage' | i18n }} </span
<span>{{ 'monitor.status.unmonitored' | i18n }} </span
><span style="font-weight: bolder">{{ appCountWebserver.unManageSize }}</span>
</nz-tag>
</div>
Expand All @@ -228,7 +229,7 @@
><span style="font-weight: bolder">{{ appCountCn.unAvailableSize }}</span>
</nz-tag>
<nz-tag class="mb-xs">
<span>{{ 'monitor.status.un-manage' | i18n }} </span><span style="font-weight: bolder">{{ appCountCn.unManageSize }}</span>
<span>{{ 'monitor.status.unmonitored' | i18n }} </span><span style="font-weight: bolder">{{ appCountCn.unManageSize }}</span>
</nz-tag>
</div>
</div>
Expand All @@ -254,7 +255,7 @@
><span style="font-weight: bolder">{{ appCountNetwork.unAvailableSize }}</span>
</nz-tag>
<nz-tag class="mb-xs">
<span>{{ 'monitor.status.un-manage' | i18n }} </span
<span>{{ 'monitor.status.unmonitored' | i18n }} </span
><span style="font-weight: bolder">{{ appCountNetwork.unManageSize }}</span>
</nz-tag>
</div>
Expand All @@ -281,7 +282,7 @@
><span style="font-weight: bolder">{{ appCountCustom.unAvailableSize }}</span>
</nz-tag>
<nz-tag class="mb-xs">
<span>{{ 'monitor.status.un-manage' | i18n }} </span
<span>{{ 'monitor.status.unmonitored' | i18n }} </span
><span style="font-weight: bolder">{{ appCountCustom.unManageSize }}</span>
</nz-tag>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
<div nz-col nzSpan="16">
<nz-tag *ngIf="monitor.status == 0" nzColor="default">
<i nz-icon nzType="meh" nzTheme="outline"></i>
<span>{{ 'monitor.status.un-manage' | i18n }}</span>
<span>{{ 'monitor.status.unmonitored' | i18n }}</span>
</nz-tag>
<nz-tag *ngIf="monitor.status == 1" nzColor="success">
<i nz-icon nzType="smile" nzTheme="outline"></i>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@
id="intervals"
>
</nz-input-number>
<nz-tag style="margin-left: 6px">{{ 'common.time.unit.second' | i18n }}</nz-tag>
</nz-form-control>
</nz-form-item>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
<nz-option [nzLabel]="'monitor.status.all' | i18n" nzValue="9"></nz-option>
<nz-option [nzLabel]="'monitor.status.available' | i18n" nzValue="1"></nz-option>
<nz-option [nzLabel]="'monitor.status.unavailable' | i18n" nzValue="2"></nz-option>
<nz-option [nzLabel]="'monitor.status.un-manage' | i18n" nzValue="0"></nz-option>
<nz-option [nzLabel]="'monitor.status.unmonitored' | i18n" nzValue="0"></nz-option>
</nz-select>
</div>

Expand Down Expand Up @@ -132,15 +132,15 @@
</button>
</td>
<td nzAlign="center">
<nz-tag *ngIf="data.status == 0" nzColor="default">
<nz-tag *ngIf="data.status == 0" [nzColor]="'#b2b2b2'">
<i nz-icon nzType="meh" nzTheme="outline"></i>
<span>{{ 'monitor.status.un-manage' | i18n }}</span>
<span>{{ 'monitor.status.unmonitored' | i18n }}</span>
</nz-tag>
<nz-tag *ngIf="data.status == 1" nzColor="success">
<nz-tag *ngIf="data.status == 1" [nzColor]="'#09b919'">
<i nz-icon nzType="smile" nzTheme="outline"></i>
<span>{{ 'monitor.status.available' | i18n }}</span>
</nz-tag>
<nz-tag *ngIf="data.status == 2" nzColor="error">
<nz-tag *ngIf="data.status == 2" [nzColor]="'#fd4357'">
<i nz-icon nzType="frown" nzTheme="outline"></i>
<span>{{ 'monitor.status.unavailable' | i18n }}</span>
</nz-tag>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@
id="intervals"
>
</nz-input-number>
<nz-tag style="margin-left: 6px">{{ 'common.time.unit.second' | i18n }}</nz-tag>
</nz-form-control>
</nz-form-item>

Expand Down
13 changes: 7 additions & 6 deletions web-app/src/assets/i18n/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"host.tip": "The monitored peer IP or domain name",
"description": "Description",
"description.tip": "Description and remarks",
"intervals": "Intervals(s)",
"intervals": "Intervals",
"intervals.tip": "Monitor the interval time of periodic collection of data, unit second",
"collector": "Collector",
"collector.tip": "Choose which collector to dispatch this monitoring",
Expand Down Expand Up @@ -99,9 +99,9 @@
"": "Task Status",
"all": "All Status",
"available": "Available",
"unavailable": "UnAvailable",
"unreachable": "UnReachable",
"un-manage": "UnManaged"
"unavailable": "Unavailable",
"unreachable": "Unreachable",
"unmonitored": "Unmonitored"
}
},
"alert": {
Expand Down Expand Up @@ -224,7 +224,7 @@
"alert.center.confirm.mark-done": "Please confirm whether to mark processed!",
"alert.center.confirm.mark-no-batch": "Please confirm whether to mark Pending in batch!",
"alert.center.confirm.mark-no": "Please confirm whether to mark Pending!",
"alert.help.notice": "Notification is used to config the receiver of alarm message and receiving method. The alarm message will be sent to the receiver by specified way(support email, discord, webhook etc). <a href='https://hertzbeat.com/zh-cn/docs/help/alert_webhook'>Click here to see configuration steps.</a> <br><span class='help_module_span'>Note⚠\uFE0F: After configuring the “<i>Receiver</i>”, you also need to config the“<i>Notice Policy</i>”to specify which massages are sent to which receivers.</span><a href='https://hertzbeat.com/docs/help/alert_email'> Click here to see potential issues</a><br>“<i>Notice Template</i>” is message content structure template. The built-in template is used by default or you can customize the template to customize the message notification structure.",
"alert.help.notice": "Notification is used to config the receiver of alarm message and receiving method. The alarm message will be sent to the receiver by specified way(support email, discord, webhook etc). <a href='https://hertzbeat.com/zh-cn/docs/help/alert_webhook'>Click here to see configuration steps.</a>.<br>“<i>Notice Template</i>” is message content structure template. The built-in template is used by default or you can customize the template to customize the message notification structure.<br><span class='help_module_span'>Note⚠\uFE0F: After configuring the “<i>Receiver</i>”, you also need to config the“<i>Notice Policy</i>”to specify which massages are sent to which receivers.</span><a href='https://hertzbeat.com/docs/help/alert_email'> Click here to see potential issues</a>.",
"alert.help.notice.link":"https://hertzbeat.com/docs/help/alert_email",
"alert.help.converge": "Alarm Converge supports deduplication and convergence of repeated alarm messages within a specified time period. <br> Click \"<i>New Converge Strategy</i>\" and configure the time period to avoiding a large number of repetitive alarms that may numb the receiver's alarm.",
"alert.help.converge.link":"https://hertzbeat.com",
Expand All @@ -245,7 +245,7 @@
"alert.notice.template.preset.true": "System Preset",
"alert.notice.template.preset.false": "User Custom",
"alert.notice.template.content": "Template Content",
"alert.notice.receiver": "Message Receiver",
"alert.notice.receiver": "Notice Receiver",
"alert.notice.receiver.new": "New Receiver",
"alert.notice.receiver.edit": "Edit Receiver",
"alert.notice.receiver.delete": "Delete Receiver",
Expand Down Expand Up @@ -464,6 +464,7 @@
"common.week.4": "Thursday",
"common.week.5": "Friday",
"common.week.6": "Saturday",
"common.time.unit.second": "Seconds",
"validation.email.invalid": "Invalid email!",
"validation.phone.invalid": "Invalid phone number!",
"validation.verification-code.invalid": "Invalid verification code, should be 6 digits!",
Expand Down
Loading

0 comments on commit 8c10c83

Please sign in to comment.