-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #842 from go-graphite/njpm/mdp-aggregation-nudging…
…-upstream MaxDataPoints consolidation improvements: support nudging for consistent bucketing
- Loading branch information
Showing
6 changed files
with
333 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package config | ||
|
||
type ConfigType = struct { | ||
// NudgeStartTimeOnAggregation enables nudging the start time of metrics | ||
// when aggregated. The start time is nudged in such way that timestamps | ||
// always fall in the same bucket. This is done by GraphiteWeb, and is | ||
// useful to avoid jitter in graphs when refreshing the page. | ||
NudgeStartTimeOnAggregation bool | ||
|
||
// UseBucketsHighestTimestampOnAggregation enables using the highest timestamp of the | ||
// buckets when aggregating to honor MaxDataPoints, instead of the lowest timestamp. | ||
// This prevents results to appear to predict the future. | ||
UseBucketsHighestTimestampOnAggregation bool | ||
} | ||
|
||
var Config = ConfigType{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.