Address the sensitive error rate check #476
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Looking at preflight with these values during a 10 minute period when the alert was going off.
A baseline period of 7 days, a sample period of 10 minutes.
Over 7 days, the baseline error rate for next-preflight was 0.00001.
Over the last 10 minutes, the sample error rate was 0.00000571.
For
graphiteSpike
we take these values and compute the following...https://github.com/Financial-Times/n-health/blob/master/src/checks/graphiteSpike.check.js#L85
With a
threshold
of 0.04, we find thatsample / baseline
is 0.571 and so we're not OK.Using the default
threshold
of 3 in this case I believe will catch major spikes in errors introduced by a release without being too sensitive.I think the confusion was in thinking that
threshold
is a percentage value.A dashboard for next-preflight I used to work out what Graphite was returning, http://grafana.ft.com/dashboard/db/next-n-express-error-rate.