How to publish FROM an AWS lambda to a cloud watch metric in Node.js

前端 未结 2 1715
你的背包
你的背包 2021-02-20 15:57

Inside a lambda I use to periodically check in on a service I check the value of the result from the server and I want that value published to AWS cloudwatch as a metric to form

2条回答
  •  逝去的感伤
    2021-02-20 16:38

    if you want to avoid the latency impact that introducing a sync cloudwatch call would introduce, you could use Metric Filters on the asynchronous logs that are being published.

    Ref: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/MonitoringLogData.html

提交回复
热议问题