Support Questions

Find answers, ask questions, and share your expertise

How to Access / Read the Embedded Ambari Metrics Collector Data

avatar
New Contributor

I need to access the Ambari Metrics Data (Embedded) {In embedded mode, the Collector will capture and write metrics to the local file system on the host where the Collector is running} - What is the location where the files are written in HDFS? How to read the Aggregate data? I want to generate a report through Excel on using the Ambari Metrics Data in Aggregated Metrics Tables. Is it feasible? Please advice.

1 ACCEPTED SOLUTION

avatar
Super Guru

@Karthik Rajamanickam

In embedded mode, the Collector will capture and write metrics to the local file system on the host where the Collector is running, not HDFS. As well, all the Collector runs in a single process on that host.

If you are interested where the files, you could open your Ambari http://hostname:8080/#/main/services/AMBARI_METRICS/configs

and check the general configs for Amabari Metrics. Usually, they go to: /var/log/ambari-metrics-collector

I would suggest to use the existent API and a GET command looks like this:

GET http://<ambari-metrics-collector>:6188/ws/v1/timeline/metrics?metricNames=AMBARI_METRICS.SmokeTest.F...

More details here: https://cwiki.apache.org/confluence/display/AMBARI/Metrics+Collector+API+Specification

View solution in original post

3 REPLIES 3

avatar
Super Guru
@Karthik Rajamanickam

I think you should be able to use the Metrics Collector API. Did you try this?

https://cwiki.apache.org/confluence/display/AMBARI/Metrics+Collector+API+Specification

avatar
Super Guru

@Karthik Rajamanickam

In embedded mode, the Collector will capture and write metrics to the local file system on the host where the Collector is running, not HDFS. As well, all the Collector runs in a single process on that host.

If you are interested where the files, you could open your Ambari http://hostname:8080/#/main/services/AMBARI_METRICS/configs

and check the general configs for Amabari Metrics. Usually, they go to: /var/log/ambari-metrics-collector

I would suggest to use the existent API and a GET command looks like this:

GET http://<ambari-metrics-collector>:6188/ws/v1/timeline/metrics?metricNames=AMBARI_METRICS.SmokeTest.F...

More details here: https://cwiki.apache.org/confluence/display/AMBARI/Metrics+Collector+API+Specification

avatar
Explorer

how to Access / Read the Embedded Ambari Metrics Collector Data by phoenix not the restAPI@mqureshi

@Constantin Stanca @