ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Siddharth Wagle <>
Subject Re: Posting Metrics to Ambari
Date Fri, 24 Jul 2015 21:44:42 GMT
Hi Bryan,

Few things you can do:

1. Turn on DEBUG mode by changing at, /etc/ambari-metrics-collector/conf/

This might reveal more info, I don't think we print every metrics received to the log in 2.0
or 2.1, I did add this option if TRACE is enabled to trunk recently.

2. Connect using Phoenix directly and you can do a SELECT query like this:

SELECT * from METRIC_RECORD WHERE METRIC_NAME = '<your-metric-name>' order by SERVER_TIME
desc limit 10;

Instructions for connecting to Phoenix:

3. What API call are you making to get metrics?

E.g.: http://<ams-collector>:6188/ws/v1/timeline/metrics?metricNames=<your-metric-name>&startTime=<epoch>&endTime=<epoch>&hostname=<hostname>


From: Bryan Bende <>
Sent: Friday, July 24, 2015 2:03 PM
Subject: Posting Metrics to Ambari

I'm interested in sending metrics to Ambari and I've been looking at the Metrics Collector
REST API described here:

I figured the easiest way to test it would be to get the latest HDP Sandbox... so I downloaded
and started it up. The Metrics Collector service wasn't running so I started it, and also
added port 6188 to the VM port forwarding. From there I used the example POST on the Wiki
page and made a successful POST which got a 200 response. After that I tried the query, but
could never get any results to come back.

I know this list is not specific to HDP, but I was wondering if anyone has any suggestions
as to what I can look at to figure out what is happening with the data I am posting.

I was watching the metrics collector log while posting and querying and didn't see any activity
besides the periodic aggregation.

Any suggestions would be greatly appreciated.



View raw message