[英]How can I subscribe to cloudwatch metric data?
I am using Elasitsearch to get logs from cloudwatch log group by subscribing a lambda to the log group.我正在使用 Elasitsearch 通过将 lambda 订阅到日志组来从 cloudwatch 日志组获取日志。 So whenever there is a log event pushed to the log group, my lambda will be triggered and it will save the log to Elasticsearch.所以每当有日志事件推送到日志组时,我的 lambda 都会被触发,并将日志保存到 Elasticsearch。 Then I can search the log via Kibana dashboard.然后我可以通过 Kibana 仪表板搜索日志。
I'd like to put the metrics data to Elasticsearch as well but I couldn't find a way to subscribe to metrics data.我也想将指标数据放入 Elasticsearch,但我找不到订阅指标数据的方法。
You can use AWS Module in MetricBeat from the Elastic Beat's family.您可以在 Elastic Beat 家族的 MetricBeat 中使用AWS 模块。 Note that pulling metrics from cloudwatch will result in chargeable API calls.请注意,从 cloudwatch 提取指标将导致收费的 API 调用。 So you should carefully consider the scraping frequency.所以你应该仔细考虑刮擦频率。
Thanks谢谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.