single quote cpucount

This commit is contained in:
m0duspwnens
2021-07-08 17:00:17 -04:00
parent f4fae89b8e
commit b265c7dcb7
9 changed files with 28 additions and 28 deletions

View File

@@ -57,13 +57,13 @@
{
"type": "math",
"params": [
" /$cpucount"
" /'$cpucount'"
]
}
]
],
"measurement": "docker_container_cpu",
"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)",
"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": [
" /$cpucount"
" /'$cpucount'"
]
}
]
@@ -172,7 +172,7 @@
{
"type": "math",
"params": [
" /$cpucount"
" /'$cpucount'"
]
}
]
@@ -228,7 +228,7 @@
{
"type": "math",
"params": [
" /$cpucount"
" /'$cpucount'"
]
}
]
@@ -284,7 +284,7 @@
{
"type": "math",
"params": [
"/$cpucount"
"/'$cpucount'"
]
}
]
@@ -340,7 +340,7 @@
{
"type": "math",
"params": [
"/$cpucount"
"/'$cpucount'"
]
}
]
@@ -396,7 +396,7 @@
{
"type": "math",
"params": [
"/$cpucount"
"/'$cpucount'"
]
}
]
@@ -452,7 +452,7 @@
{
"type": "math",
"params": [
"/$cpucount"
"/'$cpucount'"
]
}
]
@@ -508,7 +508,7 @@
{
"type": "math",
"params": [
"/$cpucount"
"/'$cpucount'"
]
}
]

View File

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

View File

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

View File

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

View File

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

View File

@@ -72,7 +72,7 @@
"measurement": "docker_container_cpu",
"orderByTime": "ASC",
"policy": "default",
"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)",
"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": [
"/$cpucount"
"/'$cpucount'"
],
"type": "math"
}
@@ -130,7 +130,7 @@
"measurement": "docker_container_cpu",
"orderByTime": "ASC",
"policy": "so_long_term",
"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)",
"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": [
"/$cpucount"
"/'$cpucount'"
],
"type": "math"
}

View File

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

View File

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

View File

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