-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[batch] Add Support for AWS Batch #612
Comments
Do you have particular alarms and dashboard widgets that you think would make sense for Batch users? |
The most basic requirement would be widgets which show the number of Batch Job instances in any given status ( However, I do understand this would likely be a large effort given that these metrics are currently not even sent to CloudWatch (i.e. there's no Batch CW namespace--no native metrics or CW integration). I have seen this solved before via EventBridge rules which route Beyond that, it would be nice to have basic CPU/GPU (mem/util) metric widgets from the nodes on the underlying ECS/EKS cluster powering the Batch ComputeEnvironment. |
I've built something like this within my team, but unfortunately it's not clear to me how to contribute something that's backed by a custom Lambda to this repo, as everything seems to rely on AWS exposing the metrics. You basically have 2 ways of getting metrics for AWS Batch:
I also ran into some weirdness, which would raise some eyebrows if I were to try to contribute this, e.g. there is no way to limit the scope of For the event-based thing, I'm creating a Lambda and publishing metrics to a custom namespace, just to make it easier to discover in CloudWatch. You can also avoid this, but you don't need the SNS topic I reckon, you can alarm on the number of times a rule was triggered as well. WRT the resource utilization widgets, you can use Batch |
I'd encourage you to reach out to TAM/support contacts so that they can capture the datapoint about the customer request for the Batch team to help prioritize it.
There's some very basic stuff in this folder that ultimately gets used elsewhere in the repo, but it's far from a robust setup. |
@echeung-amzn Thanks for the pointer Eugene. To be consistent, I'd need to adapt my solution a bit, but no worries. Currently my Lambda:
Does that sound about right? |
I don't feel strongly about this, it'd be more of question of cost benefit. As you mention later, it's simpler with the current setup to just call AWS SDK APIs at least.
That's definitely a downside of the current repo setup since the handler code is just super basic with no build process involved. |
Ok, I'll avoid EMF and powertools. (For reference - you can just attach the official powertools layer, no builds involved, but having 0 non-lambda runtime deps would be best for this repo I agree) |
Feature scope
AWS Batch
Describe your suggested feature
Feature request is for an AWS Batch Monitoring construct
The text was updated successfully, but these errors were encountered: