Hi Bryan,

Few things you can do:


1. Turn on DEBUG mode by changing log4j.properties 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:

https://cwiki.apache.org/confluence/display/AMBARI/Phoenix+Schema


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>


-Sid


________________________________
From: Bryan Bende <[email protected]>
Sent: Friday, July 24, 2015 2:03 PM
To: [email protected]
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:
https://cwiki.apache.org/confluence/display/AMBARI/Metrics+Collector+API+Specification

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.

Thanks,

Bran

Reply via email to