aboutsummaryrefslogtreecommitdiff
path: root/cmd/worker
diff options
context:
space:
mode:
authorJonathan Amsterdam <jba@google.com>2020-09-24 16:43:51 -0400
committerJonathan Amsterdam <jba@google.com>2020-09-29 14:00:58 +0000
commitdacb574f998b0ff32f2c9cb513be39bbeb1faff7 (patch)
tree008e021b6151277c803ea2fc824c63ff48bfef38 /cmd/worker
parent1533ff9da557f25b79b4d7e8aef195bad97494b3 (diff)
downloadgo-x-pkgsite-dacb574f998b0ff32f2c9cb513be39bbeb1faff7.tar.xz
internal/fetch: add a metric for number of packages successfully fetched
This should be a smoother metric than the number of fetched modules, since processing time per package should have a much smaller range than time per module. Change-Id: I00f5ba83fcc4fe3c606883bd644e570b502c9090 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/257243 Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Julie Qiu <julie@golang.org>
Diffstat (limited to 'cmd/worker')
-rw-r--r--cmd/worker/main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/worker/main.go b/cmd/worker/main.go
index 992f42a6..41ecfbaa 100644
--- a/cmd/worker/main.go
+++ b/cmd/worker/main.go
@@ -129,7 +129,8 @@ func main() {
worker.EnqueueResponseCount,
fetch.FetchLatencyDistribution,
fetch.FetchResponseCount,
- fetch.SheddedFetchCount)
+ fetch.SheddedFetchCount,
+ fetch.FetchPackageCount)
if err := dcensus.Init(cfg, views...); err != nil {
log.Fatal(ctx, err)
}