Commit b43feb9
committed
receiver/httpcheck: stop double-emitting TLS cert-remaining data point
RecordHttpcheckTLSCertRemainingDataPoint was called twice per scrape
for every HTTPS endpoint: once inside the mux.Lock block before the
timing metrics, and again a few lines lower after the timing metrics.
The two blocks were byte-for-byte equivalent, so the receiver emitted
duplicate httpcheck.tls.cert_remaining data points on every cycle.
Remove the redundant pre-timing block. The post-timing block keeps
the endpoint/issuer/commonName/sans labels unchanged.
Fixes #47740.
Signed-off-by: SAY-5 <SAY-5@users.noreply.github.com>
Assisted-by: Claude Opus 4.71 parent c990203 commit b43feb9
2 files changed
Lines changed: 28 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
367 | 356 | | |
368 | 357 | | |
369 | 358 | | |
| |||
0 commit comments