{"id":17070577,"url":"https://github.com/opsnull/hadoop_jmx_exporter","last_synced_at":"2025-04-18T16:24:47.142Z","repository":{"id":39884931,"uuid":"261677174","full_name":"opsnull/hadoop_jmx_exporter","owner":"opsnull","description":"HDFS \u0026 YARN jmx metrics prometheus exporter","archived":false,"fork":false,"pushed_at":"2024-08-22T01:44:04.000Z","size":8723,"stargazers_count":79,"open_issues_count":6,"forks_count":67,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-29T06:33:24.368Z","etag":null,"topics":["hadoop-metrics","jmx","prometheus-exporter"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opsnull.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-06T06:57:25.000Z","updated_at":"2024-12-09T03:00:32.000Z","dependencies_parsed_at":"2024-10-31T07:02:40.334Z","dependency_job_id":"b45e864c-9892-4a7a-a35d-98313b3086e5","html_url":"https://github.com/opsnull/hadoop_jmx_exporter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opsnull%2Fhadoop_jmx_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opsnull%2Fhadoop_jmx_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opsnull%2Fhadoop_jmx_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opsnull%2Fhadoop_jmx_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opsnull","download_url":"https://codeload.github.com/opsnull/hadoop_jmx_exporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249517887,"owners_count":21284854,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hadoop-metrics","jmx","prometheus-exporter"],"created_at":"2024-10-14T11:32:21.441Z","updated_at":"2025-04-18T16:24:47.096Z","avatar_url":"https://github.com/opsnull.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hadoop_jmx_exporter\n\nHadoop HDFS \u0026 YARN jmx metrics prometheus exporter.\n\nAll metrics can be found [here](./examples/all_metrics.txt).\n\nGrafana dashboards json file and a short video demo in [dashboards](./dashboards) directory.\n\nTested on CDH 5.14.2.\n\n![HDFS-Namenode](./dashboards/HDFS-NameNode.png)\n\n# Run\n\n``` bash\n➜  hadoop_jmx_exporter git:(master) ✗ pip2 install -r requirements.txt\n\n➜  hadoop_exporter git:(master) ✗ python2 hadoop_jmx_exporter.py -h\nusage: hadoop_jmx_exporter.py [-h] -cluster cluster_name\n                              [-queue yarn_queue_regexp]\n                              [-nns [namenode_jmx_url [namenode_jmx_url ...]]]\n                              [-rms [resourcemanager_jmx_url [resourcemanager_jmx_url ...]]]\n                              [-jns [journalnode_jmx_url [journalnode_jmx_url ...]]]\n                              [-host host] [-port port]\n\nhadoop jmx metric prometheus exporter\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -cluster cluster_name\n                        Hadoop cluster name (maybe HA name)\n  -queue yarn_queue_regexp\n                        Regular expression of queue name. default: root.*\n  -nns [namenode_jmx_url [namenode_jmx_url ...]]\n                        Hadoop hdfs namenode jmx metrics URL.\n  -rms [resourcemanager_jmx_url [resourcemanager_jmx_url ...]]\n                        Hadoop resourcemanager metrics jmx URL.\n  -jns [journalnode_jmx_url [journalnode_jmx_url ...]]\n                        Hadoop journalnode jmx metrics URL.\n  -host host            Listen on this address. default: 0.0.0.0\n  -port port            Listen to this port. default: 6688\n➜  hadoop_exporter git:(master) ✗\n\n➜  hadoop_exporter git:(master) ✗ python2 hadoop_jmx_exporter.py -cluster yh-cdh -nns http://10.193.40.10:50070/jmx http://10.193.40.3:50070/jmx -rms http://yh-shhd-cdh04:8088/jmx http://yh-shhd-cdh01:8088/jmx\nListen at 0.0.0.0:6688\n```\n\nOpen your browser to view metrics: `http://127.0.0.1:6688/metrics`.\n\n# Reference\n\n1. https://github.com/cauwulixuan/hadoop_exporter\n2. http://hadoop.apache.org/docs/r2.7.3/hadoop-project-dist/hadoop-common/Metrics.html#namenode\n3. https://docs.cloudera.com/HDPDocuments/Ambari-2.7.5.0/using-ambari-core-services/content/amb_hdfs_users.html\n4. https://www.datadoghq.com/blog/collecting-hadoop-metrics/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopsnull%2Fhadoop_jmx_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopsnull%2Fhadoop_jmx_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopsnull%2Fhadoop_jmx_exporter/lists"}