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

(aws-cloudwatch): Ability to set time frames for individual graphs in a dashboard #26945

Closed
2 tasks
hhxiagithub opened this issue Aug 30, 2023 · 2 comments · Fixed by #26969
Closed
2 tasks
Labels
@aws-cdk/aws-cloudwatch Related to Amazon CloudWatch effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2

Comments

@hhxiagithub
Copy link

Describe the feature

Currently, we can set a time frame for an entire dashboard, or set individual time frames for graphs in the CloudWatch dashboard console manually, but the functionality to do so inside CDK doesn't exist.

Setting these time frames manually in the CloudWatch console is not an option for me, as any changes I make there are overwritten with the next code deployment.

Use Case

I'd like to display graphs with different time frames in the same dashboard. For example, I'd like to display the same metric over a period of 7 days, and also display it over 8 hours so I get a more complete look at the metric and its history.

Proposed Solution

Just as we have the option to specify start and end times for a dashboard, I'd like that option added for a graph. The start/end times that a graph specifies should override the start/end of the dashboard that the graph sits in. This way, we can specify a default time range for graphs in a dashboard, but individual graphs can still override that when needed.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.79.1

Environment details (OS name and version, etc.)

macOS 13.3.1

@hhxiagithub hhxiagithub added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Aug 30, 2023
@github-actions github-actions bot added the @aws-cdk/aws-cloudwatch Related to Amazon CloudWatch label Aug 30, 2023
@khushail khushail self-assigned this Aug 30, 2023
@khushail khushail added investigating This issue is being investigated and/or work is in progress to resolve the issue. and removed needs-triage This issue or PR still needs to be triaged. labels Aug 30, 2023
@khushail khushail changed the title Feature Request: Ability to set time frames for individual graphs in a dashboard (aws-cloudwatch): Ability to set time frames for individual graphs in a dashboard Aug 30, 2023
@khushail khushail added p2 and removed investigating This issue is being investigated and/or work is in progress to resolve the issue. labels Aug 30, 2023
@khushail khushail removed their assignment Aug 30, 2023
@khushail khushail added the effort/medium Medium work item – several days of effort label Aug 30, 2023
@khushail
Copy link
Contributor

khushail commented Aug 30, 2023

hi @hhxiagithub ,thanks for reaching out with this feature request. It would be useful to have.

@mergify mergify bot closed this as completed in #26969 Sep 19, 2023
mergify bot pushed a commit that referenced this issue Sep 19, 2023
…ng relative values (#26969)

This PR adds `start` and `end` properties to Widgets.

These properties can be used to specify the time range for each graph widget independently from those of the dashboard.
The parameters can be specified at `GraphWidget`, `GaugeWidget`, and `SingleValueWidget`.

Closes #26945.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

HBobertz pushed a commit that referenced this issue Sep 19, 2023
…ng relative values (#26969)

This PR adds `start` and `end` properties to Widgets.

These properties can be used to specify the time range for each graph widget independently from those of the dashboard.
The parameters can be specified at `GraphWidget`, `GaugeWidget`, and `SingleValueWidget`.

Closes #26945.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-cloudwatch Related to Amazon CloudWatch effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants