Lambda CloudWatch指标结果为空

问题描述 投票:1回答:2

我想监视我的lambda函数。我能够从Logs菜单中看到CloudWatch日志,但我希望看到Lambda控制台的监控结果。当我点击监控选项卡时,所有图表都是空的,并显示“无可用数据”。我该怎么做才能看到CloudWatch指标结果?

enter image description here

aws-lambda monitoring amazon-cloudwatch-metrics
2个回答
3
投票

解决方法:

  1. 转到Lambda页面
  2. 按“限定符”按钮打开菜单。
  3. 相反,取消限定,选择要查看的特定别名。
  4. 转到“监控”选项卡

现在图表应该在那里。

直接链接:https://eu-west-1.console.aws.amazon.com/lambda/home?region=eu-west-1#/functions/myLambdaFunctionName/aliases/myLambdaFunctionAlias?tab=monitoring


0
投票

我已设法在CloudWatch仪表板菜单中创建自定义仪表板。我选择了完全相同的lambda指标:调用,错误,限制和持续时间。我还添加了不同版本的持续时间(最大值,最小值和平均值),使其看起来像Lambda监控菜单。我现在可以看到填充的图表。这不是上述问题的正确解决方案,但我得到了我需要的东西。

enter image description here


0
投票

如果您的Lambda函数与CloudFront关联,请转到CloudFront并在左侧菜单中选择监视

cloudfront lambda metrics

直接链接:https://console.aws.amazon.com/cloudfront/v2/home?#/monitoring

然后选择该功能并单击“查看功能指标”

function metrics

© www.soinside.com 2019 - 2024. All rights reserved.