基于API密钥监视器API网关的API [英] Monitor API Gateway APIs based on API key

查看:152
本文介绍了基于API密钥监视器API网关的API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何监控我的亚马逊API网关API的API密钥明智吗?

How can I monitor my Amazon API Gateway APIs API key wise?

目前它显示了所有的API密钥的数据,但我想显示的API调用,5XX错误,4XX错误等特定API密钥。

Currently it is showing data for all API keys, but I want to display API calls, 5xx errors, 4xx errors etc for particular API key.

推荐答案

如果你正在寻找监测API的 X-API-键头的水平,它的外观像这是目前不可能的。我猜你必须自己做应用层,它应该如果你使用 LAMBDA 是比较容易的。你的问题带来了另一个问题:它是否真的有意义监视单个API密钥时,错误与特定的API部署/版本相关联

If you're looking at monitoring the API on X-Api-Key header level, it looks like this is currently not possible. I'm guessing you'd have to do it yourself on the application layer, which should be relatively easy if you're using Lambda. Your question brings up another question: Does it really make sense to monitor individual API keys when errors are associated with particular API deployment/version?

如果您想监视每个用户的使用,你需要使用 IAM 您的API证书和 CloudTrail 来监视与特定凭证提出了要求。你可以找到 API网关CloudTrail整合页面上的更多信息。

If you'd like to monitor per-user use, you need to make use of IAM credentials with your API and CloudTrail to monitor requests made with specific credentials. You can find more info on the API Gateway CloudTrail integration page.

这篇关于基于API密钥监视器API网关的API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆