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

Add support for various CloudWatch Dashboard features #2385

Closed
Labels
feature-request A feature should be added or improved.

Comments

@immmapig
Copy link

The Dashboard construct is missing support to control liveData for the Graph widget. Within the graph widget, it is also not possible to configure showUnits and label for the y-axis.

The following is an example of a graph widget produced by the AWS console that configures all 3 of the configurations mentioned above:

{
    "view": "timeSeries",
    "title": "Engagement Events/5 Mins",
    "region": "us-east-1",
    "metrics": [
        [ "kennetdo-PrESSAppLambda", "OrderEventEngagementEvent", { "yAxis": "left", "period": 300, "stat": "Sum" } ],
        [ ".", "DigitalOrderEventEngagementEvent", { "yAxis": "left", "period": 300, "stat": "Sum" } ],
        [ ".", "AsinPageEngagementEvent", { "yAxis": "left", "period": 300, "stat": "Sum" } ],
        [ ".", "AVStopPlaybackEngagementEvent", { "yAxis": "left", "period": 300, "stat": "Sum" } ],
        [ ".", "TrackDownloadedEngagementEvent", { "yAxis": "left", "period": 300, "stat": "Sum" } ],
        [ ".", "TrackStreamedEngagementEvent", { "yAxis": "left", "period": 300, "stat": "Sum" } ]
    ],
    "yAxis": {
        "left": {
            "min": 0,
            "showUnits": false,
            "label": "Custom Label"
        },
        "right": {
            "min": 0
        }
    },
    "period": 300,
    "liveData": false
}
@immmapig immmapig added the feature-request A feature should be added or improved. label Apr 26, 2019
@immmapig
Copy link
Author

Metric math support is also missing.

kpiljoong pushed a commit to kpiljoong/aws-cdk that referenced this issue May 1, 2019
Support setting for the y-axis on a graph: min, max, label, and showUnits

Fixes aws#2385
kpiljoong pushed a commit to kpiljoong/aws-cdk that referenced this issue May 1, 2019
Support setting for the y-axis on a graph: min, max, label, and showUnits.

Fixes aws#2385
kpiljoong pushed a commit to kpiljoong/aws-cdk that referenced this issue May 14, 2019
Support setting for the y-axis on a graph: min, max, label, and showUnits.

Fixes aws#2385
rix0rrr pushed a commit that referenced this issue May 24, 2019
Support setting for the y-axis on a graph: min, max, label, and showUnits.

Fixes #2385.

BREAKING CHANGE: rename `leftAxisRange` => `leftYAxis`, `rightAxisRange`
=> `rightYAxis`, rename `YAxisRange` => `YAxisProps`.
This was referenced Dec 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment