Skip to content

Commit

Permalink
shout that Pve is down and ...
Browse files Browse the repository at this point in the history
  • Loading branch information
wakeful committed Jan 23, 2018
1 parent b12213f commit 645d62e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pve_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,10 @@ func (e Exporter) Collect(ch chan<- prometheus.Metric) {

if err := e.pve.Auth(); err != nil {
e.up.Set(0)
ch <- e.up

log.Errorln(err)
return
}

e.up.Set(1)
Expand Down

0 comments on commit 645d62e

Please sign in to comment.