简体   繁体   English

审核 AWS CloudWatch 和 SNS 通知

[英]Auditing AWS CloudWatch and SNS Notifications

I have a CloudWatch Alarm that sends a notification to an SNS topic, and I have a subscriber on that topic setup to receive those notifications.我有一个向 SNS 主题发送通知的 CloudWatch 警报,并且我在该主题设置上有一个订阅者来接收这些通知。

The problem is, the consumer listening on that topic is not receiving the notifications when I see evidence that the alarm should be firing notifications to the topic.问题是,当我看到警报应该向该主题发出通知的证据时,侦听该主题的消费者没有收到通知。 So I'm trying to figure out:所以我想弄清楚:

  • Is the alarm not configured properly?告警是否配置不正确?
  • Is the SNS topic or the subscription on that topic not configured properly?是否未正确配置 SNS 主题或该主题的订阅?

So I ask: is it possible to get an " audit " of when CloudWatch alarms fire notifications?所以我问:是否有可能对 CloudWatch 警报触发通知进行“审核”? Is it possible to get a similar "audit" in SNS, where you can see a log of what has been published to a particular topic, and whether or not anything successfully consumed/read it?是否有可能在 SNS 中进行类似的“审核”,您可以在其中查看已发布到特定主题的内容的日志,以及是否有任何内容成功消费/阅读?

We have metrics in cloudwatch.我们在 cloudwatch 中有指标。 When you configure alarms we publish metrics for the same.当您配置警报时,我们会发布相同的指标。 So you can check in the console if your metric has been published or not.因此,您可以在控制台中检查您的指标是否已发布。 If metric is published that means alarm has been triggered.如果指标已发布,则表示已触发警报。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM