假如你是OAP架构师,我要导入常用告警json,需要包含地址ping不通,有监控对象失联,有端口探测失败,机器负载cpu较高,机器负载内存较高,硬盘IO,硬盘写满,网卡出向或者入向丢包,网络链接,进程监控等30条告警json。另外,需要提供告警的指标。
[{
"alert_name": "地址 Ping 不通",
"description": "检测地址 Ping 不通",
"metric": "ping_loss",
"threshold": 100,
"comparison_operator": ">=",
"window": "1m",
"notification_channels": ["channel_name"],
"actions": ["notify"]
},
{
"alert_name": "监控对象失联",
"description": "监控对象失联告警",
"metric": "connection_status",
"threshold": 0,
"comparison_operator": "=",
"window": "1m",
"notification_channels": ["channel_name"],
"actions": ["notify"]
},
{
"alert_name": "端口探测失败",
"description": "检测端口探测失败",
"metric": "port_status",
"threshold": 0,
"comparison_operator": "=",
"window": "1m",
"notification_channels": ["channel_name"],
"actions": ["notify"]
},
{
"alert_name": "机器负载 CPU 较高",
"description": "检测机器 CPU 负载较高",
"metric": "cpu_load",
"threshold": 80,
"comparison_operator": ">",
"window": "5m",
"notification_channels": ["channel_name"],
"actions": ["notify"]
},
{
"alert_name": "机器负载内存较高",
"description": "检测机器内存负载较高",
"metric": "memory_usage",
"threshold": 90,
"comparison_operator": ">",
"window": "5m",
"notification_channels": ["channel_name"],
"actions": ["notify"]
},
{
"alert_name": "硬盘IO",
"description": "检测硬盘IO异常",
"metric": "disk_io",
"threshold": 1000,
"comparison_operator": ">",
"window": "1m",
"notification_channels": ["channel_name"],
"actions": ["notify"]
},
{
"alert_name": "硬盘写满",
"description": "检测硬盘写满",
"metric": "disk_usage",
"threshold": 90,
"comparison_operator": ">=",
"window": "5m",
"notification_channels": ["channel_name"],
"actions": ["notify"]
},
{
"alert_name": "网卡丢包",
"description": "检测网卡出向或者入向丢包",
"metric": "packet_loss",
"threshold": 1,
"comparison_operator": ">=",
"window": "1m",
"notification_channels": ["channel_name"],
"actions": ["notify"]
},
{
"alert_name": "网络链接失败",
"description": "检测网络链接失败",
"metric": "connection_status",
"threshold": 0,
"comparison_operator": "=",
"window": "1m",
"notification_channels": ["channel_name"],
"actions": ["notify"]
},
{
"alert_name": "进程监控",
"description": "检测进程是否运行",
"metric": "process_status",
"threshold": 0,
"comparison_operator": "=",
"window": "1m",
"notification_channels": ["channel_name"],
"actions": ["notify"]
}]
网友评论