Fix bad export

This commit is contained in:
Mark Nellemann 2022-10-28 10:49:17 +02:00
parent 997158f17b
commit 8151af7772
2 changed files with 155 additions and 73 deletions

View File

@ -1,4 +1,53 @@
{ {
"__inputs": [
{
"name": "DS_SYSMON",
"label": "sysmon",
"description": "",
"type": "datasource",
"pluginId": "influxdb",
"pluginName": "InfluxDB"
}
],
"__elements": {},
"__requires": [
{
"type": "panel",
"id": "gauge",
"name": "Gauge",
"version": ""
},
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "9.1.6"
},
{
"type": "datasource",
"id": "influxdb",
"name": "InfluxDB",
"version": "1.0.0"
},
{
"type": "panel",
"id": "stat",
"name": "Stat",
"version": ""
},
{
"type": "panel",
"id": "text",
"name": "Text",
"version": ""
},
{
"type": "panel",
"id": "timeseries",
"name": "Time series",
"version": ""
}
],
"annotations": { "annotations": {
"list": [ "list": [
{ {
@ -25,14 +74,14 @@
"editable": true, "editable": true,
"fiscalYearStartMonth": 0, "fiscalYearStartMonth": 0,
"graphTooltip": 0, "graphTooltip": 0,
"id": 8, "id": null,
"links": [], "links": [],
"liveNow": false, "liveNow": false,
"panels": [ "panels": [
{ {
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"gridPos": { "gridPos": {
"h": 3, "h": 3,
@ -50,7 +99,7 @@
{ {
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"refId": "A" "refId": "A"
} }
@ -61,7 +110,7 @@
{ {
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -109,7 +158,7 @@
{ {
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"groupBy": [ "groupBy": [
{ {
@ -306,7 +355,7 @@
{ {
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -454,7 +503,7 @@
{ {
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"groupBy": [ "groupBy": [
{ {
@ -676,7 +725,7 @@
{ {
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -761,7 +810,7 @@
"alias": "$col", "alias": "$col",
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"groupBy": [ "groupBy": [
{ {
@ -853,7 +902,7 @@
{ {
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -991,7 +1040,7 @@
{ {
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"groupBy": [ "groupBy": [
{ {
@ -1136,7 +1185,7 @@
{ {
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -1218,7 +1267,7 @@
"alias": "$col", "alias": "$col",
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"groupBy": [ "groupBy": [
{ {
@ -1400,7 +1449,7 @@
{ {
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -1479,7 +1528,7 @@
{ {
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"groupBy": [ "groupBy": [
{ {
@ -1565,7 +1614,7 @@
{ {
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -1661,7 +1710,7 @@
{ {
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"groupBy": [ "groupBy": [
{ {
@ -1753,7 +1802,7 @@
{ {
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -1834,7 +1883,7 @@
"alias": "$tag_name", "alias": "$tag_name",
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"groupBy": [ "groupBy": [
{ {
@ -1914,7 +1963,7 @@
{ {
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -1994,7 +2043,7 @@
"alias": "$tag_name", "alias": "$tag_name",
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"groupBy": [ "groupBy": [
{ {
@ -2074,7 +2123,7 @@
{ {
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -2155,7 +2204,7 @@
"alias": "$tag_name ($col)", "alias": "$tag_name ($col)",
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"groupBy": [ "groupBy": [
{ {
@ -2229,7 +2278,7 @@
{ {
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -2310,7 +2359,7 @@
"alias": "$tag_name ($col)", "alias": "$tag_name ($col)",
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"groupBy": [ "groupBy": [
{ {
@ -2378,7 +2427,7 @@
{ {
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -2458,7 +2507,7 @@
"alias": "$tag_name($tag_pid)", "alias": "$tag_name($tag_pid)",
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"groupBy": [ "groupBy": [
{ {
@ -2532,7 +2581,7 @@
{ {
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -2611,7 +2660,7 @@
"alias": "$tag_name($tag_pid)", "alias": "$tag_name($tag_pid)",
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"groupBy": [ "groupBy": [
{ {
@ -2676,7 +2725,7 @@
{ {
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -2758,7 +2807,7 @@
"alias": "$col", "alias": "$col",
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"groupBy": [ "groupBy": [
{ {
@ -2868,7 +2917,7 @@
{ {
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -2956,7 +3005,7 @@
"alias": "$tag_mount", "alias": "$tag_mount",
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"groupBy": [ "groupBy": [
{ {
@ -3045,14 +3094,10 @@
"templating": { "templating": {
"list": [ "list": [
{ {
"current": { "current": {},
"selected": false,
"text": "vps01.nellemann.biz",
"value": "vps01.nellemann.biz"
},
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"definition": "SHOW TAG VALUES FROM \"base_memory\" WITH KEY = \"hostname\" WHERE time > now() - 60m", "definition": "SHOW TAG VALUES FROM \"base_memory\" WITH KEY = \"hostname\" WHERE time > now() - 60m",
"hide": 0, "hide": 0,
@ -3074,7 +3119,7 @@
] ]
}, },
"time": { "time": {
"from": "now-2d", "from": "now-6h",
"to": "now-30s" "to": "now-30s"
}, },
"timepicker": { "timepicker": {
@ -3093,6 +3138,6 @@
"timezone": "", "timezone": "",
"title": "Sysmon - Host Overview", "title": "Sysmon - Host Overview",
"uid": "QkVPjseMt", "uid": "QkVPjseMt",
"version": 4, "version": 5,
"weekStart": "" "weekStart": ""
} }

View File

@ -1,4 +1,53 @@
{ {
"__inputs": [
{
"name": "DS_SYSMON",
"label": "sysmon",
"description": "",
"type": "datasource",
"pluginId": "influxdb",
"pluginName": "InfluxDB"
}
],
"__elements": {},
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "9.1.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": "text",
"name": "Text",
"version": ""
},
{
"type": "panel",
"id": "timeseries",
"name": "Time series",
"version": ""
}
],
"annotations": { "annotations": {
"list": [ "list": [
{ {
@ -25,14 +74,14 @@
"editable": true, "editable": true,
"fiscalYearStartMonth": 0, "fiscalYearStartMonth": 0,
"graphTooltip": 0, "graphTooltip": 0,
"id": 1, "id": null,
"links": [], "links": [],
"liveNow": false, "liveNow": false,
"panels": [ "panels": [
{ {
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"gridPos": { "gridPos": {
"h": 3, "h": 3,
@ -50,7 +99,7 @@
{ {
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"refId": "A" "refId": "A"
} }
@ -88,7 +137,7 @@
{ {
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -138,7 +187,7 @@
{ {
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"groupBy": [ "groupBy": [
{ {
@ -236,7 +285,7 @@
{ {
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -309,7 +358,7 @@
{ {
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"groupBy": [ "groupBy": [
{ {
@ -395,7 +444,7 @@
{ {
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -468,7 +517,7 @@
{ {
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"groupBy": [ "groupBy": [
{ {
@ -554,7 +603,7 @@
{ {
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -631,7 +680,7 @@
"alias": "$col", "alias": "$col",
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"groupBy": [ "groupBy": [
{ {
@ -733,7 +782,7 @@
{ {
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -817,7 +866,7 @@
"alias": "$col", "alias": "$col",
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"groupBy": [ "groupBy": [
{ {
@ -916,14 +965,10 @@
"templating": { "templating": {
"list": [ "list": [
{ {
"current": { "current": {},
"selected": true,
"text": "mini",
"value": "mini"
},
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"definition": "SHOW TAG VALUES FROM \"base_memory\" WITH KEY = \"hostname\" WHERE time > now() - 60m", "definition": "SHOW TAG VALUES FROM \"base_memory\" WITH KEY = \"hostname\" WHERE time > now() - 60m",
"hide": 0, "hide": 0,
@ -943,14 +988,10 @@
"useTags": false "useTags": false
}, },
{ {
"current": { "current": {},
"selected": false,
"text": "java",
"value": "java"
},
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"definition": "SHOW TAG VALUES FROM \"base_process\" WITH KEY = \"name\" WHERE hostname =~ /$hostname/AND time > now() - 60m", "definition": "SHOW TAG VALUES FROM \"base_process\" WITH KEY = \"name\" WHERE hostname =~ /$hostname/AND time > now() - 60m",
"hide": 0, "hide": 0,
@ -967,14 +1008,10 @@
"type": "query" "type": "query"
}, },
{ {
"current": { "current": {},
"selected": false,
"text": "All",
"value": "$__all"
},
"datasource": { "datasource": {
"type": "influxdb", "type": "influxdb",
"uid": "jzYL6mnVk" "uid": "${DS_SYSMON}"
}, },
"definition": "SELECT DISTINCT(\"pid\") FROM (SELECT * FROM \"base_process\" WHERE time > now() - 60m AND \"hostname\" =~ /$hostname/ AND \"name\" =~ /$process/)", "definition": "SELECT DISTINCT(\"pid\") FROM (SELECT * FROM \"base_process\" WHERE time > now() - 60m AND \"hostname\" =~ /$hostname/ AND \"name\" =~ /$process/)",
"hide": 0, "hide": 0,
@ -1012,6 +1049,6 @@
"timezone": "", "timezone": "",
"title": "Sysmon - Process Explorer", "title": "Sysmon - Process Explorer",
"uid": "Vjut5mS7k", "uid": "Vjut5mS7k",
"version": 2, "version": 3,
"weekStart": "" "weekStart": ""
} }