Skip to content

Commit

Permalink
Don't init http phase values
Browse files Browse the repository at this point in the history
Don't init http probe phase labels for phases we haven't observed.
Avoids exposing 0 value samples for things we haven't measured.

Fixes: #579

Signed-off-by: Ben Kochie <[email protected]>
  • Loading branch information
SuperQ committed Mar 9, 2021
1 parent b57ed98 commit b2c5013
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions prober/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,6 @@ func ProbeHTTP(ctx context.Context, target string, module config.Module, registr
})
)

for _, lv := range []string{"resolve", "connect", "tls", "processing", "transfer"} {
durationGaugeVec.WithLabelValues(lv)
}

registry.MustRegister(durationGaugeVec)
registry.MustRegister(contentLengthGauge)
registry.MustRegister(bodyUncompressedLengthGauge)
Expand Down

0 comments on commit b2c5013

Please sign in to comment.