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
asked 6 months ago144 views
1 Answer
1
Accepted Answer

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
EXPERT
answered 6 months ago
  • Thank you Riku for your reminder, it does need init when updated the metric. it worked now. Really an EXPERT.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions