Bryan Bende created AMBARI-12584:
------------------------------------

             Summary: Metrics Collector REST API always lowercases appId
                 Key: AMBARI-12584
                 URL: https://issues.apache.org/jira/browse/AMBARI-12584
             Project: Ambari
          Issue Type: Bug
          Components: ambari-metrics
    Affects Versions: 0.1.0
            Reporter: Bryan Bende
            Priority: Minor


While trying to add a new service to Ambari and get metrics displayed in the 
UI, querying the metrics API at ws/v1/timeline/metrics appears to always 
convert the appId parameter to lowercase, where as the appId sent in the 
metrics may or may not be lowercased.

Example:

Send a metric with APP_ID=NIFI then query:

http://localhost:6188/ws/v1/timeline/metrics?metricNames=FlowFiles_Received_Last_5_mins&appId=NIFI&hostname=localhost&startTime=1438193080000&endTime=1438193082000

Gets 0 results.

Send a metric with APP_ID=nifi then query:

http://localhost:6188/ws/v1/timeline/metrics?metricNames=FlowFiles_Received_Last_5_mins&appId=NIFI&hostname=localhost&startTime=1438193080000&endTime=1438193082000

Gets results, even though appId=NIFI in the query.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to