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
443 stars 56 forks source link

Add Ability to Override Period to Time Range on Bar and Pie Charts for monitorCustom() #449

Closed HaydnNitzsche closed 5 months ago

HaydnNitzsche commented 8 months ago

Feature scope

Custom

Describe your suggested feature

Currently when you pass a CustomMetricGroup to monitorCustom() you can specify graphWidgetType including PIE and BAR as options.

By default, PIE and BAR graphs in CloudWatch display information for only the most recent metric period, rather than the time range of the dashboard [ref]. The GraphWidget CDK construct allows one to set a flag, setPeriodToTimeRange to override this behavior, however there is no way to do so with the graphs generated using this package.

Akshay314 commented 6 months ago

Hi, is there any ETA for completing this feature? We took a dependency on this library and now we have a business usecase for this feature. Its hard to move out or create a new dashboard just for this purpose. If it is not too difficult, can we please add this feature?