/namenode_exporter

Forked from https://github.com/fahlke/namenode_exporter

Primary LanguageGoApache License 2.0Apache-2.0

namenode_exporter Build Status

CircleCI Docker Repository on Quay Docker Pulls Go Report Card

NOTE: This is a fork of https://github.com/fahlke/namenode_exporter, in addition to the original repo, this repo provides:

  • Pre-built binaries
  • Docker images

Prometheus exporter for hardware and OS metrics exposed by JXM, written in Go.

Exported Metrics

Metric Meaning Labels
namenode_up Could the namenode be reached  
namenode_uptime_seconds Number of seconds since the namenode started  
... ...

Building and running

make
./namenode_exporter <flags>

Running tests

make test

Flags

To see all available configuration flags:

./namenode_exporter --help
  • namenode.jmx.url: Namenode JMX URL. (default "http://localhost:50070/jmx")
  • namenode.jmx.timeout: Timeout reading from namenode JMX url. (default 5s)
  • namenode.pid-file: Optional path to a file containing the namenode PID for additional metrics.
  • web.listen-address: Address to listen on for web interface and telemetry. (default ":9779")
  • web.telemetry-path: Path under which to expose metrics. (default "/metrics")
  • log.format: Set the log target and format. Example: "logger:syslog?appname=bob&local=7" or "logger:stdout?json=true" (default "logger:stderr")
  • log.level: Only log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal]
  • version: Print version information.

Useful Queries

TODO(fahlke): Add some useful PromQL queries to showcase the namenode_exporter

Using Docker

You can deploy this exporter using the Docker image from following registry: