Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

added endpoint for a stack's request count (#221) #222

Closed

Conversation

f-sander
Copy link

This PR addresses this issue #221:

In a Jenkins Pipeline, I want to block the deletion of a stack until it receives no more traffic. The usage of DNS weights for this is insufficient as callers might use long lived connections.

The metric I'm looking at is RequestCount for load balancers in AWS CloudWatch.

A new service lizzy.app.AWS is introduced here that wraps some functionality of boto3 for convenience. In particular, this service provides the following functionality:

  1. resolving a load balancer given a stack-id (if any)
  2. resolving the request count in the last n minutes of that load balancer
    Both, classic and application, load balancers are supported.

Further, a new endpoint is added /stacks/{stack-id}/request_count that first resolves the stack's load balancer and then returnes the request count of it. If the stack can not be found or the stack does not have a load balancer a 404 is returned.

@zalando-stups zalando-stups deleted a comment Feb 22, 2018
@zalando-stups zalando-stups deleted a comment Feb 22, 2018
@zalando-stups zalando-stups deleted a comment Feb 22, 2018
@zalando-stups zalando-stups deleted a comment Feb 22, 2018
@zalando-stups zalando-stups deleted a comment Feb 22, 2018
@zalando-stups zalando-stups deleted a comment Feb 22, 2018
@zalando-stups zalando-stups deleted a comment Feb 22, 2018
@zalando-stups zalando-stups deleted a comment Feb 22, 2018
@zalando-stups zalando-stups deleted a comment Feb 22, 2018
@zalando-stups zalando-stups deleted a comment Feb 22, 2018
@zalando-stups zalando-stups deleted a comment Feb 22, 2018
@zalando-stups zalando-stups deleted a comment Feb 22, 2018
@zalando-stups zalando-stups deleted a comment Feb 22, 2018
@zalando-stups zalando-stups deleted a comment Feb 22, 2018
@zalando-stups zalando-stups deleted a comment Feb 22, 2018
@zalando-stups zalando-stups deleted a comment Feb 22, 2018
@zalando-stups zalando-stups deleted a comment Feb 22, 2018
@f-sander
Copy link
Author

Closing this and reopening a cleaned up version.

@f-sander f-sander closed this Feb 22, 2018
@f-sander f-sander deleted the feature/request_counts branch February 22, 2018 14:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant