步骤1:创建报警联系人
云监控首页 --> 报警服务 --> 报警联系人 --> 创建报警联系人(手机号/邮箱/钉钉)–> 创建报警联系组–> 添加报警联系人
步骤2:创建应用分组
云监控首页 --> 应用分组 --> 创建应用分组 --> 资源组创建 --> 报警联系人组
步骤3:创建监控模板
云监控首页–> 报警服务–>报警模板–>创建报警模板
应用模板到分组–>选择分组–>管道沉默周期5分钟–>生效时间–>钉钉回调地址
步骤4:监控模板应用到分组
报警模板首页 --> 应用到分组
云监控首页 --> 应用分组 -->组内资源 --> 查看报警监控
报警模板
{
"HostAvailabilityTemplate": [],
"Description": "",
"SystemEventTemplates": [],
"AlertTemplatesJson": {
"rds": [
{
"displayName": "RDS_cpu使用率监控",
"webhook": "",
"category": "rds",
"namespace": "acs_rds_dashboard",
"metricName": "CpuUsage",
"selector": {},
"escalations": {
"info": {
"statistics": "Average",
"comparisonOperator": "GreaterThanOrEqualToThreshold",
"threshold": "80",
"times": 1
},
"warn": {
"statistics": "Average",
"comparisonOperator": "GreaterThanOrEqualToThreshold",
"threshold": "85",
"times": 1
},
"critical": {
"statistics": "Average",
"comparisonOperator": "GreaterThanOrEqualToThreshold",
"threshold": "95",
"times": 1
}
},
"noDataPolicy": "KEEP_LAST_STATE"
}
],
"ecs": [
{
"displayName": "ECS_CPU使用率过高",
"webhook": "",
"category": "ecs",
"namespace": "acs_ecs_dashboard",
"metricName": "cpu_user",
"selector": {},
"escalations": {
"info": {
"statistics": "Average",
"comparisonOperator": "GreaterThanOrEqualToThreshold",
"threshold": "80",
"times": 1
},
"warn": {
"statistics": "Average",
"comparisonOperator": "GreaterThanOrEqualToThreshold",
"threshold": "85",
"times": 1
},
"critical": {
"statistics": "Average",
"comparisonOperator": "GreaterThanOrEqualToThreshold",
"threshold": "95",
"times": 1
}
},
"noDataPolicy": "OK"
},
{
"displayName": "ECS_mem使用率过高",
"webhook": "",
"category": "ecs",
"namespace": "acs_ecs_dashboard",
"metricName": "instance_gpu_memory_usedutilization",
"selector": {},
"escalations": {
"info": {
"statistics": "Average",
"comparisonOperator": "GreaterThanOrEqualToThreshold",
"threshold": "80",
"times": 1
},
"warn": {
"statistics": "Average",
"comparisonOperator": "GreaterThanOrEqualToThreshold",
"threshold": "85",
"times": 1
},
"critical": {
"statistics": "Average",
"comparisonOperator": "GreaterThanOrEqualToThreshold",
"threshold": "95",
"times": 1
}
},
"noDataPolicy": "OK"
},
{
"displayName": "ECS_disk磁盘使用率",
"webhook": "",
"category": "ecs",
"namespace": "acs_ecs_dashboard",
"metricName": "Groupvm.DiskUtilization",
"selector": {},
"escalations": {
"info": {
"statistics": "Average",
"comparisonOperator": "GreaterThanOrEqualToThreshold",
"threshold": "80",
"times": 1
},
"warn": {
"statistics": "Average",
"comparisonOperator": "GreaterThanOrEqualToThreshold",
"threshold": "85",
"times": 1
},
"critical": {
"statistics": "Average",
"comparisonOperator": "GreaterThanOrEqualToThreshold",
"threshold": "95",
"times": 1
}
},
"noDataPolicy": "OK"
}
],
"slb": [
{
"displayName": "负载均衡-port-21",
"webhook": "",
"category": "slb",
"namespace": "acs_slb_dashboard",
"metricName": "UnhealthyServerCount",
"period": 60,
"selector": {},
"escalations": {
"warn": {
"statistics": "Average",
"comparisonOperator": "GreaterThanOrEqualToThreshold",
"threshold": "1",
"times": 1
}
}
},
{
"displayName": "负载均衡-port-22",
"webhook": "",
"category": "slb",
"namespace": "acs_slb_dashboard",
"metricName": "UnhealthyServerCount",
"selector": {},
"escalations": {
"info": {},
"warn": {
"statistics": "Average",
"comparisonOperator": "GreaterThanOrEqualToThreshold",
"threshold": "1",
"times": 1
},
"critical": {}
}
}
]
},
"Namespace": "acs_custom",
"ProcessMonitorTemplates": [],
"Name": "云监控模板"
}