Add runit exporter
This commit is contained in:
parent
ade7272a29
commit
ada754e7f6
2 changed files with 69 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue