{ "__inputs": [ { "name": "DS_INFLUXDB-SYSMON", "label": "InfluxDB-sysmon", "description": "", "type": "datasource", "pluginId": "influxdb", "pluginName": "InfluxDB" } ], "__requires": [ { "type": "panel", "id": "gauge", "name": "Gauge", "version": "" }, { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "8.0.6" }, { "type": "datasource", "id": "influxdb", "name": "InfluxDB", "version": "1.0.0" }, { "type": "panel", "id": "stat", "name": "Stat", "version": "" }, { "type": "panel", "id": "table", "name": "Table", "version": "" }, { "type": "panel", "id": "timeseries", "name": "Time series", "version": "" } ], "annotations": { "list": [ { "builtIn": 1, "datasource": "-- Grafana --", "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" } ] }, "description": "Metrics from within host / guest / partition.", "editable": true, "gnetId": null, "graphTooltip": 0, "id": null, "iteration": 1631013505736, "links": [], "panels": [ { "collapsed": false, "datasource": null, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 }, "id": 4, "panels": [], "repeat": "hostname", "title": "${hostname}", "type": "row" }, { "datasource": "${DS_INFLUXDB-SYSMON}", "description": "", "fieldConfig": { "defaults": { "color": { "mode": "fixed" }, "custom": { "align": "left", "displayMode": "auto" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "string" }, "overrides": [] }, "gridPos": { "h": 6, "w": 12, "x": 0, "y": 1 }, "id": 16, "options": { "showHeader": true, "sortBy": [] }, "pluginVersion": "8.0.6", "targets": [ { "groupBy": [ { "params": [ "pid" ], "type": "tag" } ], "measurement": "base_process", "orderByTime": "ASC", "policy": "default", "refId": "A", "resultFormat": "table", "select": [ [ { "params": [ "user" ], "type": "field" }, { "params": [], "type": "last" }, { "params": [ "user" ], "type": "alias" } ], [ { "params": [ "group" ], "type": "field" }, { "params": [], "type": "last" }, { "params": [ "group" ], "type": "alias" } ], [ { "params": [ "prio" ], "type": "field" }, { "params": [], "type": "last" }, { "params": [ "priority" ], "type": "alias" } ] ], "tags": [ { "key": "hostname", "operator": "=~", "value": "/^$hostname$/" }, { "condition": "AND", "key": "name", "operator": "=~", "value": "/^$process$/" }, { "condition": "AND", "key": "pid", "operator": "=~", "value": "/^$pid$/" } ] } ], "timeFrom": null, "timeShift": null, "title": "Details", "type": "table" }, { "datasource": "${DS_INFLUXDB-SYSMON}", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "bytes" }, "overrides": [ { "matcher": { "id": "byName", "options": "base_process.rss" }, "properties": [ { "id": "displayName", "value": "Resident" } ] }, { "matcher": { "id": "byName", "options": "base_process.vsz" }, "properties": [ { "id": "displayName", "value": "Virtual" } ] } ] }, "gridPos": { "h": 6, "w": 7, "x": 12, "y": 1 }, "id": 19, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "text": {}, "textMode": "auto" }, "pluginVersion": "8.0.6", "targets": [ { "groupBy": [ { "params": [ "$__interval" ], "type": "time" }, { "params": [ "linear" ], "type": "fill" } ], "measurement": "base_process", "orderByTime": "ASC", "policy": "default", "refId": "A", "resultFormat": "time_series", "select": [ [ { "params": [ "mem_rss" ], "type": "field" }, { "params": [], "type": "sum" }, { "params": [ "rss" ], "type": "alias" } ], [ { "params": [ "mem_vsz" ], "type": "field" }, { "params": [], "type": "sum" }, { "params": [ "vsz" ], "type": "alias" } ] ], "tags": [ { "key": "hostname", "operator": "=~", "value": "/^$hostname$/" }, { "condition": "AND", "key": "name", "operator": "=~", "value": "/^$process$/" }, { "condition": "AND", "key": "pid", "operator": "=~", "value": "/^$pid$/" } ] } ], "timeFrom": null, "timeShift": null, "title": "Memory Metrics", "type": "stat" }, { "datasource": "${DS_INFLUXDB-SYSMON}", "fieldConfig": { "defaults": { "color": { "mode": "continuous-GrYlRd" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "bytes" }, "overrides": [ { "matcher": { "id": "byName", "options": "base_process.read" }, "properties": [ { "id": "displayName", "value": "Read Bytes" } ] }, { "matcher": { "id": "byName", "options": "base_process.write" }, "properties": [ { "id": "displayName", "value": "Write Bytes" } ] } ] }, "gridPos": { "h": 6, "w": 5, "x": 19, "y": 1 }, "id": 26, "options": { "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "text": {} }, "pluginVersion": "8.0.6", "targets": [ { "groupBy": [ { "params": [ "$__interval" ], "type": "time" }, { "params": [ "previous" ], "type": "fill" } ], "measurement": "base_process", "orderByTime": "ASC", "policy": "default", "refId": "A", "resultFormat": "time_series", "select": [ [ { "params": [ "read_bytes" ], "type": "field" }, { "params": [], "type": "sum" }, { "params": [], "type": "non_negative_difference" }, { "params": [ "read" ], "type": "alias" } ], [ { "params": [ "write_bytes" ], "type": "field" }, { "params": [], "type": "sum" }, { "params": [], "type": "non_negative_difference" }, { "params": [ "write" ], "type": "alias" } ] ], "tags": [ { "key": "hostname", "operator": "=~", "value": "/^$hostname$/" }, { "condition": "AND", "key": "name", "operator": "=~", "value": "/^$process$/" }, { "condition": "AND", "key": "pid", "operator": "=~", "value": "/^$pid$/" } ] } ], "timeFrom": null, "timeShift": null, "title": "Disk Metrics", "type": "gauge" }, { "datasource": "${DS_INFLUXDB-SYSMON}", "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "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 } ] }, "unit": "dtdurationms" }, "overrides": [] }, "gridPos": { "h": 11, "w": 12, "x": 0, "y": 7 }, "id": 24, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "multi" } }, "pluginVersion": "8.0.6", "targets": [ { "alias": "$col", "groupBy": [ { "params": [ "$__interval" ], "type": "time" }, { "params": [ "name" ], "type": "tag" }, { "params": [ "null" ], "type": "fill" } ], "measurement": "base_process", "orderByTime": "ASC", "policy": "default", "query": "SELECT non_negative_difference(sum(last(\"user_time\"),last(\"kernel_time\"))) FROM \"base_process\" WHERE (\"hostname\" =~ /^$hostname$/) AND $timeFilter GROUP BY time($__interval), \"pid\", \"name\" fill(null)", "rawQuery": false, "refId": "A", "resultFormat": "time_series", "select": [ [ { "params": [ "user_time" ], "type": "field" }, { "params": [], "type": "sum" }, { "params": [], "type": "non_negative_difference" }, { "params": [ "user" ], "type": "alias" } ], [ { "params": [ "kernel_time" ], "type": "field" }, { "params": [], "type": "sum" }, { "params": [], "type": "non_negative_difference" }, { "params": [ "kernel" ], "type": "alias" } ] ], "tags": [ { "key": "hostname", "operator": "=~", "value": "/^$hostname$/" }, { "condition": "AND", "key": "name", "operator": "=~", "value": "/^$process$/" }, { "condition": "AND", "key": "pid", "operator": "=~", "value": "/^$pid$/" } ] } ], "title": "Processor Time", "type": "timeseries" }, { "datasource": "${DS_INFLUXDB-SYSMON}", "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineStyle": { "fill": "solid" }, "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": "short" }, "overrides": [] }, "gridPos": { "h": 11, "w": 12, "x": 12, "y": 7 }, "id": 25, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "multi" } }, "pluginVersion": "8.0.6", "targets": [ { "alias": "$col", "groupBy": [ { "params": [ "$__interval" ], "type": "time" }, { "params": [ "name" ], "type": "tag" }, { "params": [ "null" ], "type": "fill" } ], "measurement": "base_process", "orderByTime": "ASC", "policy": "default", "query": "SELECT sum(non_negative_derivative(mean(\"user_time\"), 30s), non_negative_derivative(mean(\"user_time\"), 30s)) FROM \"base_process\" WHERE (\"hostname\" =~ /^$hostname$/) AND $timeFilter GROUP BY time($__interval), \"pid\", \"name\" fill(null)", "rawQuery": false, "refId": "A", "resultFormat": "time_series", "select": [ [ { "params": [ "files" ], "type": "field" }, { "params": [], "type": "sum" }, { "params": [ "files" ], "type": "alias" } ], [ { "params": [ "threads" ], "type": "field" }, { "params": [], "type": "sum" }, { "params": [ "threads" ], "type": "alias" } ] ], "tags": [ { "key": "hostname", "operator": "=~", "value": "/^$hostname$/" }, { "condition": "AND", "key": "name", "operator": "=~", "value": "/^$process$/" }, { "condition": "AND", "key": "pid", "operator": "=~", "value": "/^$pid$/" } ] } ], "title": "Threads & Open Files", "type": "timeseries" } ], "refresh": "1m", "schemaVersion": 30, "style": "dark", "tags": [], "templating": { "list": [ { "allValue": null, "current": {}, "datasource": "${DS_INFLUXDB-SYSMON}", "definition": "SHOW TAG VALUES FROM \"base_memory\" WITH KEY = \"hostname\" WHERE time > now() - 60m", "description": null, "error": null, "hide": 0, "includeAll": false, "label": "Host", "multi": false, "name": "hostname", "options": [], "query": "SHOW TAG VALUES FROM \"base_memory\" WITH KEY = \"hostname\" WHERE time > now() - 60m", "refresh": 2, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tagsQuery": "", "type": "query", "useTags": false }, { "allValue": null, "current": {}, "datasource": "${DS_INFLUXDB-SYSMON}", "definition": "SHOW TAG VALUES FROM \"base_process\" WITH KEY = \"name\" WHERE hostname =~ /$hostname/AND time > now() - 60m", "description": null, "error": null, "hide": 0, "includeAll": false, "label": "Process", "multi": false, "name": "process", "options": [], "query": "SHOW TAG VALUES FROM \"base_process\" WITH KEY = \"name\" WHERE hostname =~ /$hostname/AND time > now() - 60m", "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "type": "query" }, { "allValue": "", "current": {}, "datasource": "${DS_INFLUXDB-SYSMON}", "definition": "SHOW TAG VALUES FROM \"base_process\" WITH KEY = \"pid\" WHERE hostname =~ /$hostname/AND \"name\" =~ /$process/ AND time > now() - 60m", "description": null, "error": null, "hide": 0, "includeAll": true, "label": "PID", "multi": false, "name": "pid", "options": [], "query": "SHOW TAG VALUES FROM \"base_process\" WITH KEY = \"pid\" WHERE hostname =~ /$hostname/AND \"name\" =~ /$process/ AND time > now() - 60m", "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "type": "query" } ] }, "time": { "from": "now-3h", "to": "now-30s" }, "timepicker": { "nowDelay": "30s", "refresh_intervals": [ "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d" ] }, "timezone": "", "title": "Sysmon - Process Explorer", "uid": "Vjut5mS7k", "version": 11 }