Exporter for machine metrics
Find a file
Julius Volz 76e146119f Merge pull request #57 from prometheus/travis-link
Link Travis badge to Travis build status page.
2015-03-21 17:36:59 +01:00
collector Make collector-specific flags consistent with others. 2015-02-18 18:42:39 +01:00
.gitignore Add Makefile with install and release targets 2014-04-09 19:30:49 -04:00
.travis.yml removed go versions, and added make test, as per juliusv request 2015-03-19 10:59:04 -07:00
AUTHORS.md License cleanup 2015-01-22 17:11:26 +01:00
CHANGELOG.md Release version 0.8.0 and introduce changelog. 2015-03-09 19:16:10 +01:00
CONTRIBUTING.md License cleanup 2015-01-22 17:11:26 +01:00
Dockerfile Fix port in Dockerfile 2015-02-10 12:41:51 +01:00
LICENSE License cleanup 2015-01-22 17:11:26 +01:00
Makefile Release version 0.8.0 and introduce changelog. 2015-03-09 19:16:10 +01:00
Makefile.COMMON Use Makefile.COMMON in node exporter. 2015-03-09 19:14:42 +01:00
node_exporter.conf Add MegaCLI collector 2014-07-09 14:56:06 +02:00
node_exporter.go Remove memprofile file, add pprof HTTP endpoint instead. 2015-03-05 17:08:59 +01:00
NOTICE License cleanup 2015-01-22 17:11:26 +01:00
README.md Link Travis badge to Travis build status page. 2015-03-21 11:32:18 +01:00

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
attributes Exposes attributes from the configuration file. Deprecated, use textfile module instead.
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.

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

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