├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── release-drafter.yml └── workflows │ ├── release-ci.yml │ └── test-ci.yml ├── .gitignore ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── Dockerfile ├── LICENSE ├── Makefile ├── README.md ├── SECURITY.md ├── WatchAlert.png ├── alert ├── alert.go ├── consumer │ ├── consumer.go │ ├── subscribe.go │ └── upgrader.go ├── eval │ ├── eval.go │ └── query.go ├── mute │ └── mute.go ├── probing │ ├── consumer.go │ ├── process.go │ └── producter.go └── process │ ├── eval.go │ ├── handle.go │ ├── kubeevent.go │ └── process.go ├── api ├── ai.go ├── auditLog.go ├── awsCloudwatch.go ├── awsCloudwatchRds.go ├── client.go ├── dashboard.go ├── dashboardInfo.go ├── datasource.go ├── duty.go ├── dutyCalendar.go ├── entry.go ├── event.go ├── faultCenter.go ├── kubernetesEventTypes.go ├── notice.go ├── noticeTemplate.go ├── probing.go ├── rule.go ├── ruleGroups.go ├── ruleTmpl.go ├── ruleTmplGroup.go ├── settings.go ├── silence.go ├── subscribe.go ├── system.go ├── tanant.go ├── user.go ├── userPermissions.go └── userRole.go ├── assets ├── architecture.png ├── datasource.png ├── duty.png ├── faultcenter.png ├── home.png ├── img.png ├── img_1.png ├── img_2.png ├── img_3.png ├── img_4.png ├── img_5.png ├── img_6.png ├── img_7.png ├── log.png ├── login.png ├── notice.png ├── probing.png ├── rules.png └── user.png ├── config ├── config.go └── config.yaml ├── deploy ├── docker-compose │ ├── docker-compose.yaml │ └── redis.conf └── helmchart │ ├── .gitignore │ ├── .helmignore │ ├── Chart.yaml │ ├── README.md │ ├── files │ └── sql │ │ ├── README.md │ │ ├── auto_import.sh │ │ ├── notice_template_examples.sql │ │ ├── rule_template_groups.sql │ │ ├── rule_templates.sql │ │ ├── tenants.sql │ │ └── tenants_linked_users.sql │ ├── templates │ ├── NOTES.txt │ ├── _helpers.tpl │ ├── mysql │ │ ├── configmap.yaml │ │ ├── job.yaml │ │ ├── service.yaml │ │ └── statefulset.yaml │ ├── redis │ │ ├── configmap.yaml │ │ ├── service.yaml │ │ └── statefulset.yaml │ ├── service │ │ ├── configmap.yaml │ │ ├── deployment.yaml │ │ └── service.yaml │ └── web │ │ ├── configmap.yaml │ │ ├── deployment.yaml │ │ ├── ingress.yaml │ │ └── service.yaml │ └── values.yaml ├── go.mod ├── go.sum ├── initialization ├── init.go ├── routes.go └── sql.go ├── internal ├── cache │ ├── alert.go │ ├── entry.go │ ├── faultCenter.go │ ├── pendingRecover.go │ ├── probing.go │ ├── providerPools.go │ └── silence.go ├── ctx │ └── ctx.go ├── global │ └── global.go ├── middleware │ ├── AuditingLog.go │ ├── Auth.go │ ├── Cors.go │ ├── Permission.go │ ├── RequestLoggerFormatter.go │ ├── Tenant.go │ └── ginlog.go ├── models │ ├── ai.go │ ├── alert_current_event.go │ ├── alert_history_event.go │ ├── auditLog.go │ ├── comment.go │ ├── common.go │ ├── dashboard.go │ ├── datasource.go │ ├── duty_schedule.go │ ├── fault_center.go │ ├── notice.go │ ├── noticeTemplate.go │ ├── probing.go │ ├── prometheus.go │ ├── rule.go │ ├── rule_groups.go │ ├── rule_template.go │ ├── settings.go │ ├── silences.go │ ├── subscribe.go │ ├── template_dingding.go │ ├── template_feishu.go │ ├── template_slack.go │ ├── template_wechat.go │ ├── tenant.go │ ├── user.go │ ├── user_permissions.go │ └── user_role.go ├── repo │ ├── ai.go │ ├── auditLog.go │ ├── comment.go │ ├── dashboard.go │ ├── datasource.go │ ├── duty.go │ ├── duty_schedule.go │ ├── entry.go │ ├── event.go │ ├── fault_center.go │ ├── gorm.go │ ├── notice.go │ ├── notice_tmpl.go │ ├── probing.go │ ├── rule.go │ ├── rule_group.go │ ├── rule_tmpl.go │ ├── rule_tmpl_group.go │ ├── settings.go │ ├── silence.go │ ├── subscribe.go │ ├── tenant.go │ ├── user.go │ ├── user_permissions.go │ └── user_role.go ├── routers │ ├── health.go │ └── v1 │ │ └── api.go ├── services │ ├── ai.go │ ├── alert.go │ ├── auditLog.go │ ├── client.go │ ├── dashboard.go │ ├── datasource.go │ ├── duty.go │ ├── duty_schedule.go │ ├── entry.go │ ├── event.go │ ├── fault_center.go │ ├── ldap.go │ ├── notice.go │ ├── notice_tmpl.go │ ├── oidc.go │ ├── probing.go │ ├── rule.go │ ├── rule_groups.go │ ├── rule_tmpl.go │ ├── rule_tmpl_group.go │ ├── settings.go │ ├── silence.go │ ├── subscribe.go │ ├── tenant.go │ ├── user.go │ ├── user_permissions.go │ └── user_role.go └── types │ ├── ai.go │ ├── audit.go │ ├── dashboard.go │ ├── dashboardInfo.go │ ├── datasource.go │ ├── dutyCalendar.go │ ├── dutyManage.go │ ├── es.go │ ├── event.go │ ├── faultCenter.go │ ├── kubeEvent.go │ ├── kubernetesTypes.go │ ├── notice.go │ ├── noticeTemplate.go │ ├── oidc.go │ ├── probing.go │ ├── rule.go │ ├── ruleGroups.go │ ├── ruleTmpl.go │ ├── ruleTmplGroup.go │ ├── silence.go │ ├── subscribe.go │ ├── tenant.go │ ├── user.go │ └── userRole.go ├── main.go └── pkg ├── ai ├── ai_client.go ├── ai_client_test.go └── types.go ├── client ├── db.go ├── email.go ├── email_test.go └── redis.go ├── community └── aws │ ├── cloudwatch │ ├── c.go │ ├── response │ │ └── r.go │ ├── service │ │ ├── metric.go │ │ └── rds.go │ └── types │ │ └── types.go │ ├── service │ └── region.go │ └── types │ └── types.go ├── oidc └── oidc.go ├── provider ├── aws.go ├── check.go ├── kubernetes.go ├── logs.go ├── logs_alicloud_sls.go ├── logs_clickhouse.go ├── logs_elasticsearch.go ├── logs_loki.go ├── logs_victoria.go ├── metrics.go ├── metrics_prometheus.go ├── metrics_victoriametrics.go ├── probing.go ├── probing_http.go ├── probing_ping.go ├── probing_ssl.go ├── probing_tcp.go ├── test │ ├── clickhouse_test.go │ ├── kubernetes_test.go │ ├── logs_elasticsearch_test.go │ ├── probing_http_test.go │ ├── probing_ping_test.go │ ├── probing_ssl_test.go │ └── probing_tcp_test.go ├── traces.go └── traces_jaeger.go ├── response └── response.go ├── sender ├── aliyun │ └── phonecall.go ├── dingding.go ├── email.go ├── entry.go ├── feishu.go ├── phoneCall.go ├── provider.go ├── slack.go ├── webhook.go └── wechat.go ├── templates ├── dingCard.go ├── email.go ├── feishuCard.go ├── new.go ├── parser.go ├── phoneCall.go ├── slack.go └── wechatCard.go └── tools ├── cmd.go ├── convert.go ├── cronjob.go ├── diff.go ├── hash.go ├── http.go ├── jwt.go ├── leader_election.go ├── redis_pubsub.go └── time.go /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.github/release-drafter.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/.github/release-drafter.yml -------------------------------------------------------------------------------- /.github/workflows/release-ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/.github/workflows/release-ci.yml -------------------------------------------------------------------------------- /.github/workflows/test-ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/.github/workflows/test-ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/.gitignore -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/SECURITY.md -------------------------------------------------------------------------------- /WatchAlert.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/WatchAlert.png -------------------------------------------------------------------------------- /alert/alert.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/alert/alert.go -------------------------------------------------------------------------------- /alert/consumer/consumer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/alert/consumer/consumer.go -------------------------------------------------------------------------------- /alert/consumer/subscribe.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/alert/consumer/subscribe.go -------------------------------------------------------------------------------- /alert/consumer/upgrader.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/alert/consumer/upgrader.go -------------------------------------------------------------------------------- /alert/eval/eval.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/alert/eval/eval.go -------------------------------------------------------------------------------- /alert/eval/query.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/alert/eval/query.go -------------------------------------------------------------------------------- /alert/mute/mute.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/alert/mute/mute.go -------------------------------------------------------------------------------- /alert/probing/consumer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/alert/probing/consumer.go -------------------------------------------------------------------------------- /alert/probing/process.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/alert/probing/process.go -------------------------------------------------------------------------------- /alert/probing/producter.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/alert/probing/producter.go -------------------------------------------------------------------------------- /alert/process/eval.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/alert/process/eval.go -------------------------------------------------------------------------------- /alert/process/handle.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/alert/process/handle.go -------------------------------------------------------------------------------- /alert/process/kubeevent.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/alert/process/kubeevent.go -------------------------------------------------------------------------------- /alert/process/process.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/alert/process/process.go -------------------------------------------------------------------------------- /api/ai.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/api/ai.go -------------------------------------------------------------------------------- /api/auditLog.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/api/auditLog.go -------------------------------------------------------------------------------- /api/awsCloudwatch.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/api/awsCloudwatch.go -------------------------------------------------------------------------------- /api/awsCloudwatchRds.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/api/awsCloudwatchRds.go -------------------------------------------------------------------------------- /api/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/api/client.go -------------------------------------------------------------------------------- /api/dashboard.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/api/dashboard.go -------------------------------------------------------------------------------- /api/dashboardInfo.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/api/dashboardInfo.go -------------------------------------------------------------------------------- /api/datasource.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/api/datasource.go -------------------------------------------------------------------------------- /api/duty.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/api/duty.go -------------------------------------------------------------------------------- /api/dutyCalendar.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/api/dutyCalendar.go -------------------------------------------------------------------------------- /api/entry.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/api/entry.go -------------------------------------------------------------------------------- /api/event.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/api/event.go -------------------------------------------------------------------------------- /api/faultCenter.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/api/faultCenter.go -------------------------------------------------------------------------------- /api/kubernetesEventTypes.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/api/kubernetesEventTypes.go -------------------------------------------------------------------------------- /api/notice.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/api/notice.go -------------------------------------------------------------------------------- /api/noticeTemplate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/api/noticeTemplate.go -------------------------------------------------------------------------------- /api/probing.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/api/probing.go -------------------------------------------------------------------------------- /api/rule.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/api/rule.go -------------------------------------------------------------------------------- /api/ruleGroups.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/api/ruleGroups.go -------------------------------------------------------------------------------- /api/ruleTmpl.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/api/ruleTmpl.go -------------------------------------------------------------------------------- /api/ruleTmplGroup.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/api/ruleTmplGroup.go -------------------------------------------------------------------------------- /api/settings.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/api/settings.go -------------------------------------------------------------------------------- /api/silence.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/api/silence.go -------------------------------------------------------------------------------- /api/subscribe.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/api/subscribe.go -------------------------------------------------------------------------------- /api/system.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/api/system.go -------------------------------------------------------------------------------- /api/tanant.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/api/tanant.go -------------------------------------------------------------------------------- /api/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/api/user.go -------------------------------------------------------------------------------- /api/userPermissions.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/api/userPermissions.go -------------------------------------------------------------------------------- /api/userRole.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/api/userRole.go -------------------------------------------------------------------------------- /assets/architecture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/assets/architecture.png -------------------------------------------------------------------------------- /assets/datasource.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/assets/datasource.png -------------------------------------------------------------------------------- /assets/duty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/assets/duty.png -------------------------------------------------------------------------------- /assets/faultcenter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/assets/faultcenter.png -------------------------------------------------------------------------------- /assets/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/assets/home.png -------------------------------------------------------------------------------- /assets/img.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/assets/img.png -------------------------------------------------------------------------------- /assets/img_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/assets/img_1.png -------------------------------------------------------------------------------- /assets/img_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/assets/img_2.png -------------------------------------------------------------------------------- /assets/img_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/assets/img_3.png -------------------------------------------------------------------------------- /assets/img_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/assets/img_4.png -------------------------------------------------------------------------------- /assets/img_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/assets/img_5.png -------------------------------------------------------------------------------- /assets/img_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/assets/img_6.png -------------------------------------------------------------------------------- /assets/img_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/assets/img_7.png -------------------------------------------------------------------------------- /assets/log.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/assets/log.png -------------------------------------------------------------------------------- /assets/login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/assets/login.png -------------------------------------------------------------------------------- /assets/notice.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/assets/notice.png -------------------------------------------------------------------------------- /assets/probing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/assets/probing.png -------------------------------------------------------------------------------- /assets/rules.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/assets/rules.png -------------------------------------------------------------------------------- /assets/user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/assets/user.png -------------------------------------------------------------------------------- /config/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/config/config.go -------------------------------------------------------------------------------- /config/config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/config/config.yaml -------------------------------------------------------------------------------- /deploy/docker-compose/docker-compose.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/deploy/docker-compose/docker-compose.yaml -------------------------------------------------------------------------------- /deploy/docker-compose/redis.conf: -------------------------------------------------------------------------------- 1 | # Redis configuration 2 | appendonly yes 3 | ignore-warnings ARM64-COW-BUG -------------------------------------------------------------------------------- /deploy/helmchart/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | -------------------------------------------------------------------------------- /deploy/helmchart/.helmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/deploy/helmchart/.helmignore -------------------------------------------------------------------------------- /deploy/helmchart/Chart.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/deploy/helmchart/Chart.yaml -------------------------------------------------------------------------------- /deploy/helmchart/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/deploy/helmchart/README.md -------------------------------------------------------------------------------- /deploy/helmchart/files/sql/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/deploy/helmchart/files/sql/README.md -------------------------------------------------------------------------------- /deploy/helmchart/files/sql/auto_import.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/deploy/helmchart/files/sql/auto_import.sh -------------------------------------------------------------------------------- /deploy/helmchart/files/sql/notice_template_examples.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/deploy/helmchart/files/sql/notice_template_examples.sql -------------------------------------------------------------------------------- /deploy/helmchart/files/sql/rule_template_groups.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/deploy/helmchart/files/sql/rule_template_groups.sql -------------------------------------------------------------------------------- /deploy/helmchart/files/sql/rule_templates.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/deploy/helmchart/files/sql/rule_templates.sql -------------------------------------------------------------------------------- /deploy/helmchart/files/sql/tenants.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/deploy/helmchart/files/sql/tenants.sql -------------------------------------------------------------------------------- /deploy/helmchart/files/sql/tenants_linked_users.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/deploy/helmchart/files/sql/tenants_linked_users.sql -------------------------------------------------------------------------------- /deploy/helmchart/templates/NOTES.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/deploy/helmchart/templates/NOTES.txt -------------------------------------------------------------------------------- /deploy/helmchart/templates/_helpers.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/deploy/helmchart/templates/_helpers.tpl -------------------------------------------------------------------------------- /deploy/helmchart/templates/mysql/configmap.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/deploy/helmchart/templates/mysql/configmap.yaml -------------------------------------------------------------------------------- /deploy/helmchart/templates/mysql/job.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/deploy/helmchart/templates/mysql/job.yaml -------------------------------------------------------------------------------- /deploy/helmchart/templates/mysql/service.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/deploy/helmchart/templates/mysql/service.yaml -------------------------------------------------------------------------------- /deploy/helmchart/templates/mysql/statefulset.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/deploy/helmchart/templates/mysql/statefulset.yaml -------------------------------------------------------------------------------- /deploy/helmchart/templates/redis/configmap.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/deploy/helmchart/templates/redis/configmap.yaml -------------------------------------------------------------------------------- /deploy/helmchart/templates/redis/service.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/deploy/helmchart/templates/redis/service.yaml -------------------------------------------------------------------------------- /deploy/helmchart/templates/redis/statefulset.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/deploy/helmchart/templates/redis/statefulset.yaml -------------------------------------------------------------------------------- /deploy/helmchart/templates/service/configmap.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/deploy/helmchart/templates/service/configmap.yaml -------------------------------------------------------------------------------- /deploy/helmchart/templates/service/deployment.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/deploy/helmchart/templates/service/deployment.yaml -------------------------------------------------------------------------------- /deploy/helmchart/templates/service/service.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/deploy/helmchart/templates/service/service.yaml -------------------------------------------------------------------------------- /deploy/helmchart/templates/web/configmap.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/deploy/helmchart/templates/web/configmap.yaml -------------------------------------------------------------------------------- /deploy/helmchart/templates/web/deployment.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/deploy/helmchart/templates/web/deployment.yaml -------------------------------------------------------------------------------- /deploy/helmchart/templates/web/ingress.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/deploy/helmchart/templates/web/ingress.yaml -------------------------------------------------------------------------------- /deploy/helmchart/templates/web/service.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/deploy/helmchart/templates/web/service.yaml -------------------------------------------------------------------------------- /deploy/helmchart/values.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/deploy/helmchart/values.yaml -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/go.sum -------------------------------------------------------------------------------- /initialization/init.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/initialization/init.go -------------------------------------------------------------------------------- /initialization/routes.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/initialization/routes.go -------------------------------------------------------------------------------- /initialization/sql.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/initialization/sql.go -------------------------------------------------------------------------------- /internal/cache/alert.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/cache/alert.go -------------------------------------------------------------------------------- /internal/cache/entry.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/cache/entry.go -------------------------------------------------------------------------------- /internal/cache/faultCenter.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/cache/faultCenter.go -------------------------------------------------------------------------------- /internal/cache/pendingRecover.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/cache/pendingRecover.go -------------------------------------------------------------------------------- /internal/cache/probing.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/cache/probing.go -------------------------------------------------------------------------------- /internal/cache/providerPools.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/cache/providerPools.go -------------------------------------------------------------------------------- /internal/cache/silence.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/cache/silence.go -------------------------------------------------------------------------------- /internal/ctx/ctx.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/ctx/ctx.go -------------------------------------------------------------------------------- /internal/global/global.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/global/global.go -------------------------------------------------------------------------------- /internal/middleware/AuditingLog.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/middleware/AuditingLog.go -------------------------------------------------------------------------------- /internal/middleware/Auth.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/middleware/Auth.go -------------------------------------------------------------------------------- /internal/middleware/Cors.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/middleware/Cors.go -------------------------------------------------------------------------------- /internal/middleware/Permission.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/middleware/Permission.go -------------------------------------------------------------------------------- /internal/middleware/RequestLoggerFormatter.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/middleware/RequestLoggerFormatter.go -------------------------------------------------------------------------------- /internal/middleware/Tenant.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/middleware/Tenant.go -------------------------------------------------------------------------------- /internal/middleware/ginlog.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/middleware/ginlog.go -------------------------------------------------------------------------------- /internal/models/ai.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/models/ai.go -------------------------------------------------------------------------------- /internal/models/alert_current_event.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/models/alert_current_event.go -------------------------------------------------------------------------------- /internal/models/alert_history_event.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/models/alert_history_event.go -------------------------------------------------------------------------------- /internal/models/auditLog.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/models/auditLog.go -------------------------------------------------------------------------------- /internal/models/comment.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/models/comment.go -------------------------------------------------------------------------------- /internal/models/common.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/models/common.go -------------------------------------------------------------------------------- /internal/models/dashboard.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/models/dashboard.go -------------------------------------------------------------------------------- /internal/models/datasource.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/models/datasource.go -------------------------------------------------------------------------------- /internal/models/duty_schedule.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/models/duty_schedule.go -------------------------------------------------------------------------------- /internal/models/fault_center.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/models/fault_center.go -------------------------------------------------------------------------------- /internal/models/notice.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/models/notice.go -------------------------------------------------------------------------------- /internal/models/noticeTemplate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/models/noticeTemplate.go -------------------------------------------------------------------------------- /internal/models/probing.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/models/probing.go -------------------------------------------------------------------------------- /internal/models/prometheus.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/models/prometheus.go -------------------------------------------------------------------------------- /internal/models/rule.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/models/rule.go -------------------------------------------------------------------------------- /internal/models/rule_groups.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/models/rule_groups.go -------------------------------------------------------------------------------- /internal/models/rule_template.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/models/rule_template.go -------------------------------------------------------------------------------- /internal/models/settings.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/models/settings.go -------------------------------------------------------------------------------- /internal/models/silences.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/models/silences.go -------------------------------------------------------------------------------- /internal/models/subscribe.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/models/subscribe.go -------------------------------------------------------------------------------- /internal/models/template_dingding.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/models/template_dingding.go -------------------------------------------------------------------------------- /internal/models/template_feishu.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/models/template_feishu.go -------------------------------------------------------------------------------- /internal/models/template_slack.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/models/template_slack.go -------------------------------------------------------------------------------- /internal/models/template_wechat.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/models/template_wechat.go -------------------------------------------------------------------------------- /internal/models/tenant.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/models/tenant.go -------------------------------------------------------------------------------- /internal/models/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/models/user.go -------------------------------------------------------------------------------- /internal/models/user_permissions.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/models/user_permissions.go -------------------------------------------------------------------------------- /internal/models/user_role.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/models/user_role.go -------------------------------------------------------------------------------- /internal/repo/ai.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/repo/ai.go -------------------------------------------------------------------------------- /internal/repo/auditLog.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/repo/auditLog.go -------------------------------------------------------------------------------- /internal/repo/comment.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/repo/comment.go -------------------------------------------------------------------------------- /internal/repo/dashboard.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/repo/dashboard.go -------------------------------------------------------------------------------- /internal/repo/datasource.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/repo/datasource.go -------------------------------------------------------------------------------- /internal/repo/duty.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/repo/duty.go -------------------------------------------------------------------------------- /internal/repo/duty_schedule.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/repo/duty_schedule.go -------------------------------------------------------------------------------- /internal/repo/entry.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/repo/entry.go -------------------------------------------------------------------------------- /internal/repo/event.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/repo/event.go -------------------------------------------------------------------------------- /internal/repo/fault_center.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/repo/fault_center.go -------------------------------------------------------------------------------- /internal/repo/gorm.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/repo/gorm.go -------------------------------------------------------------------------------- /internal/repo/notice.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/repo/notice.go -------------------------------------------------------------------------------- /internal/repo/notice_tmpl.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/repo/notice_tmpl.go -------------------------------------------------------------------------------- /internal/repo/probing.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/repo/probing.go -------------------------------------------------------------------------------- /internal/repo/rule.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/repo/rule.go -------------------------------------------------------------------------------- /internal/repo/rule_group.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/repo/rule_group.go -------------------------------------------------------------------------------- /internal/repo/rule_tmpl.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/repo/rule_tmpl.go -------------------------------------------------------------------------------- /internal/repo/rule_tmpl_group.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/repo/rule_tmpl_group.go -------------------------------------------------------------------------------- /internal/repo/settings.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/repo/settings.go -------------------------------------------------------------------------------- /internal/repo/silence.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/repo/silence.go -------------------------------------------------------------------------------- /internal/repo/subscribe.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/repo/subscribe.go -------------------------------------------------------------------------------- /internal/repo/tenant.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/repo/tenant.go -------------------------------------------------------------------------------- /internal/repo/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/repo/user.go -------------------------------------------------------------------------------- /internal/repo/user_permissions.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/repo/user_permissions.go -------------------------------------------------------------------------------- /internal/repo/user_role.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/repo/user_role.go -------------------------------------------------------------------------------- /internal/routers/health.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/routers/health.go -------------------------------------------------------------------------------- /internal/routers/v1/api.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/routers/v1/api.go -------------------------------------------------------------------------------- /internal/services/ai.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/services/ai.go -------------------------------------------------------------------------------- /internal/services/alert.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/services/alert.go -------------------------------------------------------------------------------- /internal/services/auditLog.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/services/auditLog.go -------------------------------------------------------------------------------- /internal/services/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/services/client.go -------------------------------------------------------------------------------- /internal/services/dashboard.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/services/dashboard.go -------------------------------------------------------------------------------- /internal/services/datasource.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/services/datasource.go -------------------------------------------------------------------------------- /internal/services/duty.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/services/duty.go -------------------------------------------------------------------------------- /internal/services/duty_schedule.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/services/duty_schedule.go -------------------------------------------------------------------------------- /internal/services/entry.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/services/entry.go -------------------------------------------------------------------------------- /internal/services/event.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/services/event.go -------------------------------------------------------------------------------- /internal/services/fault_center.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/services/fault_center.go -------------------------------------------------------------------------------- /internal/services/ldap.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/services/ldap.go -------------------------------------------------------------------------------- /internal/services/notice.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/services/notice.go -------------------------------------------------------------------------------- /internal/services/notice_tmpl.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/services/notice_tmpl.go -------------------------------------------------------------------------------- /internal/services/oidc.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/services/oidc.go -------------------------------------------------------------------------------- /internal/services/probing.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/services/probing.go -------------------------------------------------------------------------------- /internal/services/rule.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/services/rule.go -------------------------------------------------------------------------------- /internal/services/rule_groups.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/services/rule_groups.go -------------------------------------------------------------------------------- /internal/services/rule_tmpl.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/services/rule_tmpl.go -------------------------------------------------------------------------------- /internal/services/rule_tmpl_group.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/services/rule_tmpl_group.go -------------------------------------------------------------------------------- /internal/services/settings.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/services/settings.go -------------------------------------------------------------------------------- /internal/services/silence.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/services/silence.go -------------------------------------------------------------------------------- /internal/services/subscribe.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/services/subscribe.go -------------------------------------------------------------------------------- /internal/services/tenant.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/services/tenant.go -------------------------------------------------------------------------------- /internal/services/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/services/user.go -------------------------------------------------------------------------------- /internal/services/user_permissions.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/services/user_permissions.go -------------------------------------------------------------------------------- /internal/services/user_role.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/services/user_role.go -------------------------------------------------------------------------------- /internal/types/ai.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/types/ai.go -------------------------------------------------------------------------------- /internal/types/audit.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/types/audit.go -------------------------------------------------------------------------------- /internal/types/dashboard.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/types/dashboard.go -------------------------------------------------------------------------------- /internal/types/dashboardInfo.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/types/dashboardInfo.go -------------------------------------------------------------------------------- /internal/types/datasource.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/types/datasource.go -------------------------------------------------------------------------------- /internal/types/dutyCalendar.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/types/dutyCalendar.go -------------------------------------------------------------------------------- /internal/types/dutyManage.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/types/dutyManage.go -------------------------------------------------------------------------------- /internal/types/es.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/types/es.go -------------------------------------------------------------------------------- /internal/types/event.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/types/event.go -------------------------------------------------------------------------------- /internal/types/faultCenter.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/types/faultCenter.go -------------------------------------------------------------------------------- /internal/types/kubeEvent.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/types/kubeEvent.go -------------------------------------------------------------------------------- /internal/types/kubernetesTypes.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/types/kubernetesTypes.go -------------------------------------------------------------------------------- /internal/types/notice.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/types/notice.go -------------------------------------------------------------------------------- /internal/types/noticeTemplate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/types/noticeTemplate.go -------------------------------------------------------------------------------- /internal/types/oidc.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/types/oidc.go -------------------------------------------------------------------------------- /internal/types/probing.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/types/probing.go -------------------------------------------------------------------------------- /internal/types/rule.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/types/rule.go -------------------------------------------------------------------------------- /internal/types/ruleGroups.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/types/ruleGroups.go -------------------------------------------------------------------------------- /internal/types/ruleTmpl.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/types/ruleTmpl.go -------------------------------------------------------------------------------- /internal/types/ruleTmplGroup.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/types/ruleTmplGroup.go -------------------------------------------------------------------------------- /internal/types/silence.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/types/silence.go -------------------------------------------------------------------------------- /internal/types/subscribe.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/types/subscribe.go -------------------------------------------------------------------------------- /internal/types/tenant.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/types/tenant.go -------------------------------------------------------------------------------- /internal/types/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/types/user.go -------------------------------------------------------------------------------- /internal/types/userRole.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/internal/types/userRole.go -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/main.go -------------------------------------------------------------------------------- /pkg/ai/ai_client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/ai/ai_client.go -------------------------------------------------------------------------------- /pkg/ai/ai_client_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/ai/ai_client_test.go -------------------------------------------------------------------------------- /pkg/ai/types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/ai/types.go -------------------------------------------------------------------------------- /pkg/client/db.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/client/db.go -------------------------------------------------------------------------------- /pkg/client/email.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/client/email.go -------------------------------------------------------------------------------- /pkg/client/email_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/client/email_test.go -------------------------------------------------------------------------------- /pkg/client/redis.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/client/redis.go -------------------------------------------------------------------------------- /pkg/community/aws/cloudwatch/c.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/community/aws/cloudwatch/c.go -------------------------------------------------------------------------------- /pkg/community/aws/cloudwatch/response/r.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/community/aws/cloudwatch/response/r.go -------------------------------------------------------------------------------- /pkg/community/aws/cloudwatch/service/metric.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/community/aws/cloudwatch/service/metric.go -------------------------------------------------------------------------------- /pkg/community/aws/cloudwatch/service/rds.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/community/aws/cloudwatch/service/rds.go -------------------------------------------------------------------------------- /pkg/community/aws/cloudwatch/types/types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/community/aws/cloudwatch/types/types.go -------------------------------------------------------------------------------- /pkg/community/aws/service/region.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/community/aws/service/region.go -------------------------------------------------------------------------------- /pkg/community/aws/types/types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/community/aws/types/types.go -------------------------------------------------------------------------------- /pkg/oidc/oidc.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/oidc/oidc.go -------------------------------------------------------------------------------- /pkg/provider/aws.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/provider/aws.go -------------------------------------------------------------------------------- /pkg/provider/check.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/provider/check.go -------------------------------------------------------------------------------- /pkg/provider/kubernetes.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/provider/kubernetes.go -------------------------------------------------------------------------------- /pkg/provider/logs.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/provider/logs.go -------------------------------------------------------------------------------- /pkg/provider/logs_alicloud_sls.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/provider/logs_alicloud_sls.go -------------------------------------------------------------------------------- /pkg/provider/logs_clickhouse.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/provider/logs_clickhouse.go -------------------------------------------------------------------------------- /pkg/provider/logs_elasticsearch.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/provider/logs_elasticsearch.go -------------------------------------------------------------------------------- /pkg/provider/logs_loki.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/provider/logs_loki.go -------------------------------------------------------------------------------- /pkg/provider/logs_victoria.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/provider/logs_victoria.go -------------------------------------------------------------------------------- /pkg/provider/metrics.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/provider/metrics.go -------------------------------------------------------------------------------- /pkg/provider/metrics_prometheus.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/provider/metrics_prometheus.go -------------------------------------------------------------------------------- /pkg/provider/metrics_victoriametrics.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/provider/metrics_victoriametrics.go -------------------------------------------------------------------------------- /pkg/provider/probing.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/provider/probing.go -------------------------------------------------------------------------------- /pkg/provider/probing_http.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/provider/probing_http.go -------------------------------------------------------------------------------- /pkg/provider/probing_ping.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/provider/probing_ping.go -------------------------------------------------------------------------------- /pkg/provider/probing_ssl.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/provider/probing_ssl.go -------------------------------------------------------------------------------- /pkg/provider/probing_tcp.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/provider/probing_tcp.go -------------------------------------------------------------------------------- /pkg/provider/test/clickhouse_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/provider/test/clickhouse_test.go -------------------------------------------------------------------------------- /pkg/provider/test/kubernetes_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/provider/test/kubernetes_test.go -------------------------------------------------------------------------------- /pkg/provider/test/logs_elasticsearch_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/provider/test/logs_elasticsearch_test.go -------------------------------------------------------------------------------- /pkg/provider/test/probing_http_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/provider/test/probing_http_test.go -------------------------------------------------------------------------------- /pkg/provider/test/probing_ping_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/provider/test/probing_ping_test.go -------------------------------------------------------------------------------- /pkg/provider/test/probing_ssl_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/provider/test/probing_ssl_test.go -------------------------------------------------------------------------------- /pkg/provider/test/probing_tcp_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/provider/test/probing_tcp_test.go -------------------------------------------------------------------------------- /pkg/provider/traces.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/provider/traces.go -------------------------------------------------------------------------------- /pkg/provider/traces_jaeger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/provider/traces_jaeger.go -------------------------------------------------------------------------------- /pkg/response/response.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/response/response.go -------------------------------------------------------------------------------- /pkg/sender/aliyun/phonecall.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/sender/aliyun/phonecall.go -------------------------------------------------------------------------------- /pkg/sender/dingding.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/sender/dingding.go -------------------------------------------------------------------------------- /pkg/sender/email.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/sender/email.go -------------------------------------------------------------------------------- /pkg/sender/entry.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/sender/entry.go -------------------------------------------------------------------------------- /pkg/sender/feishu.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/sender/feishu.go -------------------------------------------------------------------------------- /pkg/sender/phoneCall.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/sender/phoneCall.go -------------------------------------------------------------------------------- /pkg/sender/provider.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/sender/provider.go -------------------------------------------------------------------------------- /pkg/sender/slack.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/sender/slack.go -------------------------------------------------------------------------------- /pkg/sender/webhook.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/sender/webhook.go -------------------------------------------------------------------------------- /pkg/sender/wechat.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/sender/wechat.go -------------------------------------------------------------------------------- /pkg/templates/dingCard.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/templates/dingCard.go -------------------------------------------------------------------------------- /pkg/templates/email.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/templates/email.go -------------------------------------------------------------------------------- /pkg/templates/feishuCard.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/templates/feishuCard.go -------------------------------------------------------------------------------- /pkg/templates/new.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/templates/new.go -------------------------------------------------------------------------------- /pkg/templates/parser.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/templates/parser.go -------------------------------------------------------------------------------- /pkg/templates/phoneCall.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/templates/phoneCall.go -------------------------------------------------------------------------------- /pkg/templates/slack.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/templates/slack.go -------------------------------------------------------------------------------- /pkg/templates/wechatCard.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/templates/wechatCard.go -------------------------------------------------------------------------------- /pkg/tools/cmd.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/tools/cmd.go -------------------------------------------------------------------------------- /pkg/tools/convert.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/tools/convert.go -------------------------------------------------------------------------------- /pkg/tools/cronjob.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/tools/cronjob.go -------------------------------------------------------------------------------- /pkg/tools/diff.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/tools/diff.go -------------------------------------------------------------------------------- /pkg/tools/hash.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/tools/hash.go -------------------------------------------------------------------------------- /pkg/tools/http.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/tools/http.go -------------------------------------------------------------------------------- /pkg/tools/jwt.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/tools/jwt.go -------------------------------------------------------------------------------- /pkg/tools/leader_election.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/tools/leader_election.go -------------------------------------------------------------------------------- /pkg/tools/redis_pubsub.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/tools/redis_pubsub.go -------------------------------------------------------------------------------- /pkg/tools/time.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opsre/WatchAlert/HEAD/pkg/tools/time.go --------------------------------------------------------------------------------