Skip to content
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

Instance scheduled maintenance #14

Open
danielmotaleite opened this issue Dec 22, 2020 · 0 comments
Open

Instance scheduled maintenance #14

danielmotaleite opened this issue Dec 22, 2020 · 0 comments

Comments

@danielmotaleite
Copy link

Is your feature request related to a problem? Please describe.
I'm looking for a metric that reports ec2 instance scheduled maintenance on ondemand instances. Tried this one but only works now for stop instances. Adding support for ondemand should parse the http://169.254.169.254/latest/meta-data/events/maintenance/scheduled entry. I do not know if spot instances also may use this entry for underlying host problems

Describe the solution you'd like to see
A new metric for aws_scheduled_maintenance_seconds

$ curl http://169.254.169.254/latest/meta-data/events/maintenance/scheduled
[ {
"NotBefore" : "1 Jan 2021 02:00:00 GMT",
"Code" : "instance-stop",
"Description" : "The instance is running on degraded hardware",
"EventId" : "instance-event-07a1c1c08b77d4bf1",
"State" : "active"
} ]

Describe alternatives you've considered
Right now we manage this via the email notifications that is far from ideal way to find and control what instances may have problems, the deadline for releasing the host and if it was already solved.

Additional context
https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/monitoring-instances-status-check_sched.html#viewing_scheduled_events

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant