抱歉,写错了,现已修改: 模块 指标名称 key 单位 正常值 Sms 单网关,从业务模块调用短信发送接口到消息最终从短信网关发出去的平均延迟 smsSendTimeCostAvg 毫秒 <=60000 单网关,从业务模块调用短信发送接口到消息最终从短信网关发出去的最大延迟 smsSendTimeCostMax 毫秒 不告警,观察值 调用网关发送api的耗时 smsGatewayApiTimeCostAvg 毫秒 <=3000 短信发送成功数量 smsSendSucceedCount — 不告警,观察值 短信发送成功数量 smsSendFailedCount — 不告警,观察值 不可用短信网关的数量 unavailableGatewayNumber — <=0 Email 单服务器,从业务模块调用邮件发送接口到消息最终从邮件服务器发出去的平均延迟 emailSendTimeCostAvg 毫秒 <=60000 单服务器,从业务模块调用邮件发送接口到消息最终从邮件服务器发出去的最大延迟 emailSendTimeCostMax 毫秒 不告警,观察值 调用邮件服务发送api的耗时 emailServerApiTimeCostAvg 毫秒 <=3000 邮件发送成功数量 emailSendSucceedCount — 不告警,观察值 邮件发送成功数量 emailSendFailedCount — 不告警,观察值 不可用邮件服务器的数量 unavailableServerNumber — <=0 12H2需求新增一些短信邮件的监控指标,需要运维配合基于heartbeat开发下cloudwatch监控指标。具体细节如下: 1. 访问地址: a) Email:https://1000-ows29.host.huawei.com:1443/email/heartbeat.jsp?monitorNames=EmailMonitor¶ms={EmailMonitor:{showDetails:true,tenantId:["1000","1002"]}}} b) Sms: https://1000-ows29.host.huawei.com:1443/sms/heartbeat.jsp?monitorNames=SmsMonitor¶ms={SmsMonitor:{showDetails:true,tenantId:["1000","1002"]}}} 2. 参数说明: a) showDetails:为false时只获取全租户的监控指标统计结果,无参数或为true时获取每个租户的监控指标统计结果; b) tenantId:表示获取指定租户的监控指标统计结果,格式为JsonArray; 3. 指标列表: 模块 指标名称 key 单位 正常值 sms 单网关,从业务模块调用短信发送接口到消息最终从短信网关发出去的平均延迟 smsSendTimeCostAvg 毫秒 <=60000 单网关,从业务模块调用短信发送接口到消息最终从短信网关发出去的最大延迟 smsSendTimeCostMax 毫秒 不告警,观察值 调用网关发送api的耗时 smsGatewayApiTimeCostAvg 毫秒 <=3000 短信发送成功数量 smsSendSucceedCount — 不告警,观察值 短信发送成功数量 smsSendFailedCount — 不告警,观察值 不可用短信网关的数量 unavailableGatewayNumber — <=0 email 单服务器,从业务模块调用邮件发送接口到消息最终从邮件服务器发出去的平均延迟 emailSendTimeCostAvg 毫秒 <=60000 单服务器,从业务模块调用邮件发送接口到消息最终从邮件服务器发出去的最大延迟 emailSendTimeCostMax 毫秒 不告警,观察值 调用邮件服务发送api的耗时 emailServerApiTimeCostAvg 毫秒 <=3000 邮件发送成功数量 emailSendSucceedCount — 不告警,观察值 邮件发送成功数量 emailSendFailedCount — 不告警,观察值 不可用邮件服务器的数量 unavailableServerNumber — <=0 4. 返回数据结构: a) EmailMonitor { "monitorResultMap": { "EmailMonitor": { "resultCode": "0", "avaliable": true, "detailResult": { "emailSendTimeCostAvg": 0, "emailSendTimeCostMax": 0, "emailSendSucceedCount": 0, "details": { "1000": { "20161213001": { "emailSendTimeCostAvg": 0, "emailSendTimeCostMax": 0, "emailServerApiTimeCostAvg": 0, "emailSendSucceedCount": 0, "emailSendFailedCount": 0, "available": true }, "resultCode": 0, "unavailableServerNumber": 0 }, "1002": { "20171222001": { "emailSendTimeCostAvg": 0, "emailSendTimeCostMax": 0, "emailServerApiTimeCostAvg": 0, "emailSendSucceedCount": 0, "emailSendFailedCount": 0, "available": true }, "resultCode": 0, "unavailableServerNumber": 0 } }, "emailSendFailedCount": 0, "unavailableServerNumber": 0, "emailServerApiTimeCostAvg": 0 }, "collectCost": 2, "collectTime": 1513996530389, "paramMap": { "tenantId": "[1000, 1002]", "showDetails": "true" }, "lastest": true } }, "resultCode": "0", "hostname": "NKG1000021834", "collectTime": 1513996530389, "collectCost": 2 } b) SmsMonitor: { "monitorResultMap": { "SmsMonitor": { "resultCode": "0", "avaliable": true, "detailResult": { "smsSendSucceedCount": 0, "smsSendFailedCount": 0, "smsSendTimeCostAvg": 0, "smsGatewayApiTimeCostAvg": 0, "unavailableGatewayNumber": 0, "details": { "1000": { "20171222001": { "smsSendTimeCostAvg": 0, "smsSendTimeCostMax": 0, "smsGatewayApiTimeCostAvg": 0, "smsSendSucceedCount": 0, "smsSendFailedCount": 0, "available": true }, "resultCode": 0, "unavailableGatewayNumber": 0 }, "1002": { "20171222001": { "smsSendTimeCostAvg": 0, "smsSendTimeCostMax": 0, "smsGatewayApiTimeCostAvg": 0, "smsSendSucceedCount": 0, "smsSendFailedCount": 0, "available": true }, "resultCode": 0, "unavailableGatewayNumber": 0 } }, "smsSendTimeCostMax": 0 }, "collectCost": 1, "collectTime": 1514010618609, "paramMap": { "tenantId": "[1000, 1002]", "showDetails": "true" }, "lastest": true } }, "resultCode": "0", "hostname": "NKG1000021834", "collectTime": 1514010618607, "collectCost": 3 } https://sgbeta.owsgo.com/app/heartbeat.jsp {"monitorResultMap":{"DefaultMonitor":{"resultCode":"0","avaliable":true,"detailResult":{"monitorNames":["KafkaProducerMonitor","KafkaCommandMonitor","ActiveMQOperationMonitor","CacheMonitor","WebServiceMonitor","ActiveMQProducerMonitor","ActiveMQConnectionMonitor","RedisMonitor","DBPoolConnectionMonitor","DefaultMonitor","KafkaConsumerMonitor","DBMonitor","ActiveMQConsumerMonitor","ScheduleMonitor","KafkaRegistrationMonitor","PerfMonitor","KafkaConsumerGroupListMonitor","rockPoolClientMonitor","QuartzMonitor","ActiveMQConfigMonitor","ActiveMQMonitor","ActiveMQRegistryMonitor","KafkaConfigMonitor","ServiceFrameworkMonitor","ActiveMQAvaliableMonitor","ZooKeeperMonitor","SmsAndEmailMonitor","KafkaConsumerGroupMonitor","TomcatMonitor","KafkaBrokerMonitor","ActiveMQBrokerMonitor"]},"collectCost":0,"collectTime":1514201448728,"paramMap":{"OnlyAvaliable":"1"},"lastest":false},"ServiceFrameworkMonitor":{"resultCode":"0","avaliable":true,"detailResult":null,"collectCost":1,"collectTime":1514201448728,"paramMap":{"OnlyAvaliable":"1"},"lastest":false},"DBMonitor":{"resultCode":"0","avaliable":true,"detailResult":{"tenantDbStatus":{"1000":"0"}},"collectCost":7,"collectTime":1514201448728,"paramMap":{"OnlyAvaliable":"1"},"lastest":false}},"resultCode":"0","hostname":"testsec-platform-12h2test1-host-2.localdomain","collectTime":1514201452687,"collectCost":0}