@@ -29,11 +29,11 @@ local numbersinglestat = promgrafonnet.numbersinglestat;
2929 legendFormat='Current: {{ container_name }}' ,
3030 ))
3131 .addTarget(prometheus.target(
32- 'sum by(container) (kube_pod_container_resource_requests_memory_bytes {%(kubeStateMetricsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod", container=~"$container"})' % $._config,
32+ 'sum by(container) (kube_pod_container_resource_requests {%(kubeStateMetricsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", resource="memory ", pod="$pod", container=~"$container"})' % $._config,
3333 legendFormat='Requested: {{ container }}' ,
3434 ))
3535 .addTarget(prometheus.target(
36- 'sum by(container) (kube_pod_container_resource_limits_memory_bytes {%(kubeStateMetricsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod", container=~"$container"})' % $._config,
36+ 'sum by(container) (kube_pod_container_resource_limits {%(kubeStateMetricsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", resource="memory ", pod="$pod", container=~"$container"})' % $._config,
3737 legendFormat='Limit: {{ container }}' ,
3838 ))
3939 );
@@ -55,11 +55,11 @@ local numbersinglestat = promgrafonnet.numbersinglestat;
5555 legendFormat='Current: {{ container_name }}' ,
5656 ))
5757 .addTarget(prometheus.target(
58- 'sum by(container) (kube_pod_container_resource_requests_cpu_cores {%(kubeStateMetricsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod", container=~"$container"})' % $._config,
58+ 'sum by(container) (kube_pod_container_resource_requests {%(kubeStateMetricsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", resource="cpu ", pod="$pod", container=~"$container"})' % $._config,
5959 legendFormat='Requested: {{ container }}' ,
6060 ))
6161 .addTarget(prometheus.target(
62- 'sum by(container) (kube_pod_container_resource_limits_cpu_cores {%(kubeStateMetricsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod", container=~"$container"})' % $._config,
62+ 'sum by(container) (kube_pod_container_resource_limits {%(kubeStateMetricsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", resource="cpu ", pod="$pod", container=~"$container"})' % $._config,
6363 legendFormat='Limit: {{ container }}' ,
6464 ))
6565 );
0 commit comments