Uses mean instead of sum in Grafana queries to avoid plotting variations at different timescale #1961
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
cc @acobaugh |
I'm not sure I agree with the usage of max() instead of mean() here. If I want higher resolution, then I'm going to reduce my $interval. Using max() would actually give a skewed view of reality. Most of the grafana dashboards I see in the wild use mean(). I could maybe see an argument for separate set of metrics showing max over the selected interval, but that would make the graphs pretty crowded. |
/ok-to-test |
well I started it initially because it was set to sum, which had horrible results. I first used mean, but then it made more sense for most of my observations to use max. But, as long as it moves away from sum to either mean or max, I think is fine. I do think though that mean has an undesired softening effect, but I agree that max has also a bias. |
Maybe if some admin or project owner can let me know what they decide, I'm happy to change the branch to reflect it. |
My personal vote is for |
I have switched all max to mean in the dashboards. Hopefully this can now be merged. |
/approve |
/assign @andyxning |
Sorry to ask, but what's the reason not to merge this fix? The issue got closed by |
I don't know.... I guess we need to ask another owner to approve it... |
Sorry about that. Don't know why @acobaugh was insufficient here. /approve |
Thanks @DirectXMan12! The tide robot apparently requires an lgtm label from what I read below, are you able to set that up? |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: acobaugh, andyxning, DirectXMan12, pcm32 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Thanks a lot !! |
This PR changes Grafana queries for pods and nodes to address problem describe in #1893.