Replies: 1 comment
-
@lsmarsden, I think this is a good feature request. Maybe a Like: const monitoring = new MonitoringFacade(this, "Facade", { ... });
monitoring.monitorScope(stack1, {
..., // 99% fault rate settings
filter: (construct) => {
// return true for lower priority lambdas
}
);
monitoring.monitorScope(stack1, {
..., // 99.99% fault rate settings
filter: (construct) => {
// return true for higher priority lambda
}
); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to override an alarm for a single resource in a monitored scope?
Suppose I have a
MonitoringFacade
which monitors a stack that usesaddFaultRateAlarm(...)
to apply to all lambda functions. This default fault rate alarm is good for 99% of my lambda functions in the stack, but say I have one particular lambda function in my stack that is extra important, and it should have a stricter value on its fault rate alarm. I can choose to add a fault rate alarm on this lambda function, but there are two problems that I see with this:Is there any way to achieve this currently? I imagine it's difficult, if not impossible, due to the way the MonitoringFacade uses Aspects to monitor resources. There doesn't seem to be any guarantee that you can 'remove' an aspect and replace it with a different aspect in a particular case.
I'm wondering what other solutions could work around this issue. Putting the lambda function in a stack outside the monitoring scope would work, but hinders things if it needs to be referenced throughout the stack it was removed from.
Beta Was this translation helpful? Give feedback.
All reactions