Skip to content

Conversation

@timursaikaliev
Copy link
Contributor

@timursaikaliev timursaikaliev commented Jan 24, 2025

disabling Multi-value selection option for the instance variable and other small fixes. (#980)

(import 'node.libsonnet') +
(import 'kubelet.libsonnet')
(import 'kubelet.libsonnet') +
(import 'windows.libsonnet')
Copy link
Collaborator

Choose a reason for hiding this comment

The 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.

Copy link
Collaborator

Choose a reason for hiding this comment

The 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

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for these additional changes 👍

+ var.query.refresh.onTime()
+ var.query.generalOptions.showOnDashboard.withLabelAndValue()
+ var.query.selectionOptions.withMulti(true),
+ var.query.generalOptions.showOnDashboard.withLabelAndValue(),
Copy link
Collaborator

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!

@skl skl merged commit b9f0943 into kubernetes-monitoring:master Feb 3, 2025
9 checks passed
rexagod pushed a commit to rexagod/kubernetes-mixin that referenced this pull request Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants