-
Notifications
You must be signed in to change notification settings - Fork 630
fix(dashboards): fix USE Method / Node(Windows) dashboard
#1013
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -72,8 +72,7 @@ local var = g.dashboard.variable; | |
| ) | ||
| + var.query.generalOptions.withLabel('instance') | ||
| + var.query.refresh.onTime() | ||
| + var.query.generalOptions.showOnDashboard.withLabelAndValue() | ||
| + var.query.selectionOptions.withMulti(true), | ||
| + var.query.generalOptions.showOnDashboard.withLabelAndValue(), | ||
|
|
||
| namespace: | ||
| var.query.new('namespace') | ||
|
|
@@ -124,7 +123,7 @@ local var = g.dashboard.variable; | |
| statPanel( | ||
| 'CPU Utilisation', | ||
| 'none', | ||
| '1 - avg(rate(windows_cpu_time_total{%(clusterLabel)s="$cluster", %(windowsExporterSelector)s, mode="idle"}[1m]))' % $._config | ||
| '1 - avg(rate(windows_cpu_time_total{%(clusterLabel)s="$cluster", %(windowsExporterSelector)s, mode="idle"}[%(grafanaIntervalVar)s]))' % $._config | ||
| ) | ||
| + stat.gridPos.withW(4) | ||
| + stat.gridPos.withH(3), | ||
|
|
@@ -830,13 +829,13 @@ local var = g.dashboard.variable; | |
| + tsPanel.queryOptions.withTargets([ | ||
| prometheus.new( | ||
| '${datasource}', | ||
| 'sort_desc(sum by (container) (rate(windows_container_network_received_bytes_total{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}[1m])))' % $._config | ||
| 'sort_desc(sum by (container) (rate(windows_container_network_received_bytes_total{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}[%(grafanaIntervalVar)s])))' % $._config | ||
| ) | ||
| + prometheus.withLegendFormat('Received : {{ container }}'), | ||
|
|
||
| prometheus.new( | ||
| '${datasource}', | ||
| 'sort_desc(sum by (container) (rate(windows_container_network_transmitted_bytes_total{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}[1m])))' % $._config | ||
| 'sort_desc(sum by (container) (rate(windows_container_network_transmitted_bytes_total{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}[%(grafanaIntervalVar)s])))' % $._config | ||
| ) | ||
| + prometheus.withLegendFormat('Transmitted : {{ container }}'), | ||
| ]), | ||
|
|
@@ -1025,19 +1024,19 @@ local var = g.dashboard.variable; | |
| + tsPanel.queryOptions.withTargets([ | ||
| prometheus.new( | ||
| '${datasource}', | ||
| 'max(rate(windows_logical_disk_read_bytes_total{%(clusterLabel)s="$cluster", %(windowsExporterSelector)s, instance="$instance"}[2m]))' % $._config | ||
| 'max(rate(windows_logical_disk_read_bytes_total{%(clusterLabel)s="$cluster", %(windowsExporterSelector)s, instance="$instance"}[%(grafanaIntervalVar)s]))' % $._config | ||
| ) | ||
| + prometheus.withLegendFormat('read'), | ||
|
|
||
| prometheus.new( | ||
| '${datasource}', | ||
| 'max(rate(windows_logical_disk_write_bytes_total{%(clusterLabel)s="$cluster", %(windowsExporterSelector)s, instance="$instance"}[2m]))' % $._config | ||
| 'max(rate(windows_logical_disk_write_bytes_total{%(clusterLabel)s="$cluster", %(windowsExporterSelector)s, instance="$instance"}[%(grafanaIntervalVar)s]))' % $._config | ||
| ) | ||
| + prometheus.withLegendFormat('written'), | ||
|
|
||
| prometheus.new( | ||
| '${datasource}', | ||
| 'max(rate(windows_logical_disk_read_seconds_total{%(clusterLabel)s="$cluster", %(windowsExporterSelector)s, instance="$instance"}[2m]) + rate(windows_logical_disk_write_seconds_total{%(clusterLabel)s="$cluster", %(windowsExporterSelector)s, instance="$instance"}[2m]))' % $._config | ||
| 'max(rate(windows_logical_disk_read_seconds_total{%(clusterLabel)s="$cluster", %(windowsExporterSelector)s, instance="$instance"}[%(grafanaIntervalVar)s]) + rate(windows_logical_disk_write_seconds_total{%(clusterLabel)s="$cluster", %(windowsExporterSelector)s, instance="$instance"}[%(grafanaIntervalVar)s]))' % $._config | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for these additional changes 👍 |
||
| ) | ||
| + prometheus.withLegendFormat('io time'), | ||
| ]) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,4 +2,5 @@ | |
| (import 'apps.libsonnet') + | ||
| (import 'kube_scheduler.libsonnet') + | ||
| (import 'node.libsonnet') + | ||
| (import 'kubelet.libsonnet') | ||
| (import 'kubelet.libsonnet') + | ||
| (import 'windows.libsonnet') | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @povilasv this would add windows rules and dashboards into the default build - are you ok with that? Personally, I see no harm in including them but wanted to check with you. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. will merge Monday @povilasv unless I hear otherwise 😄 can always revert this part in future |
||
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.
This would seem to resolve the linked issue - thank you!