Skip to content

Commit

Permalink
Explicitly export zero failures on prober startup (#891)
Browse files Browse the repository at this point in the history
Signed-off-by: Evan Anderson <evan@stacklok.com>
  • Loading branch information
evankanderson authored Dec 5, 2023
1 parent a8a1d4e commit 9e5583e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/prober/prober.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,11 @@ func main() {
reg.MustRegister(endpointLatenciesSummary, endpointLatenciesHistogram, verificationCounter)
reg.MustRegister(NewVersionCollector("sigstore_prober"))

// Ensure that we report zeroed failures on verifications. This allows us to
// detect on alert on the "never seen" --> "seen once" transition.
verificationCounter.With(prometheus.Labels{verifiedLabel: "false"}).Add(0)
verificationCounter.With(prometheus.Labels{verifiedLabel: "true"}).Add(0)

go runProbers(ctx, frequency, oneTime)

// Expose the registered metrics via HTTP.
Expand Down

0 comments on commit 9e5583e

Please sign in to comment.