How to set different time per widget in a cloud-watch dashboard

0

I have created a AWS cloud-watch dashboard, In that I have multiple widgets. I wanted to Know if there's a way to set a particular time for each widget in the dashboard

1개 답변
0

You can click on the widget's menu and edit it, when you edit the widget, you can modify the time range and check the "persist time range" checkbox. Then update your widget, check the display and save your dashboard.

Alternately, you can set it from the dashboard's JSON source code. For example, I have set a widget with a custom time range of latest 1 hour instead of latest 3 hours, my widget has 2 new properties called start and end:

{
            "height": 5,
            "width": 9,
            "y": 0,
            "x": 0,
            "type": "metric",
            "properties": {
                "metrics": [
                    [ { "expression": "…", "id": "e2", "region": "…" } ],
                    (…)
                ],
                "view": "timeSeries",
                "stacked": false,
                "region": "…",
                "stat": "Average",
                "period": 300,
                "title": "…",
                "start": "-PT1H",
                "end": "P0D"
            }
        },
profile pictureAWS
Jsc
답변함 7달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠