Add collector for /proc/stat, enabled by default.

This gives cpu stats, boot time, context switches, forks.
Done.


On 6 June 2014 11:01, juliusv <notifications@github.com> wrote:

> In collector/stat.go:
>
> > @@ -0,0 +1,162 @@
> > +// +build !nostat
> > +
> > +package collector
> > +
> > +import (
> > +	"bufio"
> > +	"os"
> > +	"strconv"
> > +	"strings"
> > +
> > +	"github.com/prometheus/client_golang/prometheus"
> > +)
> > +
> > +/*
> > +#include <unistd.h>
>
> Style-wise, we prefer // comments. Could you change this to // #include
> <unistd.h>?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/prometheus/node_exporter/pull/14/files#r13483249>.
>