Add runit exporter

This commit is contained in:
Johannes 'fish' Ziemke 2013-07-25 15:30:35 +02:00
commit ada754e7f6
2 changed files with 69 additions and 1 deletions

View file

@ -80,12 +80,17 @@ func New(configFile string) (e exporter, err error) {
log.Fatalf("Couldn't attach collector: %s", err)
}
cr, err := NewRunitCollector(e.config, e.registry)
if err != nil {
log.Fatalf("Couldn't attach collector: %s", err)
}
cg, err := NewGmondCollector(e.config, e.registry)
if err != nil {
log.Fatalf("Couldn't attach collector: %s", err)
}
e.collectors = []Collector{&cn, &cg}
e.collectors = []Collector{&cn, &cr, &cg}
if e.config.ListeningAddress != "" {
e.listeningAddress = e.config.ListeningAddress