简体   繁体   English

编写 Java 代码来检查有多少个 AWS function 实例正在运行

[英]Writing Java code to check how many instances of an AWS function are running

I want to write some Java code to see how many instances of a specific AWS Lambda function are currently running, but I can't find an appropriate API to do this.我想写一些 Java 代码来查看当前正在运行的特定 AWS Lambda function 的实例数量,但我找不到合适的 API 来执行此操作。

I've searched the web (AWS Documentation, StackOverflow, and general Google searches) but the only information I can find describes how to use the AWS Web Interface to view graphs.我搜索了 web(AWS 文档、StackOverflow 和一般的 Google 搜索),但我能找到的唯一信息描述了如何使用 AWS Web 界面查看图表。 This is not what I need.这不是我需要的。

Does such an API exist?这样的API存在吗? I imagine that the AWS dashboard uses some API to get its statistics, but maybe this is isn't publicly available?我想 AWS 仪表板使用一些 API 来获取其统计信息,但也许这不是公开的?

We can get this information via Cloudwatch metrics我们可以通过Cloudwatch 指标获取此信息在此处输入图像描述 . .

Just a small catch that this information has a lag of 60 seconds.只是一个小问题,即此信息有 60 秒的延迟。 To get the number of concurrent connections at any instant, there is no direct way.要获取任何时刻的并发连接数,没有直接的方法。

暂无
暂无

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

相关问题 如何检查我是否在 GCP / AWS 实例上运行代码? - How to check whether if I'm running the code on a GCP / AWS instance? 如何使用 java 代码调用在 SAM localhost:3001 上运行的 AWS lambda function - How can I invoke a AWS lambda function running on SAM localhost:3001 using java code 如何检查正在运行的 Google Cloud Run 容器实例的数量? - How can I check how many instances of a Google Cloud Run container are running? 在 aws Code Deploy 更新正在运行的实例中的应用程序之后,使用 RunInstances 启动的新 EC2 实例使用启动模板中的陈旧 AMI - New EC2 instances launched with RunInstances use stale AMI from Launch Template , after aws Code Deploy updates the application in running instances 如何使用 aws java sdk 中的 getExecutionHistory 检查步骤 function 的状态 - How to use getExecutionHistory from aws java sdk to check status of a step function 如何杀死/终止正在运行的 AWS Lambda function? - How to kill/terminate a running AWS Lambda function? 一个 AWS Lambda function 一次可以处理多少条消息? - How many messages can a single AWS Lambda function process at once? 如何从 aws 账户上运行的所有 EC2 实例中获取 PowerShell 版本? - How to get the PowerShell version from all EC2 instances running on the aws account? 在 aws linux 2 个实例上使用弹性 beanstalk 运行 django-q - Running django-q using elastic beanstalk on aws linux 2 instances 如何同步 2 个 AWS RDS 实例 - How to sync 2x AWS RDS instances
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM