Skip to content

Export Hadoop YARN (resource-manager) metrics in prometheus format

License

Notifications You must be signed in to change notification settings

7A6A78/yarn-prometheus-exporter

This branch is 5 commits behind PBWebMedia/yarn-prometheus-exporter:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6e2f5ae · Mar 14, 2022

History

20 Commits
Sep 7, 2021
Feb 6, 2018
Sep 7, 2021
Feb 7, 2018
Feb 7, 2018
Mar 14, 2022
Feb 7, 2018
Apr 19, 2021
Apr 19, 2021
Apr 19, 2021
Feb 15, 2022
Feb 15, 2022
Apr 16, 2021

Repository files navigation

YARN prometheus exporter

Export YARN metrics in Prometheus format.

Build

Requires Go. Tested with Go 1.9+.

go get
go build -o yarn-prometheus-exporter .

Run

The exporter can be configured using environment variables. These are the defaults:

YARN_PROMETHEUS_LISTEN_ADDR=:9113
YARN_PROMETHEUS_ENDPOINT_SCHEME=http
YARN_PROMETHEUS_ENDPOINT_HOST=localhost
YARN_PROMETHEUS_ENDPOINT_PORT=8088
YARN_PROMETHEUS_ENDPOINT_PATH=ws/v1/cluster/metrics

Run the exporter:

./yarn-prometheus-exporter

The metrics can be scraped from:

http://localhost:9113/metrics

Run using docker

Run using docker:

docker run -p 9113:9113 pbweb/yarn-prometheus-exporter

Or using docker-compose:

services:
    image: pbweb/yarn-prometheus-exporter
    restart: always
    environment:
        - "YARN_PROMETHEUS_ENDPOINT_HOST=yarn.hadoop.lan"
    ports:
        - "9113:9113"

License

See LICENSE.md

About

Export Hadoop YARN (resource-manager) metrics in prometheus format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 98.0%
  • Makefile 1.2%
  • Dockerfile 0.8%