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.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ