Metriken-Push nach InfluxDB und Dashboard wordpress_ct101; Hausmeister meldet RAM erst nach anhaltender Hochlast.
143 lines
4.2 KiB
JSON
143 lines
4.2 KiB
JSON
{
|
|
"uid": "wordpress_ct101",
|
|
"title": "WordPress CT101",
|
|
"tags": ["wordpress", "arakava", "ct101"],
|
|
"timezone": "browser",
|
|
"schemaVersion": 39,
|
|
"version": 1,
|
|
"refresh": "1m",
|
|
"panels": [
|
|
{
|
|
"id": 1,
|
|
"type": "stat",
|
|
"title": "Apache Worker",
|
|
"description": "Limit: MaxRequestWorkers 14",
|
|
"gridPos": {"h": 5, "w": 8, "x": 0, "y": 0},
|
|
"datasource": {"type": "influxdb", "uid": "ffptl25vzylfke"},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "none",
|
|
"decimals": 0,
|
|
"color": {"mode": "thresholds"},
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{"color": "green", "value": null},
|
|
{"color": "yellow", "value": 12},
|
|
{"color": "red", "value": 14}
|
|
]
|
|
}
|
|
},
|
|
"overrides": []
|
|
},
|
|
"options": {
|
|
"reduceOptions": {"calcs": ["lastNotNull"], "fields": "", "values": false},
|
|
"colorMode": "background",
|
|
"graphMode": "area",
|
|
"justifyMode": "auto",
|
|
"orientation": "auto",
|
|
"textMode": "value"
|
|
},
|
|
"targets": [{
|
|
"refId": "A",
|
|
"query": "SELECT last(\"apache_workers\") FROM \"wordpress\" WHERE \"node\"='ct101' AND $timeFilter",
|
|
"rawQuery": true,
|
|
"resultFormat": "time_series"
|
|
}]
|
|
},
|
|
{
|
|
"id": 2,
|
|
"type": "stat",
|
|
"title": "Docker RAM %",
|
|
"gridPos": {"h": 5, "w": 8, "x": 8, "y": 0},
|
|
"datasource": {"type": "influxdb", "uid": "ffptl25vzylfke"},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "percent",
|
|
"decimals": 1,
|
|
"max": 100,
|
|
"color": {"mode": "thresholds"},
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{"color": "green", "value": null},
|
|
{"color": "yellow", "value": 70},
|
|
{"color": "red", "value": 90}
|
|
]
|
|
}
|
|
},
|
|
"overrides": []
|
|
},
|
|
"options": {
|
|
"reduceOptions": {"calcs": ["lastNotNull"], "fields": "", "values": false},
|
|
"colorMode": "background",
|
|
"graphMode": "area",
|
|
"textMode": "value"
|
|
},
|
|
"targets": [{
|
|
"refId": "A",
|
|
"query": "SELECT last(\"docker_mem_pct\") FROM \"wordpress\" WHERE \"node\"='ct101' AND $timeFilter",
|
|
"rawQuery": true,
|
|
"resultFormat": "time_series"
|
|
}]
|
|
},
|
|
{
|
|
"id": 3,
|
|
"type": "stat",
|
|
"title": "CT RAM %",
|
|
"gridPos": {"h": 5, "w": 8, "x": 16, "y": 0},
|
|
"datasource": {"type": "influxdb", "uid": "ffptl25vzylfke"},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "percent",
|
|
"decimals": 0,
|
|
"max": 100,
|
|
"color": {"mode": "thresholds"},
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{"color": "green", "value": null},
|
|
{"color": "yellow", "value": 80},
|
|
{"color": "red", "value": 95}
|
|
]
|
|
}
|
|
},
|
|
"overrides": []
|
|
},
|
|
"options": {
|
|
"reduceOptions": {"calcs": ["lastNotNull"], "fields": "", "values": false},
|
|
"colorMode": "background",
|
|
"graphMode": "area",
|
|
"textMode": "value"
|
|
},
|
|
"targets": [{
|
|
"refId": "A",
|
|
"query": "SELECT last(\"ct_mem_pct\") FROM \"wordpress\" WHERE \"node\"='ct101' AND $timeFilter",
|
|
"rawQuery": true,
|
|
"resultFormat": "time_series"
|
|
}]
|
|
},
|
|
{
|
|
"id": 4,
|
|
"type": "timeseries",
|
|
"title": "Apache Worker Verlauf",
|
|
"gridPos": {"h": 8, "w": 24, "x": 0, "y": 5},
|
|
"datasource": {"type": "influxdb", "uid": "ffptl25vzylfke"},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "none",
|
|
"custom": {"drawStyle": "line", "lineWidth": 2, "fillOpacity": 10}
|
|
},
|
|
"overrides": []
|
|
},
|
|
"options": {"legend": {"displayMode": "list", "placement": "bottom"}},
|
|
"targets": [{
|
|
"refId": "A",
|
|
"alias": "apache_workers",
|
|
"query": "SELECT mean(\"apache_workers\") FROM \"wordpress\" WHERE \"node\"='ct101' AND $timeFilter GROUP BY time($__interval) fill(null)",
|
|
"rawQuery": true,
|
|
"resultFormat": "time_series"
|
|
}]
|
|
}
|
|
]
|
|
}
|