Giter Club home page Giter Club logo

hadoop-http-jmx-exporter's Introduction

hadoop-http-jmx-exporter

Scrapes Hadoop Metrics and exposes them in Prometheus format.

Supports both simple and SPNEGO authentication for the Hadoop endpoints.

Warning

Metrics are exposed over HTTP without any authentication.

flowchart LR
  id1[Prometheus] --no auth--> id2[Hadoop-HTTP-JMX-Exporter]
  id2[Hadoop-HTTP-JMX-Exporter] --no auth/SPNEGO--> id3[Hadoop Service]
  id3[Hadoop Service]

Configuration

Configuration can be provided ether via environment variable:

JMX_URLS="http://10.0.0.1:8088/jmx,http://10.0.0.1:8042/jmx"
KERBEROS_PRINCIPAL=HTTP/localhost
KERBEROS_REALM=SOME_REALM
KERBEROS_KEYTAB_PATH=/path/to/keytab/with/HTTP/principal
KERBEROS_CONFIG_PATH=/etc/krb5.conf
HTTP_CLIENT_TIMEOUT=10s # default
LISTEN_ADDRESS=0.0.0.0 # default
LISTEN_PORT=9100 # default

or a config YAML file passed as the only argument to the CLI:

jmx_urls:
    - http://10.0.0.1:8088/jmx
    - http://10.0.0.1:8042/jmx
kerberos_principal: HTTP/localhost
kerberos_realm:  SOME_REALM
kerberos_keytab_path: /path/to/keytab/with/HTTP/principal
kerberos_config_path: /etc/krb5.conf
http_client_timeout: 10s # default
listen_address: 0.0.0.0 # default 
listen_port: 9100 # default 

Note

If SPNEGO should not be used do not set configuration options starting with kerberos/KERBEROS prefix. The bare minimum is to provide jmx_urls/JMX_URLS.

Exposed Metrics

Following metrics are currently exposed:

  • JvmMetrics
    • MemNonHeapUsedM
    • MemNonHeapCommittedM
    • MemNonHeapMaxM
    • MemHeapUsedM
    • MemHeapCommittedM
    • MemHeapMaxM
    • MemMaxM
    • GcCount
    • GcTimeMillis
    • GcTotalExtraSleepTime
  • datanode
    • BytesWritten
    • BytesRead
    • HeartbeatsAvgTime
  • ClusterMetrics
    • NumLostNMs
    • NumUnhealthyNMs
    • NumRebootedNMs
  • NodeManagerMetrics
    • ContainersLaunched
    • ContainersCompleted
    • ContainersFailed
    • ContainersKilled
    • ContainersIniting
    • ContainersRunning
    • AllocatedContainers
    • AllocatedGB
    • AvailableGB
    • AllocatedVCores
    • AvailableVCores
    • ContainerLaunchDuration
    • NodeUsedMemGB
    • NodeUsedVMemGB
    • NodeCpuUtilization
    • ContainerUsedMemGB
    • ContainerUsedVMemGB

Releases

Releases are acommpanied by a Docker image available here.

hadoop-http-jmx-exporter's People

Contributors

localghost avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.