Giter Site home page Giter Site logo

node_exporter's Introduction

Node exporter

Build Status

Prometheus exporter for machine metrics, written in Go with pluggable metric collectors.

Building and running

make
./node_exporter <flags>

Running tests

make test

Available collectors

By default the build will include the native collectors that expose information from /proc.

Which collectors are used is controlled by the --collectors.enabled flag.

Enabled by default

Name Description
diskstats Exposes disk I/O statistics from /proc/diskstats.
filesystem Exposes filesystem statistics, such as disk space used.
loadavg Exposes load average.
meminfo Exposes memory statistics from /proc/meminfo.
netdev Exposes network interface statistics from /proc/netstat, such as bytes transferred.
netstat Exposes network statistics from /proc/net/netstat. This is the same information as netstat -s.
stat Exposes various statistics from /proc/stat. This includes CPU usage, boot time, forks and interrupts.
textfile Exposes statistics read from local disk. The --collector.textfile.directory flag must be set.
time Exposes the current system time.
mdadm Exposes statistics about devices in /proc/mdstat (does nothing if no /proc/mdstat present).
vmstat Exposes statistics from/proc/vmstat.

Disabled by default

Name Description
bonding Exposes the number of configured and active slaves of Linux bonding interfaces.
gmond Exposes statistics from Ganglia.
interrupts Exposes detailed interrupts statistics from /proc/interrupts.
ipvs Exposes IPVS status from /proc/net/ip_vs and stats from /proc/net/ip_vs_stats.
lastlogin Exposes the last time there was a login.
megacli Exposes RAID statistics from MegaCLI.
ntp Exposes time drift from an NTP server.
runit Exposes service status from runit.
supervisord Exposes service status from supervisord.
systemd Exposes service and system status from systemd.
tcpstat Exposes TCP connection status information from /proc/net/tcp and /proc/net/tcp6. (Warning: the current version has potential performance issues in high load situations.)

Textfile Collector

The textfile collector is similar to the Pushgateway, in that it allows exporting of statistics from batch jobs. It can also be used to export static metrics, such as what role a machine has. The Pushgateway should be used for service-level metrics. The textfile module is for metrics that are tied to a machine.

To use it, set the --collector.textfile.directory flag on the Node exporter. The collector will parse all files in that directory matching the glob *.prom using the text format.

To atomically push completion time for a cron job:

echo my_batch_job_completion_time $(date +%s) > /path/to/directory/my_batch_job.prom.$$
mv /path/to/directory/my_batch_job.prom.$$ /path/to/directory/my_batch_job.prom

To statically set roles for a machine using labels:

echo 'role{role="application_server"} 1' > /path/to/directory/role.prom.$$
mv /path/to/directory/role.prom.$$ /path/to/directory/role.prom

Using Docker

You can deploy this exporter using the prom/node-exporter Docker image.

For example:

docker pull prom/node-exporter

docker run -d -p 9100:9100 --net="host" prom/node-exporter

node_exporter's People

Contributors

alphab avatar audebert avatar beorn7 avatar brian-brazil avatar cherti avatar crisidev avatar discordianfish avatar eripa avatar f0 avatar fabxc avatar franklinwise avatar grobie avatar icholy avatar jtakkala avatar juergenhoetzel avatar juliusv avatar kenxengineering avatar kirussel avatar kjmkznr avatar kormat avatar lyda avatar matthiasr avatar mischief avatar nighttsarina avatar pborzenkov avatar pdf avatar sdurrheimer avatar siavashs avatar supershabam avatar wrouesnel 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.