Merge branch 'master' into beorn7/storage2

This commit is contained in:
beorn7 2016-02-24 14:03:49 +01:00
commit 4b503ed9a5
3 changed files with 17 additions and 4 deletions

View file

@ -1,9 +1,15 @@
## 0.17.0 / 2016-01-27 ## 0.17.0 / unreleased
This version no longer works with Alertmanager 0.4.0 and earlier! This version no longer works with Alertmanager 0.0.4 and earlier!
The alerting rule syntax has changed as well but the old syntax is supported The alerting rule syntax has changed as well but the old syntax is supported
up until version 0.18. up until version 0.18.
All regular expressions in PromQL are anchored now, matching the behavior of
regular expressions in config files. Expressions in rules, alerts or dashboards
need to be changed if they don't match the full value so far (for example
`http_requests_total{status=~"^5"}` won't match anything anymore and needs to
be changed to `http_requests_total{status=~"5.."}`).
* [CHANGE] Integrate with Alertmanager 0.1.0 and higher * [CHANGE] Integrate with Alertmanager 0.1.0 and higher
* [CHANGE] Degraded storage mode renamed to rushed mode * [CHANGE] Degraded storage mode renamed to rushed mode
* [CHANGE] New alerting rule syntax * [CHANGE] New alerting rule syntax

View file

@ -955,6 +955,13 @@ loop:
} else { } else {
dirtySeriesCount = 0 dirtySeriesCount = 0
} }
// If a checkpoint takes longer than checkpointInterval, unluckily timed
// combination with the Reset(0) call below can lead to a case where a
// time is lurking in C leading to repeated checkpointing without break.
select {
case <-checkpointTimer.C: // Get rid of the lurking time.
default:
}
checkpointTimer.Reset(s.checkpointInterval) checkpointTimer.Reset(s.checkpointInterval)
case fp := <-memoryFingerprints: case fp := <-memoryFingerprints:
if s.maintainMemorySeries(fp, model.Now().Add(-s.dropAfter)) { if s.maintainMemorySeries(fp, model.Now().Add(-s.dropAfter)) {

View file

@ -59,7 +59,7 @@ type (
} }
// T implements the needed methods of testing.TB so that we do not need // T implements the needed methods of testing.TB so that we do not need
// to actually import testing (which has the side affect of adding all // to actually import testing (which has the side effect of adding all
// the test flags, which we do not want in non-test binaries even if // the test flags, which we do not want in non-test binaries even if
// they make use of these utilities for some reason). // they make use of these utilities for some reason).
T interface { T interface {