fork of https://github.com/sourcegraph/zoekt
0

Configure Feed

Select the types of activity you want to include in your feed.

Expand upper range on indexing delay metric (#847)

When adding this metric, I got the calculation wrong. So the maximum bucket was capped at ~1.3 days, which we easily saturate at the 90% percentile.

This PR updates it to ~ 5.5 days to be safe:
```
>>> math.pow(2, 14 - 1) / 60 / 24
5.688888888888889
```

Note the `- 1`, which is the key piece I missed before.

+1 -1
+1 -1
cmd/zoekt-sourcegraph-indexserver/main.go
··· 92 92 metricIndexingDelay = promauto.NewHistogramVec(prometheus.HistogramOpts{ 93 93 Name: "index_indexing_delay_seconds", 94 94 Help: "A histogram of durations from when an index job is added to the queue, to the time it completes.", 95 - Buckets: prometheus.ExponentialBuckets(60, 2, 12), // 1m -> ~3 days 95 + Buckets: prometheus.ExponentialBuckets(60, 2, 14), // 1 minute -> 5.5 days 96 96 }, []string{ 97 97 "state", // state is an indexState 98 98 "name", // the name of the repository that was indexed