Hadoop metrics exporter for prometheus
![Product Name Screen Shot][product-screenshot]
Actually without Ambari we don't have possibility to get hadoop metrics. This project set sevral metrics for hadoop application like hbase, yarn , hive
We use ruby on rails and prometheus gem.
- [![Ruby][ruby]]Ruby-url]
- [![Docker][Docker]][Docker-url]
We can use docker or not (dockzer is recommanded for better compatibilty)
In any case , you must upload 2 conf files
list of all metrics available, see metrics.yml.example
you can add metrics
choose application
hbase:
SystemCpuLoad:
desc: 'cpu hive server'
metricType: 'gauge
Conf for access to api metrics
exporter:
bind: 0.0.0.0
port: 7629
interval: 60
verbose: true
components:
hbase:
url: http://hbase/jmx
basic_auth:
username: hbase
password: hbase
yarn:
url: http://yarn/ws/v1/cluster/metrics
basic_auth:
username: yarn
password: yarn
namenode:
url: http://namenode.com/jmx
basic_auth:
username: namenode
password: namenode
bind: address where process listen port: port listen interval: interval in second between each api call basic_auth: in case of a minimum of security
-
create conf and metrics directories
mkdir conf mkdir metrics
-
paste metrics/metrics.conf inside metrics directory
touch metrics/metrics.yml
* same for exporter.yml conf
```sh
touch conf/exporter.yml
download docker-compose exemple and run
```sh
docker-compose -f docker-compose.yml up -d