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
gefragt vor 6 Monaten154 Aufrufe
1 Antwort
1
Akzeptierte Antwort

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

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen