Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
trunk, 2.6.2
-
None
Description
*Steps to reproduce:
*
1. First generate metrics and post it to AMS.
curl --header "Content-Type: application/json" -X POST http://apappu3.hdp.com:6188/ws/v1/timeline/metrics --data @data1.json
{ "metrics": [ { "metricname": "AMBARI_METRICS.SmokeTest.FakeMetric", "appid": "AMS-TEST-APPID", "hostname": "ambari20-5", "timestamp": 1537211229000, "starttime": 1537211229000, "metrics": { "1537211229000": 0.963781711428, "1537211230000": 1432075898000 } } ] }
2. Now make REST api call to see if the data is present.
This does not return any data - reason for this is , while writing it takes the appid as case sensitive but while reading always looks for lower case appid.
Workaround: change the appid from "AMS-TEST-APPID" to "ams-test-appid" (all lower case)- then GET REST API works fine.