put-metric-data命令不会在云监视中创建绘图

时间:2017-04-12 15:43:21

标签: amazon-web-services amazon-cloudwatch

我正在尝试使用Amazon CloudWatch绘制新指标。

我指的是AWS CLI documentation for put-metric-data

我创建了以下测试JSON:

[{"MetricName":"total_log_count" ,"Timestamp":"Saturday, April 08, 2017 00:00:00 AM","Value":73566,"Unit": "Count"},{"MetricName":"total_log_count" ,"Timestamp":"Sunday, April 09, 2017 00:00:00 AM","Value":61385,"Unit": "Count"},{"MetricName":"total_log_count" ,"Timestamp":"Monday, April 10, 2017 00:00:00 AM","Value":63467,"Unit": "Count"},{"MetricName":"total_log_count" ,"Timestamp":"Tuesday, April 11, 2017 00:00:00 AM","Value":60585,"Unit": "Count"},{"MetricName":"total_log_count" ,"Timestamp":"Wednesday, April 12, 2017 00:00:00 AM","Value":61951,"Unit": "Count"}]

并使用以下命令从EC2实例执行JSON文件:

aws cloudwatch put-metric-data --namespace "Usage Metrics" --metric-data file://test.json  

该命令已成功执行,新指标在CloudWatch中创建,但图表未显示。

我在JSON中做错了什么,或者是否有任何日志功能可以帮助我在CloudWatch中调试数据?

0 个答案:

没有答案