123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268 |
- {
- "annotations": {
- "list": [
- {
- "builtIn": 1,
- "datasource": {
- "type": "grafana",
- "uid": "-- Grafana --"
- },
- "enable": true,
- "hide": true,
- "iconColor": "rgba(0, 211, 255, 1)",
- "name": "Annotations & Alerts",
- "target": {
- "limit": 100,
- "matchAny": false,
- "tags": [],
- "type": "dashboard"
- },
- "type": "dashboard"
- }
- ]
- },
- "editable": true,
- "fiscalYearStartMonth": 0,
- "graphTooltip": 0,
- "id": 1,
- "iteration": 1656342487734,
- "links": [],
- "liveNow": false,
- "panels": [
- {
- "datasource": {
- "type": "frser-sqlite-datasource",
- "uid": "TA7xhL3nk"
- },
- "description": "rss per process",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 50,
- "gradientMode": "opacity",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "auto",
- "spanNulls": true,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "decmbytes"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 9,
- "w": 12,
- "x": 0,
- "y": 0
- },
- "id": 2,
- "options": {
- "legend": {
- "calcs": [],
- "displayMode": "table",
- "placement": "right"
- },
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "frser-sqlite-datasource",
- "uid": "TA7xhL3nk"
- },
- "queryText": "WITH RECURSIVE cte(org, part, rest, pos) AS (\n VALUES(replace(replace('$process','}',''),'{',''), '',replace(replace('$process','}',''),'{','')|| ',', 0)\n UNION ALL\n SELECT org,\n replace(SUBSTR(org, pos+1, INSTR(rest, ',') ),',',''),\n SUBSTR(rest, INSTR(rest, ',')+1),\n pos + INSTR(rest, ',')\n FROM cte\n WHERE INSTR(rest, ',') > 0\n) SELECT\ntime,\nname as displayName,\n(rss / 1024) as rss\nFROM procsummary\nWHERE\nname IN (select part from cte)\nAND\ntime >= $__from / 1000 and time < $__to / 1000",
- "queryType": "time series",
- "rawQueryText": "WITH RECURSIVE cte(org, part, rest, pos) AS (\n VALUES(replace(replace('$process','}',''),'{',''), '',replace(replace('$process','}',''),'{','')|| ',', 0)\n UNION ALL\n SELECT org,\n replace(SUBSTR(org, pos+1, INSTR(rest, ',') ),',',''),\n SUBSTR(rest, INSTR(rest, ',')+1),\n pos + INSTR(rest, ',')\n FROM cte\n WHERE INSTR(rest, ',') > 0\n) SELECT\ntime,\nname as displayName,\n(rss / 1024) as rss\nFROM procsummary\nWHERE\nname IN (select part from cte)\nAND\ntime >= $__from / 1000 and time < $__to / 1000",
- "refId": "A",
- "timeColumns": [
- "time",
- "ts"
- ]
- }
- ],
- "title": "rss per process",
- "transformations": [],
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "frser-sqlite-datasource",
- "uid": "TA7xhL3nk"
- },
- "description": "processes per program",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 50,
- "gradientMode": "opacity",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "auto",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- }
- },
- "overrides": []
- },
- "gridPos": {
- "h": 9,
- "w": 12,
- "x": 12,
- "y": 0
- },
- "id": 4,
- "options": {
- "legend": {
- "calcs": [],
- "displayMode": "table",
- "placement": "right"
- },
- "tooltip": {
- "mode": "multi",
- "sort": "none"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "frser-sqlite-datasource",
- "uid": "TA7xhL3nk"
- },
- "queryText": "WITH RECURSIVE cte(org, part, rest, pos) AS (\n VALUES(replace(replace('$process','}',''),'{',''), '',replace(replace('$process','}',''),'{','')|| ',', 0)\n UNION ALL\n SELECT org,\n replace(SUBSTR(org, pos+1, INSTR(rest, ',') ),',',''),\n SUBSTR(rest, INSTR(rest, ',')+1),\n pos + INSTR(rest, ',')\n FROM cte\n WHERE INSTR(rest, ',') > 0\n) SELECT\ntime,\nname as displayName,\nnum_procs as num_procs\nFROM procsummary\nWHERE\nname IN (select part from cte)\nAND\ntime >= $__from / 1000 and time < $__to / 1000",
- "queryType": "table",
- "rawQueryText": "WITH RECURSIVE cte(org, part, rest, pos) AS (\n VALUES(replace(replace('$process','}',''),'{',''), '',replace(replace('$process','}',''),'{','')|| ',', 0)\n UNION ALL\n SELECT org,\n replace(SUBSTR(org, pos+1, INSTR(rest, ',') ),',',''),\n SUBSTR(rest, INSTR(rest, ',')+1),\n pos + INSTR(rest, ',')\n FROM cte\n WHERE INSTR(rest, ',') > 0\n) SELECT\ntime,\nname as displayName,\nnum_procs as num_procs\nFROM procsummary\nWHERE\nname IN (select part from cte)\nAND\ntime >= $__from / 1000 and time < $__to / 1000",
- "refId": "A",
- "timeColumns": [
- "time",
- "ts"
- ]
- }
- ],
- "title": "Processes per program",
- "type": "timeseries"
- }
- ],
- "refresh": "",
- "schemaVersion": 36,
- "style": "dark",
- "tags": [],
- "templating": {
- "list": [
- {
- "current": {
- "selected": true,
- "text": [
- "All"
- ],
- "value": [
- "$__all"
- ]
- },
- "datasource": {
- "type": "frser-sqlite-datasource",
- "uid": "TA7xhL3nk"
- },
- "definition": "SELECT name FROM processes ORDER BY name ASC;",
- "description": "name of the process monitored",
- "hide": 0,
- "includeAll": true,
- "label": "process name",
- "multi": true,
- "name": "process",
- "options": [],
- "query": "SELECT name FROM processes ORDER BY name ASC;",
- "refresh": 1,
- "regex": "",
- "skipUrlSync": false,
- "sort": 0,
- "type": "query"
- }
- ]
- },
- "time": {
- "from": "2022-06-27T08:32:20.153Z",
- "to": "2022-06-27T20:32:20.153Z"
- },
- "timepicker": {},
- "timezone": "",
- "title": "System status",
- "uid": "ECc20Y37k",
- "version": 14,
- "weekStart": ""
- }
|