cannot found the custom metrics

0

I use this

aws rum batch-create-rum-metric-definitions --app-monitor-name GlobalStoreMobileShoppingWebapp --destination CloudWatch --destination-arn arn:aws:iam:: --metric-definitions '[{"Name": "buttonMetric","Namespace": "myService","ValueKey": "event_details.visit_count","UnitLabel": "Count","DimensionKeys": {"event_details.buttonName": "buttonName"},"EventPattern":"{\"event_type\":[\"my_custom_event\"],\"event_details\": {\"buttonName\": [\"buttonName\"]}}"}]' --debug

and when i do

aws rum batch-get-rum-metric-definitions --app-monitor-name GlobalStoreMobileShoppingWebapp --destination CloudWatch --destination-arn arn:aws:iam::

it do list the result

{
"MetricDefinitions": [
{
"DimensionKeys": {
"event_details.buttonName": "buttonName"
},
"EventPattern": "{\"event_type\":[\"my_custom_event\"],\"event_details\": {\"buttonName\": [\"buttonName\"]}}",
"MetricDefinitionId": "",
"Name": "buttonMetric",
"Namespace": "myService",
"UnitLabel": "Count",
"ValueKey": "event_details.visit_count"
}
]
}

but cannot found the custom metrics on cloud watch Metrics.

Thank you for you help.

Denny
질문됨 6달 전154회 조회
1개 답변
1
수락된 답변

Hello.

Are you sending data to CloudWatch metrics?
CloudWatch metrics cannot be created without initial data.
Also, are you checking the correct region?

profile picture
전문가
답변함 6달 전
  • Thank you Riku for your reminder, it does need init when updated the metric. it worked now. Really an EXPERT.

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

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

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

관련 콘텐츠