All Projects → shunfei → Hadoop_exporter

shunfei / Hadoop_exporter

Exports hadoop metrics via HTTP for Prometheus consumption

Programming Languages

python
139335 projects - #7 most used programming language

Hadoop Exporter for Prometheus

Exports hadoop metrics via HTTP for Prometheus consumption.

How to run

python resourcemanager_exporter.py
python namenode_exporter.py

Help on flags of namenode_exporter:

usage: namenode_exporter.py [-h] [-url url] [--telemetry-path telemetry_path]
                            [-p port] --cluster cluster

optional arguments:
  -h, --help            show this help message and exit
  -url url, --namenode.jmx.url url
                        Hadoop NameNode JMX URL. (default
                        "http://localhost:50070/jmx")
  --telemetry-path telemetry_path
                        Path under which to expose metrics. (default
                        "/metrics")
  -p port, --port port  Listen to this port. (default ":9088")
  --cluster cluster     label for cluster

Help on flags of resourcemanager_exporter:

usage: resourcemanager_exporter.py [-h] [-url url]
                                   [--telemetry-path telemetry_path] [-p port]
                                   --cluster cluster

optional arguments:
  -h, --help            show this help message and exit
  -url url, --resourcemanager.url url
                        Hadoop ResourceManager URL. (default
                        "http://localhost:8088")
  --telemetry-path telemetry_path
                        Path under which to expose metrics. (default
                        "/metrics")
  -p port, --port port  Listen to this port. (default ":9088")
  --cluster cluster     label for cluster

Tested on Apache Hadoop 2.5.2

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].