Skip to content

Commit c747b47

Browse files
author
Philip Laine
committed
Add cluster labels to kubelet rules
1 parent 9821d07 commit c747b47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rules/kubelet.libsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
{
1212
record: 'node_quantile:kubelet_pleg_relist_duration_seconds:histogram_quantile',
1313
expr: |||
14-
histogram_quantile(%(quantile)s, sum(rate(kubelet_pleg_relist_duration_seconds_bucket[5m])) by (instance, le) * on(instance) group_left(node) kubelet_node_name{%(kubeletSelector)s})
14+
histogram_quantile(%(quantile)s, sum(rate(kubelet_pleg_relist_duration_seconds_bucket[5m])) by (%(clusterLabel)s, instance, le) * on(%(clusterLabel)s, instance) group_left(node) kubelet_node_name{%(kubeletSelector)s})
1515
||| % ({ quantile: quantile } + $._config),
1616
labels: {
1717
quantile: quantile,

0 commit comments

Comments
 (0)