Commit 6eb5e045 by michelia feng Committed by Craig Jellick

update expression to suit for both windows and linux

parent d1052612
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"expr": "sum by(container_name) (container_memory_working_set_bytes{namespace=\"$namespace\",image!=\"\",container_name=~\"$container\",container_name!=\"POD\",pod_name=\"$pod\"})", "expr": "sum by(container_name) (container_memory_working_set_bytes{namespace=\"$namespace\",container_name!=\"\",container_name=~\"$container\",container_name!=\"POD\",pod_name=\"$pod\"})",
"interval": "10s", "interval": "10s",
"intervalFactor": 1, "intervalFactor": 1,
"legendFormat": "Current: {{ container_name }}", "legendFormat": "Current: {{ container_name }}",
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"expr": "sum by (container_name)(rate(container_cpu_usage_seconds_total{namespace=\"$namespace\",image!=\"\",container_name=~\"$container\",container_name!=\"POD\",pod_name=\"$pod\"}[5m]))", "expr": "sum by (container_name)(rate(container_cpu_usage_seconds_total{namespace=\"$namespace\",container_name!=\"\",container_name=~\"$container\",container_name!=\"POD\",pod_name=\"$pod\"}[5m]))",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "Current: {{ container_name }}", "legendFormat": "Current: {{ container_name }}",
"refId": "A", "refId": "A",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment