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

azure - add to_zero support for no_data metrics #6194

Conversation

mboret
Copy link
Contributor

@mboret mboret commented Oct 8, 2020

Hi,

This PR adds the ability to set a metric data point to "0" when there is no data. Related to #6085

With this, we can get zombie resources even there is "no data"(ex: find unused Load Balancer for more than 15 days based on the total request. Currently it fails as Azure send no data when there is no load balancer request.) or to get the "real" minimum value of a metric

@mboret mboret changed the title [Azure] add to_zero support for no_data metrics azure - add to_zero support for no_data metrics Oct 9, 2020
Copy link
Collaborator

@kapilt kapilt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, looks good to me, although wondering about to_zero vs zero.. the other options here are verbs, so to_zero seems appropriate.

@kapilt kapilt merged commit d18e1a4 into cloud-custodian:master Oct 10, 2020
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

Successfully merging this pull request may close these issues.

None yet

2 participants