块存储事件

本文介绍块存储事件通过云监控和配置审计接入,作为事件源发布到事件总线EventBridge的事件类型。

事件类型

支持发布到事件总线EventBridge的事件类型如下所示。

事件类型

type参数值

磁盘BPS达到磁盘上限需要扩容

ebs:Disk:DiskBPSExceedDiskMaxLimit

磁盘BPS达到实例上限需要扩容

ebs:Disk:DiskBPSExceedInstanceMaxLimit

磁盘IO Hang

ebs:Disk:DiskIOHang

磁盘IOPS达到磁盘上限需要扩容

ebs:Disk:DiskIOPSExceedDiskMaxLimit

磁盘IOPS达到实例上限需要扩容

ebs:Disk:DiskIOPSExceedInstanceMaxLimit

磁盘存在慢IO

ebs:Disk:DiskSlowIOTriggerred

实例BPS达到上限

ebs:Disk:InstanceBPSExceedInstanceMaxLimit

实例IOPS达到上限

ebs:Disk:InstanceIOPSExceedInstanceMaxLimit

云盘IO行为检测到非4K对齐

ebs:Disk:DiskIONo4kAligned

检测到云盘需要快照保护

ebs:Disk:NoSnapshot

磁盘性能规格达到实例规格上限

ebs:Disk:DiskSpecNotMatchedWithInstance

阿里云平台对资源执行的操作事件

ebs:ActionTrail:AliyunServiceEvent

API调用

ebs:ActionTrail:ApiCall

操作台控制事件

ebs:ActionTrail:ConsoleOperation

CloudEvents规范中定义的参数解释,请参见事件概述

磁盘BPS达到磁盘上限需要扩容

当您的磁盘BPS达到磁盘上限,需要扩容时,事件总线EventBridge接收到的示例事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.ebs",
    "specversion": "1.0",
    "subject": "acs.ebs:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "ebs:Disk:DiskBPSExceedDiskMaxLimit",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "eventId": "e-2zec86*******",
        "resourceId": "d-2zef8thfnbx*****",
        "eventLevel": "INFO",
        "eventCategory": "Disk",
        "eventStatus": "WillExecute",
        "eventName": "DiskBPSExceedDiskMaxLimit",
        "startTime": 1694507354000,
        "extraAttributes": {
            "EcsInstanceId": "i-bp1dj*****",
            "TotalMinutes": 1390
        },
        "resourceType": "Disk"
    }
}

data字段包含的参数解释如下表所示。

参数

类型

示例值

描述

eventId

String

e-2zec86****

事件ID。

resourceId

String

d-2zef8thfnbx****

资源ID。

eventCategory

String

Disk

事件类别。

eventLevel

String

INFO

事件级别。

eventName

String

DiskBPSExceedDiskMaxLimit

事件名称。

extraAttributes

String

其他信息。

EcsInstanceId

String

i-bp1dj****

挂载的ECS实例ID。

resourceType

String

Disk

资源类型。

eventStatus

String

WillExecute

事件状态。

startTime

Number

1694507354000

事件开始时间。

endTime

Number

1694507354001

事件结束时间。

TotalMinutes

Int

1390

事件持续时长。

磁盘BPS达到实例上限需要扩容

当磁盘BPS打到实例上限,需要扩容时,事件总线EventBridge接收到的示例事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.ebs",
    "specversion": "1.0",
    "subject": "acs.ebs:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "ebs:Disk:DiskBPSExceedInstanceMaxLimit",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "eventId": "e-2zec86*******",
        "resourceId": "d-2zef8thfnbx*****",
        "eventLevel": "INFO",
        "eventCategory": "Disk",
        "eventStatus": "WillExecute",
        "eventName": "DiskBPSExceedInstanceMaxLimit",
        "startTime": 1694507354000,
        "extraAttributes": {
            "EcsInstanceId": "i-bp1dj*****",
            "TotalMinutes": 1390
        },
        "resourceType": "Disk"
    }
}

关于data字段包含的参数解释,请参见参数解析

磁盘IO Hang

当磁盘 IO Hang时,事件总线EventBridge接收到的示例事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.ebs",
    "specversion": "1.0",
    "subject": "acs.ebs:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "ebs:Disk:DiskIOHang",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "eventId": "e-2zec86*******",
        "resourceId": "d-2zef8thfnbx*****",
        "eventLevel": "INFO",
        "eventCategory": "Disk",
        "eventStatus": "WillExecute",
        "eventName": "DiskIOHang",
        "startTime": 1694507354000,
        "extraAttributes": {
            "EcsInstanceId": "i-bp1dj*****"
        },
        "resourceType": "Disk"
    }
}

关于data字段包含的参数解释,请参见参数解析

磁盘IOPS达到磁盘上限需要扩容

当您的磁盘IOPS达到磁盘上限,需要扩容时,事件总线EventBridge接收到的示例事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.ebs",
    "specversion": "1.0",
    "subject": "acs.ebs:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "ebs:Disk:DiskIOPSExceedDiskMaxLimit",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "eventId": "e-2zec86*******",
        "resourceId": "d-2zef8thfnbx*****",
        "eventLevel": "INFO",
        "eventCategory": "Disk",
        "eventStatus": "WillExecute",
        "eventName": "DiskIOPSExceedDiskMaxLimit",
        "startTime": 1694507354000,
        "extraAttributes": {
            "EcsInstanceId": "i-bp1dj*****",
            "TotalMinutes": 1390
        },
        "resourceType": "Disk"
    }
}

关于data字段包含的参数解释,请参见参数解析

磁盘IOPS达到实例上限需要扩容

当您的磁盘IOPS达到实例上限,需要扩容时,事件总线EventBridge接收到的示例事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.ebs",
    "specversion": "1.0",
    "subject": "acs.ebs:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "ebs:Disk:DiskIOPSExceedInstanceMaxLimit",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "eventId": "e-2zec86*******",
        "resourceId": "d-2zef8thfnbx*****",
        "eventLevel": "INFO",
        "eventCategory": "Disk",
        "eventStatus": "WillExecute",
        "eventName": "DiskIOPSExceedInstanceMaxLimit",
        "startTime": 1694507354000,
        "extraAttributes": {
            "EcsInstanceId": "i-bp1dj*****",
            "TotalMinutes": 1390
        },
        "resourceType": "Disk"
    }
}

关于data字段包含的参数解释,请参见参数解析

磁盘存在慢IO

当磁盘存在慢IO时,事件总线EventBridge接收到的示例事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.ebs",
    "specversion": "1.0",
    "subject": "acs.ebs:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "ebs:Disk:DiskSlowIOTriggerred",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "eventId": "e-2zec86*******",
        "resourceId": "d-2zef8thfnbx*****",
        "eventLevel": "INFO",
        "eventCategory": "Disk",
        "eventStatus": "WillExecute",
        "eventName": "DiskSlowIOTriggerred",
        "startTime": 1694507354000,
        "extraAttributes": {
            "EcsInstanceId": "i-bp1dj*****"
        },
        "resourceType": "Disk"
    }
}

关于data字段包含的参数解释,请参见参数解析

实例BPS达到上限

当检测到实例BPS达到上限时,事件总线EventBridge接收到的示例事件如下所示。

{
    "id": "e-2zec86*******",
    "source": "acs.ebs",
    "specversion": "1.0",
    "subject": "acs.ebs:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "ebs:Disk:InstanceBPSExceedInstanceMaxLimit",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "eventId": "e-2zec86*******",
        "resourceId": "d-2zef8thfnbx*****",
        "eventLevel": "INFO",
        "eventCategory": "Disk",
        "eventStatus": "WillExecute",
        "eventName": "InstanceBPSExceedInstanceMaxLimit",
        "startTime": 1694507354000,
        "extraAttributes": {
            "EcsInstanceId": "i-bp1dj*****",
            "TotalMinutes": 1390
        },
        "resourceType": "Disk"
    }
}

关于data字段包含的参数解释,请参见参数解析

实例IOPS达到上限

当实例IOPS达到上限时,事件总线EventBridge接收到的示例事件如下所示。

{
    "id": "e-2zec86*******",
    "source": "acs.ebs",
    "specversion": "1.0",
    "subject": "acs.ebs:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "ebs:Disk:InstanceIOPSExceedInstanceMaxLimit",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "eventId": "e-2zec86*******",
        "resourceId": "d-2zef8thfnbx*****",
        "eventLevel": "INFO",
        "eventCategory": "Disk",
        "eventStatus": "WillExecute",
        "eventName": "InstanceIOPSExceedInstanceMaxLimit",
        "startTime": 1694507354000,
        "extraAttributes": {
            "EcsInstanceId": "i-bp1dj*****",
            "TotalMinutes": 1390
        },
        "resourceType": "Disk"
    }
}

关于data字段包含的参数解释,请参见参数解析

云盘IO行为检测到非4K对齐

当您的云盘IO行为检测到非4K对齐,可能影响您的云盘IO性能。事件总线EventBridge接收到的示例事件如下所示。

{
    "id": "e-2zec86*******",
    "source": "acs.ebs",
    "specversion": "1.0",
    "subject": "acs.ebs:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "ebs:Disk:DiskIONo4kAligned",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "eventId": "e-2zec86*******",
        "resourceId": "d-2zef8thfnbx*****",
        "eventLevel": "INFO",
        "eventCategory": "Disk",
        "eventStatus": "WillExecute",
        "eventName": "DiskIONo4kAligned",
        "startTime": 1694507354000,
        "extraAttributes": {
            "EcsInstanceId": "i-bp1dj*****"
        },
        "resourceType": "Disk"
    }

关于data字段包含的参数解释,请参见参数解析

检测到云盘需要快照保护

当检测到您的云盘需要快照保护时,事件总线EventBridge接收到的示例事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.ebs",
    "specversion": "1.0",
    "subject": "acs.ebs:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "ebs:Disk:NoSnapshot",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "eventId": "e-2zec86*******",
        "resourceId": "d-2zef8thfnbx*****",
        "eventLevel": "INFO",
        "eventCategory": "Disk",
        "eventStatus": "WillExecute",
        "eventName": "NoSnapshot",
        "startTime": 1694507354000,
        "extraAttributes": {
            "EcsInstanceId": "i-bp1dj*****"
        },
        "resourceType": "Disk"
    }
}

磁盘性能规格达到实例规格上限

当您的磁盘性能规格达到实例规格上限时,事件总线EventBridge接收到的示例事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.ebs",
    "specversion": "1.0",
    "subject": "acs.ebs:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "ebs:Disk:DiskSpecNotMatchedWithInstance",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "eventId": "e-2zec86*******",
        "resourceId": "d-2zef8thfnbx*****",
        "eventLevel": "INFO",
        "eventCategory": "Disk",
        "eventStatus": "WillExecute",
        "eventName": "DiskSpecNotMatchedWithInstance",
        "startTime": 1694507354000,
        "extraAttributes": {
            "EcsInstanceId": "i-bp1dj*****"
        },
        "resourceType": "Disk"
    }
}