Skip to content

Commit

Permalink
Merge pull request #162 from vshn/fix/sli_log_timeouts
Browse files Browse the repository at this point in the history
Also log if the probe has a timeout
  • Loading branch information
Kidswiss authored May 7, 2024
2 parents 83e036a + a6ca6a9 commit 39f696e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/sliexporter/probes/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ func (m Manager) sendProbe(ctx context.Context, p Prober) {
prometheus.Labels{"reason": "success"},
).Observe(latency.Seconds())
case errors.Is(err, ErrTimeout) || errors.Is(ctx.Err(), context.DeadlineExceeded):
l.V(0).Error(err, "Probe Timeout")
o.With(
prometheus.Labels{"reason": "fail-timeout"},
).Observe(latency.Seconds())
Expand Down

0 comments on commit 39f696e

Please sign in to comment.