New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add pod and network utilization to overview dashboard #3574
Add pod and network utilization to overview dashboard #3574
Conversation
rawagner
commented
Nov 26, 2019
/assign @kyoto please take a look |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Validated promQL queries and those are ok.
Some minor comments in regards to variable naming :)
@@ -53,6 +60,9 @@ const overviewQueries = { | |||
[OverviewQuery.STORAGE_UTILIZATION]: | |||
'(sum(node_filesystem_size_bytes) - sum(node_filesystem_free_bytes))', | |||
[OverviewQuery.STORAGE_TOTAL]: 'sum(node_filesystem_size_bytes)', | |||
[OverviewQuery.POD_UTILIZATION]: 'count(kube_pod_info)', | |||
[OverviewQuery.NETWORK_UTILIZATION]: | |||
'sum(rate(container_network_receive_bytes_total{container="POD",pod!=""}[5m]) + rate(container_network_transmit_bytes_total{container="POD",pod!=""}[5m]))', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: This is the first time I see network utilization measured as a sum of TX and RX. Usually, utilization is calculated as a percent of some maximum value, in case of network formula is utilization % = (data bits x 100) / (bandwidth x interval)
.
@@ -53,6 +60,9 @@ const overviewQueries = { | |||
[OverviewQuery.STORAGE_UTILIZATION]: | |||
'(sum(node_filesystem_size_bytes) - sum(node_filesystem_free_bytes))', | |||
[OverviewQuery.STORAGE_TOTAL]: 'sum(node_filesystem_size_bytes)', | |||
[OverviewQuery.POD_UTILIZATION]: 'count(kube_pod_info)', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: this is giving a number of pods in cluster, not exactly utilization
.
/lgtm @paulfantom's feedback can be addressed with a follow-up |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kyoto, paulfantom, rawagner 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 |
/retest Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest |
5 similar comments
/retest |
/retest |
/retest |
/retest |
/retest |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest |
/retest Please review the full test history for this PR and help us cut down flakes. |
3 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
4 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |