Skip to content

Commit

Permalink
CR: removed readiness handling from periodical prometheus health checks
Browse files Browse the repository at this point in the history
  • Loading branch information
FUSAKLA committed Aug 20, 2019
1 parent 153cd3f commit 35633e7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cmd/thanos/sidecar.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,8 @@ func runSidecar(
if err := m.UpdateLabels(iterCtx, logger); err != nil {
level.Warn(logger).Log("msg", "heartbeat failed", "err", err)
promUp.Set(0)
statusProber.SetNotReady(err)
} else {
promUp.Set(1)
statusProber.SetReady()
lastHeartbeat.Set(float64(time.Now().UnixNano()) / 1e9)
}

Expand Down

0 comments on commit 35633e7

Please sign in to comment.