This is an automated email from the ASF dual-hosted git repository.

zhongxjian pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-kubernetes.git


The following commit(s) were added to refs/heads/master by this push:
     new ae85f1fa [horus] Add custom module design (#347)
ae85f1fa is described below

commit ae85f1faf8e50a970100fafdd73dd0adc5bbfc78
Author: mfordjody <[email protected]>
AuthorDate: Mon Sep 16 15:16:29 2024 +0800

    [horus] Add custom module design (#347)
---
 app/horus/basic/config/file.go | 11 +++++++++++
 deploy/horus/horus.yaml        | 26 +++++++++++++++++++++++++-
 2 files changed, 36 insertions(+), 1 deletion(-)

diff --git a/app/horus/basic/config/file.go b/app/horus/basic/config/file.go
index 4fff8e39..bdce4a3e 100644
--- a/app/horus/basic/config/file.go
+++ b/app/horus/basic/config/file.go
@@ -24,6 +24,7 @@ type Config struct {
        KubeMultiple   map[string]string      `yaml:"kubeMultiple"`
        PromMultiple   map[string]string      `yaml:"promMultiple"`
        NodeRecovery   *RecoveryConfiguration `yaml:"nodeRecovery"`
+       CustomModular  *ModularConfiguration  `yaml:"customModular"`
 }
 
 type MysqlConfiguration struct {
@@ -48,3 +49,13 @@ type RecoveryConfiguration struct {
        PromQueryTimeSecond int64                  `yaml:"promQueryTimeSecond"`
        DingTalk            *DingTalkConfiguration `yaml:"dingTalk"`
 }
+
+type ModularConfiguration struct {
+       CordonDailyLimit    map[string]int         `yaml:"cordonDailyLimit"`
+       CheckQL             map[string]string      `yaml:"checkQL"`
+       RecoveryQL          map[string]string      `yaml:"recoveryQL"`
+       CheckIntervalSecond int                    `yaml:"checkIntervalSecond"`
+       PromQueryTimeSecond int64                  `yaml:"promQueryTimeSecond"`
+       KubeMultiple        map[string]string      `yaml:"kubeMultiple"`
+       DingTalk            *DingTalkConfiguration `yaml:"dingTalk"`
+}
diff --git a/deploy/horus/horus.yaml b/deploy/horus/horus.yaml
index ea64ac56..4cb49fa7 100644
--- a/deploy/horus/horus.yaml
+++ b/deploy/horus/horus.yaml
@@ -41,6 +41,30 @@ nodeRecovery:
   promQueryTimeSecond: 5
   dingTalk:
     webhookUrl: 
"https://oapi.dingtalk.com/robot/send?access_token=aa2f3f74d7a2504653ca89b7a673707ba1d04b6d9d320c3572e5464d8f81471e";
-    title: "【项目处理通知】"
+    title: "【Horus 通知】"
+    atMobiles:
+      - 15000000
+
+customModular:
+  cordonDailyLimit:
+    node_filesystem_readonly: 1
+    node_arp_entries: 1
+  checkQL:
+    filesystem_readonly: |-
+      node_filesystem_readonly{mountpoint="/"} == 1
+    arp_entries: |-
+      node_arp_entries{device="ens160"} > 2
+  recoveryQL:
+    filesystem_readonly: |-
+      node_filesystem_readonly{mountpoint="/"} == 0
+    arp_entries: |-
+      node_arp_entries{device="ens160"} < 2
+  checkIntervalSecond: 60
+  promQueryTimeSecond: 5
+  kubeMultiple:
+    cluster: config.1
+  dingTalk:
+    webhookUrl: 
"https://oapi.dingtalk.com/robot/send?access_token=aa2f3f74d7a2504653ca89b7a673707ba1d04b6d9d320c3572e5464d8f81471e";
+    title: "【Horus 通知】"
     atMobiles:
       - 15000000
\ No newline at end of file

Reply via email to