Skip to content

Commit ae7e74c

Browse files
authored
Merge pull request #189 from metalmatze/fix-restarts-expr
Add string interpolation for Pods restart expr
2 parents 22799fd + 1c98ec0 commit ae7e74c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dashboards/pods.libsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ local numbersinglestat = promgrafonnet.numbersinglestat;
8787
local restartAnnotation = annotation.datasource(
8888
'Restarts',
8989
'$datasource',
90-
expr='time() == BOOL timestamp(rate(kube_pod_container_status_restarts_total{%(kubeStateMetricsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}[2m]) > 0)',
90+
expr='time() == BOOL timestamp(rate(kube_pod_container_status_restarts_total{%(kubeStateMetricsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}[2m]) > 0)' % $._config,
9191
enable=true,
9292
hide=false,
9393
iconColor='rgba(215, 44, 44, 1)',

0 commit comments

Comments
 (0)