change CPUS to $cpucount

This commit is contained in:
m0duspwnens
2021-07-08 16:39:14 -04:00
parent 7085796601
commit 7c80483f6e
9 changed files with 28 additions and 28 deletions

View File

@@ -57,13 +57,13 @@
{
"type": "math",
"params": [
" /8"
" /$cpucount"
]
}
]
],
"measurement": "docker_container_cpu",
"query": "SELECT mean(\"usage_percent\") /8 FROM \"docker_container_cpu\" WHERE (\"host\" = '$servername' AND \"container_name\" = 'so-elasticsearch') AND $timeFilter GROUP BY time($__interval) fill(null)",
"query": "SELECT mean(\"usage_percent\") /$cpucount FROM \"docker_container_cpu\" WHERE (\"host\" = '$servername' AND \"container_name\" = 'so-elasticsearch') AND $timeFilter GROUP BY time($__interval) fill(null)",
"rawQuery": false,
"hide": false,
"alias": "elasticsearch"
@@ -116,7 +116,7 @@
{
"type": "math",
"params": [
" /8"
" /$cpucount"
]
}
]
@@ -172,7 +172,7 @@
{
"type": "math",
"params": [
" /8"
" /$cpucount"
]
}
]
@@ -228,7 +228,7 @@
{
"type": "math",
"params": [
" /8"
" /$cpucount"
]
}
]
@@ -284,7 +284,7 @@
{
"type": "math",
"params": [
"/8"
"/$cpucount"
]
}
]
@@ -340,7 +340,7 @@
{
"type": "math",
"params": [
"/8"
"/$cpucount"
]
}
]
@@ -396,7 +396,7 @@
{
"type": "math",
"params": [
"/8"
"/$cpucount"
]
}
]
@@ -452,7 +452,7 @@
{
"type": "math",
"params": [
"/8"
"/$cpucount"
]
}
]
@@ -508,7 +508,7 @@
{
"type": "math",
"params": [
"/8"
"/$cpucount"
]
}
]

View File

@@ -91,7 +91,7 @@
},
{
"params": [
" /{{ CPUS }}"
" /$cpucount"
],
"type": "math"
}
@@ -148,7 +148,7 @@
},
{
"params": [
" /{{ CPUS }}"
" /$cpucount"
],
"type": "math"
}

View File

@@ -88,7 +88,7 @@
},
{
"params": [
" /{{ CPUS }}"
" /$cpucount"
],
"type": "math"
}
@@ -144,7 +144,7 @@
},
{
"params": [
" /{{ CPUS }}"
" /$cpucount"
],
"type": "math"
}

View File

@@ -88,7 +88,7 @@
},
{
"params": [
" /{{ CPUS }}"
" /$cpucount"
],
"type": "math"
}
@@ -144,7 +144,7 @@
},
{
"params": [
" /{{ CPUS }}"
" /$cpucount"
],
"type": "math"
}

View File

@@ -88,7 +88,7 @@
},
{
"params": [
" /{{ CPUS }}"
" /$cpucount"
],
"type": "math"
}
@@ -144,7 +144,7 @@
},
{
"params": [
" /{{ CPUS }}"
" /$cpucount"
],
"type": "math"
}

View File

@@ -72,7 +72,7 @@
"measurement": "docker_container_cpu",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(\"usage_percent\") /{{ CPUS }} FROM \"docker_container_cpu\" WHERE (\"host\" = '$servername' AND \"container_name\" = 'so-redis') AND $timeFilter GROUP BY time($__interval) fill(null)",
"query": "SELECT mean(\"usage_percent\") /$cpucount FROM \"docker_container_cpu\" WHERE (\"host\" = '$servername' AND \"container_name\" = 'so-redis') AND $timeFilter GROUP BY time($__interval) fill(null)",
"rawQuery": false,
"refId": "A",
"resultFormat": "time_series",
@@ -90,7 +90,7 @@
},
{
"params": [
"/{{ CPUS }}"
"/$cpucount"
],
"type": "math"
}
@@ -130,7 +130,7 @@
"measurement": "docker_container_cpu",
"orderByTime": "ASC",
"policy": "so_long_term",
"query": "SELECT mean(\"usage_percent\") /{{ CPUS }} FROM \"docker_container_cpu\" WHERE (\"host\" = '$servername' AND \"container_name\" = 'so-redis') AND $timeFilter GROUP BY time($__interval) fill(null)",
"query": "SELECT mean(\"usage_percent\") /$cpucount FROM \"docker_container_cpu\" WHERE (\"host\" = '$servername' AND \"container_name\" = 'so-redis') AND $timeFilter GROUP BY time($__interval) fill(null)",
"rawQuery": false,
"refId": "B",
"resultFormat": "time_series",
@@ -148,7 +148,7 @@
},
{
"params": [
"/{{ CPUS }}"
"/$cpucount"
],
"type": "math"
}

View File

@@ -82,7 +82,7 @@
},
{
"params": [
" /{{ CPUS }}"
" /$cpucount"
],
"type": "math"
}
@@ -139,7 +139,7 @@
},
{
"params": [
" /{{ CPUS }}"
" /$cpucount"
],
"type": "math"
}

View File

@@ -91,7 +91,7 @@
},
{
"params": [
" /{{ CPUS }}"
" /$cpucount"
],
"type": "math"
}
@@ -148,7 +148,7 @@
},
{
"params": [
" /{{ CPUS }}"
" /$cpucount"
],
"type": "math"
}

View File

@@ -91,7 +91,7 @@
},
{
"params": [
" /{{ CPUS }}"
" /$cpucount"
],
"type": "math"
}
@@ -148,7 +148,7 @@
},
{
"params": [
" /{{ CPUS }}"
" /$cpucount"
],
"type": "math"
}