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

opt-out / filter CPUCreditBalanceLow alarm #48

Closed
slang25 opened this issue Mar 15, 2017 · 6 comments
Closed

opt-out / filter CPUCreditBalanceLow alarm #48

slang25 opened this issue Mar 15, 2017 · 6 comments

Comments

@slang25
Copy link
Member

slang25 commented Mar 15, 2017

For non t2 EC2 instances, this alarm is always in the insufficient state

@tomhaigh
Copy link
Contributor

Could we allow null as a threshold to disable the alarm? although we would need to be able to distinguish between an opt-out vs using the default threshold (where value isn't specified at all at any level).

@AnthonySteele
Copy link
Contributor

Agreed, there should be a way to opt out form an alarm entirely.

@tomhaigh
Copy link
Contributor

Would it be better to make this alarm opt-in? as using t2 isn't a default choice. Is it too late to change it now?

@tomhaigh
Copy link
Contributor

tomhaigh commented Mar 6, 2018

Currently you can set threshold like this:

{
    "AlarmName": 400
}

This is shorthand for:

{
    "AlarmName": { 
         "Threshold": 400,
         // other options here like percentile, number of periods    
    }
}

proposal

Suggest we allow opt-out by adding another property:

{
    "AlarmName": { 
         "Enabled": false,
        // other options here like threshold, percentile, number of periods . not relevant here though
    }
}

(Some alarm types in future could have the Enabled property defaulted to false so that they become opt-in rather than opt-out.)

We can then make it easier to opt out by introducing another shorthand which would expand to the above:

{
    "AlarmName": false
}

The bit I don't really like about this is that the shorthand maps to two different properties depending on whether it's a bool or another type. But it does make it less painful to configure.

Thoughts @AnthonySteele @slang25 @andrewclowes ?

@tomhaigh
Copy link
Contributor

tomhaigh commented Mar 9, 2018

Didn't get any feedback so have proceeded with PR implementing the above

tomhaigh added a commit that referenced this issue Mar 12, 2018
* Opt out of alarms (#48)

* Config loading and shorthand for disable

* Update docs

* AlarmValue constructor defaults
@tomhaigh
Copy link
Contributor

opt out was implemented in #128

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

3 participants