prometheus/node_exporter — pull request #22 by discordianfish (2014-09-04 17:07:39+00:00)
Title: Add pending_updates collector

This collector executes a command which is expected to return
pending updates for the system as ;.

There is unfortunately no standardized way to pending updates for a
given distribution. Not even across deb based systems. Instead of
implementing a specific collector for deb based systems by jungling
around apt-get / apt-cache commands, this just defers the collection of
the actual updates to a script etc which returns ;.

For ubuntu such script is provided by update-notifier-common which is
set as default here.