commit | fdf85c21e780eafceb61910fca1add324b34d662 | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Mon Mar 06 08:20:52 2023 -0500 |
committer | Jonathan Amsterdam <jba@google.com> | Mon Mar 06 20:16:14 2023 +0000 |
tree | 0d3e8a4b0bf46d5795d6d13d279d36fc2295d975 | |
parent | 9e21c8ff930f270fbf844517bf21a6229141569d [diff] |
terraform: add alert for build failures Add a log-based metric that looks for failures in Cloud Build logs, and an alert that fires if that metric is positive. This is not the official way to be notified about Cloud Build events. You're supposed to listen to the pubsub channel it writes to, but that involves setting up a server or Cloud Function that then sends email. Instead, the metric looks for the line "ERROR" in the logs. I observed that this line occurs when a build fails. But it might not be totally reliable; we should keep an eye on it. Change-Id: I5630fa7d6f6444fc835f1dfe4b94d72a905af6df Reviewed-on: https://go-review.googlesource.com/c/pkgsite-metrics/+/473168 Reviewed-by: Zvonimir Pavlinovic <zpavlinovic@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
This repository contains code that serves pkg.go.dev/metrics.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the time repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/pkgsite-metrics:” in the subject line, so it is easy to find.