Exporter for machine metrics
 
 
 
 
Go to file
Matteo Bigoi 5918be9a8c Fix documentation and a possible slice bounds out of range 2015-10-19 19:31:31 +00:00
collector Fix documentation and a possible slice bounds out of range 2015-10-19 19:31:31 +00:00
.gitignore Add build artifacts to gitignore 2015-04-15 23:30:16 -04:00
.travis.yml Improve end-to-end test output 2015-10-16 18:53:44 -04:00
AUTHORS.md Fix Ken's name in authors file 2015-10-16 19:12:27 -04:00
CHANGELOG.md Cut version 0.11.0 2015-07-27 10:27:09 -04:00
CONTRIBUTING.md License cleanup 2015-01-22 17:11:26 +01:00
Dockerfile New Dockerfile using alpine-golang-make-onbuild base image 2015-07-07 21:56:19 +02:00
LICENSE License cleanup 2015-01-22 17:11:26 +01:00
Makefile Release 0.12.0rc1 2015-10-06 13:36:27 -04:00
Makefile.COMMON Changed Go version to 1.5.1 2015-08-29 08:01:31 +02:00
NOTICE License cleanup 2015-01-22 17:11:26 +01:00
README.md Add supervisord collector to README 2015-10-06 12:39:15 -04:00
end-to-end-test.sh Fix end-to-end test pipefail configuration 2015-10-17 06:31:51 -04:00
node_exporter.go Clean up lint errors 2015-10-16 18:53:44 -04:00

README.md

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).

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.
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