Skip to content

Commit

Permalink
mesos 1.5.0: attempt to solve panic
Browse files Browse the repository at this point in the history
  • Loading branch information
DeviaVir committed Aug 30, 2018
1 parent ab44a8f commit 3914ea6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions master.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,11 +416,11 @@ func newMasterCollector(httpClient *httpClient) prometheus.Collector {
log.WithField("metric", "master/tasks_killing").Warn(LogErrNotFoundInMap)
}

c.(*settableCounterVec).Set(killing, "killing")
c.(*settableCounterVec).Set(running, "running")
c.(*settableCounterVec).Set(staging, "staging")
c.(*settableCounterVec).Set(starting, "starting")
c.(*settableCounterVec).Set(unreachable, "unreachable")
c.(*prometheus.GaugeVec).WithLabelValues("killing").Set(killing)
c.(*prometheus.GaugeVec).WithLabelValues("running").Set(running)
c.(*prometheus.GaugeVec).WithLabelValues("staging").Set(staging)
c.(*prometheus.GaugeVec).WithLabelValues("starting").Set(starting)
c.(*prometheus.GaugeVec).WithLabelValues("unreachable").Set(unreachable)

return nil
},
Expand Down

0 comments on commit 3914ea6

Please # to comment.