diff --git a/web-app/src/app/routes/alert/alert-center/alert-center.component.html b/web-app/src/app/routes/alert/alert-center/alert-center.component.html index 5d0416eea5e..89f9a87ddef 100644 --- a/web-app/src/app/routes/alert/alert-center/alert-center.component.html +++ b/web-app/src/app/routes/alert/alert-center/alert-center.component.html @@ -85,25 +85,18 @@ - {{ 'alert.center.monitor' | i18n }} - {{ 'alert.center.target' | i18n }} + {{ 'alert.center.target' | i18n }} {{ 'alert.center.priority' | i18n }} - {{ 'alert.center.content' | i18n }} - {{ 'alert.center.tags' | i18n }} - {{ 'alert.center.status' | i18n }} + {{ 'alert.center.content' | i18n }} + {{ 'alert.center.tags' | i18n }} + {{ 'alert.center.status' | i18n }} {{ 'alert.center.time' | i18n }} - {{ 'common.edit' | i18n }} + {{ 'common.edit' | i18n }} - - - {{ renderAlertTarget(data.target) }} @@ -121,9 +114,17 @@ {{ data.content }} - - {{ sliceTagName(tag) }} - + + + + + {{ sliceTagName(tag) }} + + + + {{ sliceTagName(tag) }} + + diff --git a/web-app/src/app/routes/alert/alert-setting/alert-setting.component.html b/web-app/src/app/routes/alert/alert-setting/alert-setting.component.html index 36bf6746355..7d0e0d25588 100644 --- a/web-app/src/app/routes/alert/alert-setting/alert-setting.component.html +++ b/web-app/src/app/routes/alert/alert-setting/alert-setting.component.html @@ -163,7 +163,14 @@ - {{ item.value }} : {{ i == 0 ? ('alert.setting.target.tip' | i18n) : ('alert.setting.target.other' | i18n) }} + {{ item.value }} : + {{ + item.value == item.label + ? i == 0 + ? ('alert.setting.target.tip' | i18n) + : ('alert.setting.target.other' | i18n) + : item.label + }} {{ item.type === 0 ? ('alert.setting.number' | i18n) : ('alert.setting.string' | i18n) }} @@ -172,12 +179,6 @@ instance : {{ 'alert.setting.target.instance' | i18n }} - - system_value_row_count : {{ 'alert.setting.target.system_value_row_count' | i18n }} - - {{ 'alert.setting.number' | i18n }} - - {{ 'alert.setting.operator' | i18n }} : equals(str1,str2), contains(str1,str2), exists(keyName), matches(str,regex), ==, @@ -377,11 +378,15 @@ ${metric} : {{ 'alert.setting.template.metric-name' | i18n }} - - ${{ '{' + cascadeValues[2] + '}' }} : {{ 'alert.setting.template.metric-value' | i18n }} - - ${{ '{' + item.value + '}' }} : {{ 'alert.setting.template.other-value' | i18n }} + ${{ '{' + item.value + '}' }} : + {{ + item.value == item.label + ? ('alert.setting.template.other-value' | i18n) + : ('alert.setting.template.metric-value' | i18n) + '-' + item.label + }} ${instance} : {{ 'alert.setting.template.instance-value' | i18n }} diff --git a/web-app/src/app/routes/alert/alert-setting/alert-setting.component.ts b/web-app/src/app/routes/alert/alert-setting/alert-setting.component.ts index 2c5b59d93c6..8e72b7bea02 100644 --- a/web-app/src/app/routes/alert/alert-setting/alert-setting.component.ts +++ b/web-app/src/app/routes/alert/alert-setting/alert-setting.component.ts @@ -654,12 +654,17 @@ export class AlertSettingComponent implements OnInit { }); } filterMetrics(currentMetrics: any[], cascadeValues: any): any[] { - // 检查是否需要过滤 if (cascadeValues.length !== 3) { return currentMetrics; } - // 过滤与cascadeValues[2]不相等的元素 - return currentMetrics.filter(item => item.value !== cascadeValues[2]); + // sort the cascadeValues[2] to first + return currentMetrics.sort((a, b) => { + if (a.value !== cascadeValues[2]) { + return 1; + } else { + return -1; + } + }); } // end 告警定义与监控关联model } diff --git a/web-app/src/assets/i18n/en-US.json b/web-app/src/assets/i18n/en-US.json index 954109318c2..c74785e612e 100644 --- a/web-app/src/assets/i18n/en-US.json +++ b/web-app/src/assets/i18n/en-US.json @@ -141,7 +141,7 @@ "alert.setting.template.monitor-type": "Monitor Type Name", "alert.setting.template.metrics-name": "Metrics Name", "alert.setting.template.metric-name": "Metric Name", - "alert.setting.template.metric-value": "Metric Target Value", + "alert.setting.template.metric-value": "Metric Value", "alert.setting.template.other-value": "Other Metric Value", "alert.setting.template.instance-value": "Instance Value", "alert.setting.default": "Global Default", @@ -212,15 +212,15 @@ "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": "This part specified the receiver of alarm information and receiving method. The alarm information will be sent to the receiver by specified way(currently support email, Webhook, etc.). Click here to look over configuration steps.
⚠\uFE0FNote:After configuring the “New Recivier”, you also need to congigure the“New Notice Policy”to specify which massages are sent to which receivers. Click here to look over potential issues you may encounter", + "alert.help.notice": "Notification is used to specify the receiver of alarm message and receiving method. The alarm message will be sent to the receiver by specified way(currently support email, Webhook, etc.). Click here to look over configuration steps.
⚠\uFE0FNote:After configuring the “New Recivier”, you also need to congigure the“New Notice Policy”to specify which massages are sent to which receivers. Click here to look over potential issues you may encounter", "alert.help.notice.link":"https://hertzbeat.com/docs/help/alert_threshold", - "alert.help.converge": "Click \"New Converge Strategy\" and configure the time period to avoiding a large number of repetitive alarms that may numb the receiver's alarm.", + "alert.help.converge": "Alarm Converge supports deduplication and convergence of repeated alarm messages within a specified time period.
Click \"New Converge Strategy\" 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", - "alert.help.center": "In this part, you can check the alarm messages which triggered by the your alarm threshold. Hertzbeat support batch operations such as alarm processing, unprocessed alarm markers, and alarm deletion and clearing.", + "alert.help.center": "Alarm Center displays an overview of triggered alarms and supports external channel alarms.
Hertzbeat support batch operations such as alarm processing, unprocessed alarm markers, and alarm deletion and clearing.", "alert.help.center.link":"https://hertzbeat.com/docs/help/guide", - "alert.help.setting": "Click the \"New Threshold\" to configure the alarm threshold for monitoring indicators. Hertzbeat will trigger alarms based on the configuration and collection of indicator data.
⚠\uFE0FNote: The alarm information that has been successfully triggered can be checked in [Alter Center], and you can also set the notification method and personnel in [Notification].", + "alert.help.setting": "Threshold Rules are used for metrics alarm threshold rule management. Click the \"New Threshold\" to configure the alarm threshold for monitoring metrics. Hertzbeat will trigger alarms based on the configuration and collection of metrics data.
⚠\uFE0FNote: The alarm information that has been successfully triggered can be checked in [Alter Center], and you can also set the notification method and personnel in [Notification].", "alert.help.setting.link":"https://hertzbeat.com/docs/help/alert_threshold", - "alert.help.silence": "Click \"New Silence Strategy\" and configure the time period to block messages so you would not get disturbed during weekends and breaks.", + "alert.help.silence": "Alarm Silence management is used when you don’t want to be disturbed during system maintenance or on weekend nights.
Click \"New Silence Strategy\" and configure the time period to block messages so you would not get disturbed during weekends and breaks.", "alert.help.silence.link":"https://hertzbeat.com/docs", "alert.notice.receiver": "Message Receiver", "alert.notice.receiver.new": "New Receiver", @@ -376,7 +376,7 @@ "monitor_icon.alert_notice": "notification", "monitor_icon.setting_tags": "tags", "monitor_icon.setting_modules": "code", - "monitors.center.help": "This page displays the currently added monitors in the form of list, and we supports tag grouping, query filtering, and access to view monitoring details. You can add, modify, delete, cancel monitoring, import/export, batch management, and other operations on the monitors.", + "monitors.center.help": "Monitoring Center is the monitoring resource management portal of HertzBeat. Displays the currently added monitors in the form of list, and supports tag grouping, query filtering, and access to view monitoring details.
You can add, modify, delete, cancel monitoring, import/export, batch management, and other operations on the monitors.", "monitors.center.help.link": "https://hertzbeat.com/docs/", "monitors.list": "Monitor List", "monitors.spinning-tip.detecting": "Available Detecting", @@ -577,6 +577,6 @@ "validation.date.required": "Please select the start and end date", "validation.goal.required": "Please enter a description of the goal", "validation.standard.required": "Please enter a metric", - "expand": "expand", - "collapse": "collapse" + "expand": "Expand", + "collapse": "Collapse" } diff --git a/web-app/src/assets/i18n/zh-CN.json b/web-app/src/assets/i18n/zh-CN.json index 9b673779552..64d2003f07b 100644 --- a/web-app/src/assets/i18n/zh-CN.json +++ b/web-app/src/assets/i18n/zh-CN.json @@ -141,7 +141,7 @@ "alert.setting.template.monitor-type": "监控类型名称", "alert.setting.template.metrics-name": "监控指标集合名称", "alert.setting.template.metric-name": "监控指标名称", - "alert.setting.template.metric-value": "监控指标对象值", + "alert.setting.template.metric-value": "指标值", "alert.setting.template.other-value": "所属行其它指标值", "alert.setting.template.instance-value": "所属行实例值", "alert.setting.default": "全局默认", @@ -212,15 +212,15 @@ "alert.center.confirm.mark-done": "请确认是否标记已处理!", "alert.center.confirm.mark-no-batch": "请确认是否批量标记未处理!", "alert.center.confirm.mark-no": "请确认是否标记未处理!", - "alert.help.notice": "此模块用于指定告警通知的接收人以及接收方式,使得阈值触发后发送告警信息,通过指定方式通知到接收人(目前支持邮箱、钉钉、微信,Webhook等),点击查看具体配置步骤
⚠\uFE0F注意:配置“新增接收人后”,您还需要配置“新增通知策略”来指定哪些消息发给哪些接收人,点击查看可能遇见的问题。", + "alert.help.notice": "消息通知用于指定告警通知的接收人以及接收方式,使得阈值触发后发送告警信息,通过指定方式通知到接收人(目前支持邮箱、钉钉、微信,Webhook等),点击查看具体配置步骤
⚠\uFE0F注意:配置“新增接收人后”,您还需要配置“新增通知策略”来指定哪些消息发给哪些接收人,点击查看可能遇见的问题。", "alert.help.notice.link":"https://hertzbeat.com/zh-cn/docs/help/alert_threshold", - "alert.help.converge": "您可以点击”新增收敛策略“,并进行配置。
当通过阈值规则判断触发告警后,会进入到告警收敛,告警收敛会根据规则对特定时间段的重复告警消息去重收敛,以避免大量重复性告警导致接收人告警麻木。", + "alert.help.converge": "告警收敛支持对指定时间段内的相同重复告警消息进行去重收敛。您可以点击”新增收敛策略“,并进行配置。
当通过阈值规则判断触发告警后,会进入到告警收敛,告警收敛会根据规则对特定时间段的重复告警消息去重收敛,以避免大量重复性告警导致接收人告警风暴。", "alert.help.converge.link":"https://hertzbeat.com/zh-cn/docs/#%E5%91%8A%E8%AD%A6%E6%94%B6%E6%95%9B", - "alert.help.center": "您可以在此处可查看由设定告警阈值触发的告警消息。Hertzbeat 支持告警处理,告警标记未处理,告警删除清空等批量操作。", + "alert.help.center": "告警中心展示了已触发阈值告警总览,支持接入外部渠道告警。Hertzbeat 支持告警处理,告警标记未处理,告警删除清空等批量操作。", "alert.help.center.link":"https://hertzbeat.com/zh-cn/docs/#%E5%91%8A%E8%AD%A6%E4%B8%AD%E5%BF%83", - "alert.help.setting": "点击“新增阈值”对监控指标进行告警阈值配置,系统将根据配置和采集指标数据计算触发告警。您也可以根据需要修改已有配置,如需进行阈值关联监控,请先关闭全局默认。
注意⚠\uFE0F: 配置完毕后,已经被成功触发的告警信息可以在【告警中心】中查看,您也可以在【消息通知】中设置告警信息的通知方式以及通知人员。", + "alert.help.setting": "阈值规则用于监控指标告警阈值规则管理,点击“新增阈值”对监控指标进行告警阈值配置,系统将根据配置和采集指标数据计算触发告警。您也可以根据需要修改已有配置,如需进行阈值关联监控,请先关闭全局默认。
注意⚠\uFE0F: 配置完毕后,已经被成功触发的告警信息可以在【告警中心】中查看,您也可以在【消息通知】中设置告警信息的通知方式以及通知人员。", "alert.help.setting.link":"https://hertzbeat.com/zh-cn/docs/help/alert_threshold", - "alert.help.silence": "您可以点击”新增静默策略“,设置指定时间段内屏蔽所有的告警通知,避免在周末或者晚上受到打扰。
告警静默规则支持一次性时间段或周期性时间段,支持标签匹配和告警级别匹配", + "alert.help.silence": "告警静默管理用于您不想在系统维护期间或周末晚上受到打扰时,可以点击”新增静默策略“,设置指定时间段内屏蔽所有的告警通知。
告警静默规则支持一次性时间段或周期性时间段,支持标签匹配和告警级别匹配", "alert.help.silence.link":"https://hertzbeat.com/zh-cn/docs/#%E5%91%8A%E8%AD%A6%E9%9D%99%E9%BB%98", "alert.notice.receiver": "消息接收人", "alert.notice.receiver.new": "新增接收人", @@ -376,7 +376,7 @@ "monitor_icon.alert_notice": "notification", "monitor_icon.setting_tags": "tags", "monitor_icon.setting_modules": "code", - "monitors.center.help": "此页面以列表的形式展示当前已添加的监控,同时支持标签分组,查询过滤,查看监控详情入口等。
您可以对监控进行新增,修改,删除,取消监控,导入导出,批量管理等操作。", + "monitors.center.help": "监控中心是HertzBeat的监控资源管理入口,以列表的形式展示当前已添加的监控,同时支持标签分组,查询过滤,查看监控详情入口等。
您可以对监控资源进行新增,修改,删除,取消监控,导入导出,批量管理等操作。", "monitors.center.help.link": "https://hertzbeat.com/zh-cn/docs/#%E7%9B%91%E6%8E%A7%E4%B8%AD%E5%BF%83", "monitors.list": "监控列表", "monitors.spinning-tip.detecting": "测试连接可用性", @@ -526,7 +526,7 @@ "tag.display": "效果", "tag.bind": "绑定标签", "tag.bind.tip": "您可以使用标签进行监控资源的分类管理, 例如给资源分别绑定生产环境、测试环境的标签。", - "tag.help": "自定义的标签可在生成监控时进行绑定(例如生成 JVM 虚拟机监控时绑定标签:“项目1虚拟机”)。您可以使用生成的标签(Tag)对监控资源进行分类管理,例如给资源分别绑定生产环境、测试环境的标签。", + "tag.help": "自定义标签可在新增监控时绑定(例如新增 JVM 虚拟机监控时绑定标签:“env:prod”)。您可以使用生成的标签(Tag)对监控资源进行分类管理,例如给资源分别绑定生产环境、测试环境的标签。", "tag.help.link": "https://hertzbeat.com/zh-cn/docs/", "define.help": "HertzBeat 支持自定义监控,您可以根据自身需求在下拉菜单中选择已有监控模板进行修改。右下区域为编辑区,在这里输入您的 YML 数据,左下区域为对照区。
您也可以点击“新增监控类型”来定义新的的监控类型,目前支持 HTTP 协议JDBC协议SSH协议 JMX 协议 SNMP 协议点击查看监控模板。\n", "define.help.link": "https://hertzbeat.com/zh-cn/docs/advanced/extend-point/", diff --git a/web-app/src/assets/i18n/zh-TW.json b/web-app/src/assets/i18n/zh-TW.json index 281f27d177c..ce27f6d2620 100644 --- a/web-app/src/assets/i18n/zh-TW.json +++ b/web-app/src/assets/i18n/zh-TW.json @@ -140,7 +140,7 @@ "alert.setting.template.monitor-type": "監控類型名稱", "alert.setting.template.metrics-name": "監控指標集合名稱", "alert.setting.template.metric-name": "監控指標名稱", - "alert.setting.template.metric-value": "監控指標對象值", + "alert.setting.template.metric-value": "指標值", "alert.setting.template.other-value": "所屬行其它指標值", "alert.setting.template.instance-value": "所屬行實例值", "alert.setting.default": "全局默認", @@ -211,15 +211,15 @@ "alert.center.confirm.mark-done": "請確認是否標記已處理!", "alert.center.confirm.mark-no-batch": "請確認是否批量標記未處理!", "alert.center.confirm.mark-no": "請確認是否標記未處理!", - "alert.help.notice": "此模塊用於指定告警通知的接收人以及接收管道,使得閾值觸發後發送告警資訊,通過指定管道通知到接收人(現時支持郵箱、釘釘、微信,Webhook等),點擊查看具體配寘步驟
⚠\uFE0F注意:配寘“新增接收人後”,您還需要配寘“新增通知策略”來指定哪些消息發給哪些接收人,點擊查看可能遇見的問題。", + "alert.help.notice": "消息通知用於指定告警通知的接收人以及接收方式,使得閾值觸發後發送告警資訊,通過指定管道通知到接收人(現時支持郵箱、釘釘、微信,Webhook等),點擊查看具體配寘步驟
⚠\uFE0F注意:配寘“新增接收人後”,您還需要配寘“新增通知策略”來指定哪些消息發給哪些接收人,點擊查看可能遇見的問題。", "alert.help.notice.link":"https://hertzbeat.com/zh-cn/docs/help/alert_threshold", - "alert.help.converge": "您可以點擊”新增收斂策略“,並進行配寘。
當通過閾值規則判斷觸發告警後,會進入到告警收斂,告警收斂會根據規則對特定時間段的重複告警消息去重收斂,以避免大量重複性告警導致接收人告警麻木。", + "alert.help.converge": "告警收斂支持對指定時間段內的相同重複告警消息進行去重收斂。您可以點擊”新增收斂策略“,並進行配寘。
當通過閾值規則判斷觸發告警後,會進入到告警收斂,告警收斂會根據規則對特定時間段的重複告警消息去重收斂,以避免大量重複性告警導致接收人告警麻木。", "alert.help.converge.link":"https://hertzbeat.com/zh-cn/docs/#%E5%91%8A%E8%AD%A6%E6%94%B6%E6%95%9B", - "alert.help.center": "您可以在此處可查看由設定告警閾值觸發的告警消息。 Hertzbeat支持告警處理,告警標記未處理,告警删除清空等批量操作。", + "alert.help.center": "告警中心展示了已觸發閾值告警總覽,支持接入外部渠道告警。 Hertzbeat支持告警處理,告警標記未處理,告警删除清空等批量操作。", "alert.help.center.link":"https://hertzbeat.com/zh-cn/docs/#%E5%91%8A%E8%AD%A6%E4%B8%AD%E5%BF%83", - "alert.help.setting": "點擊“新增閾值”對監控名額進行告警閾值配寘,系統將根據配寘和採集名額數據計算觸發告警。 您也可以根據需要修改已有配寘,如需進行閾值關聯監控,請先關閉全域默認。
注意 ⚠\uFE0F: 配寘完畢後,已經被成功觸發的告警資訊可以在【告警中心】中查看,您也可以在【消息通知】中設定告警資訊的通知管道以及通知人員。", + "alert.help.setting": "閾值規則用於監控指標告警閾值規則管理。點擊“新增閾值”對監控名額進行告警閾值配寘,系統將根據配寘和採集名額數據計算觸發告警。 您也可以根據需要修改已有配寘,如需進行閾值關聯監控,請先關閉全域默認。
注意 ⚠\uFE0F: 配寘完畢後,已經被成功觸發的告警資訊可以在【告警中心】中查看,您也可以在【消息通知】中設定告警資訊的通知管道以及通知人員。", "alert.help.setting.link":"https://hertzbeat.com/zh-cn/docs/help/alert_threshold", - "alert.help.silence": "您可以點擊”新增靜默策略“,設定指定時間段內遮罩所有的告警通知,避免在週末或者晚上受到打擾。
告警靜默規則支持一次性時間段或週期性時間段,支持標籤匹配和告警級別匹配", + "alert.help.silence": "告警靜默管理用於您不想在系統維護期間或週末晚上受到打擾時,可以點擊”新增靜默策略“,設定指定時間段內遮罩所有的告警通知,避免在週末或者晚上受到打擾。
告警靜默規則支持一次性時間段或週期性時間段,支持標籤匹配和告警級別匹配", "alert.help.silence.link":"https://hertzbeat.com/zh-cn/docs/#%E5%91%8A%E8%AD%A6%E9%9D%99%E9%BB%98", "alert.notice.receiver": "消息接收人", "alert.notice.receiver.new": "新增接收人", @@ -375,7 +375,7 @@ "monitor_icon.alert_notice": "notification", "monitor_icon.setting_tags": "tags", "monitor_icon.setting_modules": "code", - "monitors.center.help": "此頁面以清單的形式展示當前已添加的監控,同時支持標籤分組,査詢過濾,查看監控詳情入口等。
您可以對監控進行新增,修改,删除,取消監控,導入匯出,批量管理等操作。", + "monitors.center.help": "監控中心是HertzBeat的監控資源管理入口,以清單的形式展示當前已添加的監控,同時支持標籤分組,査詢過濾,查看監控詳情入口等。
您可以對監控進行新增,修改,删除,取消監控,導入匯出,批量管理等操作。", "monitors.center.help.link": "https://hertzbeat.com/zh-cn/docs/#%E7%9B%91%E6%8E%A7%E4%B8%AD%E5%BF%83", "monitors.list": "監控列表", "monitors.spinning-tip.detecting": "測試連接可用性", @@ -525,7 +525,7 @@ "tag.display": "效果", "tag.bind": "綁定標簽", "tag.bind.tip": "您可以使用標簽進行監控資源的分類管理, 例如給資源分別綁定生産環境、測試環境的標簽。", - "tag.help": "自定義的標籤可在生成監控時進行綁定(例如生成JVM虛擬機器監控時綁定標籤:“項目1虛擬機器”)。 您可以使用生成的標籤(Tag)對監控資源進行分類管理,例如給資源分別綁定生產環境、測試環境的標籤。", + "tag.help": "自定義的標籤可在新增監控時進行綁定(例如新增JVM虛擬機器監控時綁定標籤:“env:prod”)。 您可以使用生成的標籤(Tag)對監控資源進行分類管理,例如給資源分別綁定生產環境、測試環境的標籤。", "tag.help.link": "https://hertzbeat.com/zh-cn/docs/", "define.help": "HertzBeat支持自定義監控,您可以根據自身需求在下拉式功能表中選擇已有監控範本進行修改。 右下區域為編輯區,在這裡輸入您的YML數據,左下區域為對照區。
您也可以點擊“新增監控類型”來定義新的的監控類型,現時支持 HTTP協議JDBC協定SSH協定 JMX協定 SNMP協定點擊查看監控範本。", "define.help.link": "https://hertzbeat.com/zh-cn/docs/advanced/extend-point/",