cdklabs / cdk-monitoring-constructs

Easy-to-use CDK constructs for monitoring your AWS infrastructure
https://constructs.dev/packages/cdk-monitoring-constructs
Apache License 2.0
444 stars 56 forks source link

Issues while using monitorFargateApplicationLoadBalancer function to add fargate monitors #406

Closed 19Sravanidulipalla18 closed 10 months ago

19Sravanidulipalla18 commented 10 months ago

Version

"^1.28.1"

Steps and/or minimal code example to reproduce

We don't have access to the actual CDK resource i.e the FargateService resource that's actually getting created. We are using the cdk-monitoring-constructs provided utility monitorFargateApplicationLoadBalancer function to add fargate monitors. We are using the imported FargateService resource, but we are gettting error "Invalid type of load balancer or target group (only ALB and ELB is supported)."

Expected behavior

We are expecting to use monitorFargateApplicationLoadBalancer function to add fargate monitors.

Actual behavior

We don't have access to the actual CDK resource i.e the FargateService resource that's actually getting created. We are using the cdk-monitoring-constructs provided utility monitorFargateApplicationLoadBalancer function to add fargate monitors. We are using the imported FargateService resource, but we are gettting error "Invalid type of load balancer or target group (only ALB and ELB is supported)."

Other details

No response

echeung-amzn commented 10 months ago

Please upgrade to v3.0.0 or higher to leverage https://github.com/cdklabs/cdk-monitoring-constructs/commit/0f97cdaa63d5240f0ac8e36bc6d4ee35fda98ed8