Skip to content

Commit fd7dd79

Browse files
committed
Fixes
1 parent a6ed081 commit fd7dd79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dashboards/pods.libsonnet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ local numbersinglestat = promgrafonnet.numbersinglestat;
7979
legend_avg=true,
8080
)
8181
.addTarget(prometheus.target(
82-
'sort_desc(sum by (pod_name) (rate(container_network_receive_bytes_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", %(clusterLabel)s="$cluster", namespace="$namespace", pod_name="$pod"}[1m])))' % $._config,
82+
'sort_desc(sum by (pod_name) (rate(container_network_receive_bytes_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod_name="$pod"}[1m])))' % $._config,
8383
legendFormat='{{ pod_name }}',
8484
))
8585
);
8686

8787
local restartAnnotation = annotation.datasource(
8888
'Restarts',
8989
'$datasource',
90-
expr='time() == BOOL timestamp(deriv(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)',
9191
enable=true,
9292
hide=false,
9393
iconColor='rgba(215, 44, 44, 1)',

0 commit comments

Comments
 (0)