-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prometheus: revert the condition for enabling aggregation
in d7e16bb, we added the query time configuration for disabling aggregation, but the condition for disabling aggregation was wrong. before that change, we always enable the aggregation, but after that change, the aggregation is disabled when the value of query parameter of "__aggregate__" is not "false". in other words, - if this query parameter is not set, the aggregation is disabled. this changes the existing behavior. - if this query parameter's value is "false", the aggregation is enabeld. this is not the expected behavior. so, in this change - change the parameter from `disable_aggregation` to `enable_aggregation`. as the positive condition is always easier to understand. - and update the handling accodingly. Fixes d7e16bb Signed-off-by: Kefu Chai <[email protected]>
- Loading branch information
Showing
1 changed file
with
13 additions
and
13 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