Skip to content

Commit 46578c1

Browse files
fix: rename windows_system_system_up_time metric (#1049)
1 parent 2557117 commit 46578c1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: dashboards/windows.libsonnet

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ local var = g.dashboard.variable;
6868
+ var.query.withDatasourceFromVariable(self.datasource)
6969
+ var.query.queryTypes.withLabelValues(
7070
'instance',
71-
'windows_system_system_up_time{%(clusterLabel)s="$cluster"}' % $._config
71+
'windows_system_boot_time_timestamp_seconds{%(clusterLabel)s="$cluster"}' % $._config
7272
)
7373
+ var.query.generalOptions.withLabel('instance')
7474
+ var.query.refresh.onTime()

Diff for: rules/windows.libsonnet

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
record: 'node:windows_node:sum',
1010
expr: |||
1111
count by (%(clusterLabel)s) (
12-
windows_system_system_up_time{%(windowsExporterSelector)s}
12+
windows_system_boot_time_timestamp_seconds{%(windowsExporterSelector)s}
1313
)
1414
||| % $._config,
1515
},

0 commit comments

Comments
 (0)