Stack monitoring best practices #606
-
Feature scopeDocumentation Describe your suggested featureHello, I was wondering if you could shed some light on monitoring stack best practices for standard infrastructure setup. My first thought was to create a Monitoring stack and use introspection like below: val monitoringStack = MonitoringStack(this, "MonitoringStack", StackProps.builder().build())
val monitoring = MonitoringFacade(
monitoringStack,
"MonitoringFacade",
MonitoringFacadeProps.builder()
.build(),
)
val defaultAspectProps = MonitoringAspectProps.builder()
.billing(MonitoringAspectType.builder().enabled(false).build())
.ec2(MonitoringAspectType.builder().enabled(false).build())
.elasticCache(MonitoringAspectType.builder().enabled(false).build())
.build()
monitoring.monitorScope(delegatedZoneStack, defaultAspectProps)
monitoring.monitorScope(hangoutDbStack, defaultAspectProps,)
monitoring.monitorScope(hangoutsApiStack, defaultAspectProps,)
monitoring.monitorBilling() Which works great. Thanks for this great tool! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is realistically going to be highly opinionated on what works for particular individuals/teams.
I generally see the export problem being referred to as "deadly embrace" and some posts like this one explain how to deal with those. I've personally had decent experiences putting my monitoring resources within nested stacks close to the actual resources, e.g. an I've certainly seen plenty of people just put things in separate stacks too though, and it could work fine if the infrastructure is relatively stable and doesn't change much. |
Beta Was this translation helpful? Give feedback.
This is realistically going to be highly opinionated on what works for particular individuals/teams.
monitorScope
is generally convenient if you don't have specific needs and just want to have some dashboards for everything to look through.I generally see the export problem being referred to as "deadly embrace" and some posts like this one explain how to deal with those.
I've personally had decent experiences putting my monitoring resources within nes…