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
demandé il y a 6 mois154 vues
1 réponse
1
Réponse acceptée

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
répondu il y a 6 mois
  • Thank you Riku for your reminder, it does need init when updated the metric. it worked now. Really an EXPERT.

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions