Skip to content

Commit

Permalink
fix tls metrics (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
suchen-sci authored May 8, 2024
1 parent 70773a1 commit 204773e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion probe/tls/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func (t *TLS) DoProbe() (bool, string) {
t.metrics.EarliestCertExpiry.With(metric.AddConstLabels(prometheus.Labels{
"endpoint": t.ProbeResult.Endpoint,
}, t.Labels)).Set(float64(getEarliestCertExpiry(&state).Unix()))
t.metrics.EarliestCertExpiry.With(metric.AddConstLabels(prometheus.Labels{
t.metrics.LastChainExpiryTimestampSeconds.With(metric.AddConstLabels(prometheus.Labels{
"endpoint": t.ProbeResult.Endpoint,
}, t.Labels)).Set(float64(getLastChainExpiry(&state).Unix()))

Expand Down

0 comments on commit 204773e

Please sign in to comment.