SquadJS/squad-server/templates/SquadJS-Dashboard-v2.json

3623 lines
96 KiB
JSON
Raw Normal View History

2021-02-27 18:03:10 -06:00
{
2021-03-12 15:43:04 -06:00
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"gnetId": null,
"graphTooltip": 2,
"id": 7,
"iteration": 1615585228169,
"links": [],
"panels": [
{
"columnAliases": [],
"columnFiltersEnabled": false,
"columnWidthHints": [],
"columns": [],
"compactRowsEnabled": false,
"datasource": "MySQL",
"datatablePagingType": "simple_numbers",
"datatableTheme": "basic_theme",
"description": "This panel does not sort top scores. ",
"emptyData": true,
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "100%",
"gridPos": {
"h": 9,
"w": 24,
"x": 0,
"y": 0
},
"hoverEnabled": true,
"id": 35,
"infoEnabled": true,
"lengthChangeEnabled": true,
"orderColumnEnabled": true,
"pagingTypes": [
{
"text": "Page number buttons only",
"value": "numbers"
},
{
"text": "'Previous' and 'Next' buttons only",
"value": "simple"
},
{
"text": "'Previous' and 'Next' buttons, plus page numbers",
"value": "simple_numbers"
},
{
"text": "'First', 'Previous', 'Next' and 'Last' buttons",
"value": "full"
},
{
"text": "'First', 'Previous', 'Next' and 'Last' buttons, plus page numbers",
"value": "full_numbers"
},
{
"text": "'First' and 'Last' buttons, plus page numbers",
"value": "first_last_numbers"
}
],
"panelHeight": null,
"pluginVersion": "7.1.1",
"rowNumbersEnabled": false,
"rowsPerPage": 5,
"scroll": false,
"scrollHeight": "default",
"searchEnabled": true,
"showCellBorders": false,
"showHeader": true,
"showRowBorders": true,
"sort": {
"col": 0,
"desc": true
},
"sortByColumns": [
{
"columnData": "Kills",
"sortMethod": "desc"
}
],
"sortByColumnsData": [
[
3,
"desc"
]
],
"stripedRowsEnabled": true,
"styles": [
{
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"pattern": "Time",
"type": "date"
},
{
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"decimals": 2,
"pattern": "/.*/",
"splitPattern": "/ /",
"thresholds": [],
"type": "string",
"unit": "short"
}
],
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\r\n m.attacker AS \"Steam ID\",\r\n m.attackerName AS \"Name\",\r\n `Wounds`,\r\n `Kills`,\r\n `Deaths`,\r\n `Kills`/`Deaths` AS `K/D`,\r\n `Revives`\r\nFROM `DBLog_Wounds` m\r\nLEFT JOIN (\r\n SELECT\r\n attacker,\r\n COUNT(*) AS `Wounds`\r\n FROM `DBLog_Wounds`\r\n WHERE\r\n $__timeFilter(time) AND\r\n server = $SERVER_ID\r\n GROUP BY attacker\r\n) w ON w.attacker = m.attacker\r\nLEFT JOIN (\r\n SELECT\r\n attacker,\r\n COUNT(*) AS `Kills`\r\n FROM `DBLog_Deaths`\r\n WHERE\r\n $__timeFilter(time) AND\r\n server = $SERVER_ID\r\n GROUP BY attacker\r\n) k ON k.attacker = m.attacker\r\nLEFT JOIN (\r\n SELECT\r\n victim,\r\n COUNT(*) AS `Deaths`\r\n FROM `DBLog_Deaths`\r\n WHERE\r\n $__timeFilter(time) AND\r\n server = $SERVER_ID\r\n GROUP BY victim\r\n) d ON d.victim = m.attacker\r\nLEFT JOIN (\r\n SELECT\r\n reviver,\r\n COUNT(*) AS `Revives`\r\n FROM `DBLog_Revives`\r\n WHERE\r\n $__timeFilter(time) AND\r\n server = $SERVER_ID\r\n GROUP BY reviver\r\n) r ON r.reviver = m.attacker\r\n WHERE\r\n $__timeFilter(time) AND\r\n server = $SERVER_ID \r\nGROUP BY m.attacker\r\nHAVING `K/D` IS NOT NULL;",
"refId": "A",
"select": [
[
{
"params": [
"id"
],
"type": "column"
}
]
],
"table": "DBLog_TickRates",
"timeColumn": "time",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"themeOptions": {
"dark": "./styles/dark.scss",
"light": "./styles/light.scss"
},
"themes": [
{
"disabled": false,
"text": "Basic",
"value": "basic_theme"
},
{
"disabled": true,
"text": "Bootstrap",
"value": "bootstrap_theme"
},
{
"disabled": true,
"text": "Foundation",
"value": "foundation_theme"
},
{
"disabled": true,
"text": "ThemeRoller",
"value": "themeroller_theme"
2021-02-27 18:03:10 -06:00
}
2021-03-12 15:43:04 -06:00
],
"timeFrom": null,
"timeShift": null,
"title": " Only for search in the top scores - This panel does not sort top scores. ",
"transform": "table",
"type": "briangann-datatable-panel"
2021-02-27 18:03:10 -06:00
},
2021-03-12 15:43:04 -06:00
{
"columns": [],
"datasource": "MySQL",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "100%",
"gridPos": {
"h": 14,
"w": 24,
"x": 0,
"y": 9
},
"id": 32,
"pageSize": null,
"showHeader": true,
"sort": {
"col": 3,
"desc": true
},
"styles": [],
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\r\n m.attacker AS \"Steam ID\",\r\n m.attackerName AS \"Name\",\r\n `Wounds`,\r\n `Kills`,\r\n `Deaths`,\r\n `Kills`/`Deaths` AS `K/D`,\r\n `Revives`\r\nFROM `DBLog_Wounds` m\r\nLEFT JOIN (\r\n SELECT\r\n attacker,\r\n COUNT(*) AS `Wounds`\r\n FROM `DBLog_Wounds`\r\n WHERE\r\n $__timeFilter(time) AND\r\n server = $SERVER_ID\r\n GROUP BY attacker\r\n) w ON w.attacker = m.attacker\r\nLEFT JOIN (\r\n SELECT\r\n attacker,\r\n COUNT(*) AS `Kills`\r\n FROM `DBLog_Deaths`\r\n WHERE\r\n $__timeFilter(time) AND\r\n server = $SERVER_ID\r\n GROUP BY attacker\r\n) k ON k.attacker = m.attacker\r\nLEFT JOIN (\r\n SELECT\r\n victim,\r\n COUNT(*) AS `Deaths`\r\n FROM `DBLog_Deaths`\r\n WHERE\r\n $__timeFilter(time) AND\r\n server = $SERVER_ID\r\n GROUP BY victim\r\n) d ON d.victim = m.attacker\r\nLEFT JOIN (\r\n SELECT\r\n reviver,\r\n COUNT(*) AS `Revives`\r\n FROM `DBLog_Revives`\r\n WHERE\r\n $__timeFilter(time) AND\r\n server = $SERVER_ID\r\n GROUP BY reviver\r\n) r ON r.reviver = m.attacker\r\n WHERE\r\n $__timeFilter(time) AND\r\n server = $SERVER_ID \r\nGROUP BY m.attacker\r\nHAVING `K/D` IS NOT NULL;",
"refId": "B",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
2021-02-27 18:03:10 -06:00
]
2021-03-12 15:43:04 -06:00
}
],
"timeFrom": null,
"timeShift": null,
"title": "Top Scorers",
"transform": "table",
"type": "table-old"
},
{
"datasource": "MySQL",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
2021-02-27 18:03:10 -06:00
},
2021-03-12 15:43:04 -06:00
"custom": {},
"displayName": "",
"mappings": [],
"max": 60,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "dark-red",
"value": null
},
{
"color": "yellow",
"value": 15
},
{
"color": "dark-green",
"value": 20
2021-02-27 18:03:10 -06:00
}
]
}
},
2021-03-12 15:43:04 -06:00
"overrides": []
2021-02-27 18:03:10 -06:00
},
2021-03-12 15:43:04 -06:00
"gridPos": {
"h": 8,
"w": 6,
"x": 0,
"y": 23
},
"id": 16,
"options": {
"orientation": "auto",
"reduceOptions": {
"calcs": [
"mean"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "7.1.4",
"targets": [
{
"format": "time_series",
"group": [],
"groupBy": [],
"measurement": "tick_rate",
"metricColumn": "none",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT LAST(\"tick_rate\") FROM \"DBLog_TickRates\" WHERE server = '$SERVER_ID'",
"rawQuery": true,
"rawSql": "SELECT\n time AS \"time\",\n tickRate\nFROM DBLog_TickRates\nWHERE\n $__timeFilter(time) AND\n server = \"$SERVER_ID\"\nORDER BY time DESC",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"tick_rate"
],
"type": "column"
2021-02-27 18:03:10 -06:00
}
]
2021-03-12 15:43:04 -06:00
],
"table": "DBLog_TickRates",
"tags": [],
"timeColumn": "time",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
},
{
"datatype": "int",
"name": "",
"params": [
"server",
"=",
"$SERVER"
],
"type": "expression"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Current Tick Rate",
"type": "gauge"
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "MySQL",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
2021-02-27 18:03:10 -06:00
},
2021-03-12 15:43:04 -06:00
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 18,
"x": 6,
"y": 23
},
"hiddenSeries": false,
"id": 2,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"percentage": false,
"pluginVersion": "7.1.4",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"format": "time_series",
"group": [
{
"params": [
"$__interval",
"none"
],
"type": "time"
}
],
"groupBy": [
{
"params": [
"5m"
],
"type": "time"
2021-02-27 18:03:10 -06:00
},
2021-03-12 15:43:04 -06:00
{
"params": [
"null"
],
"type": "fill"
2021-02-27 18:03:10 -06:00
}
2021-03-12 15:43:04 -06:00
],
"measurement": "tick_rate",
"metricColumn": "none",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT \n mean(\"tick_rate\") \nFROM \"DBLog_TickRates\" \nWHERE \n $timeFilter AND\n server = '$SERVER_ID'\nGROUP BY time($INTERVAL) fill(null)",
"rawQuery": true,
"rawSql": "SELECT\n $__timeGroupAlias(time,$__interval),\n avg(tickRate) AS \"tick_rate\"\nFROM DBLog_TickRates\nWHERE\n $__timeFilter(time) AND\n server = \"$SERVER_ID\"\nGROUP BY 1\nORDER BY $__timeGroup(time,$__interval)",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"tick_rate"
],
"type": "column"
2021-02-27 18:03:10 -06:00
},
{
"params": [
2021-03-12 15:43:04 -06:00
"avg"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "aggregate"
},
{
"params": [
"tick_rate"
],
"type": "alias"
2021-02-27 18:03:10 -06:00
}
]
2021-03-12 15:43:04 -06:00
],
"table": "DBLog_TickRates",
"tags": [],
"timeColumn": "time",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"thresholds": [
{
"colorMode": "custom",
"fill": false,
"fillColor": "rgba(50, 116, 217, 0.2)",
"line": true,
"lineColor": "#F2495C",
"op": "lt",
"value": 15,
"yaxis": "left"
},
{
"colorMode": "custom",
"fill": false,
"fillColor": "rgba(50, 116, 217, 0.2)",
"line": true,
"lineColor": "#FADE2A",
"op": "lt",
"value": 20,
"yaxis": "left"
}
],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Tick Rate",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
2021-02-27 18:03:10 -06:00
},
2021-03-12 15:43:04 -06:00
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": "60",
"min": "0",
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"datasource": "MySQL",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
2021-02-27 18:03:10 -06:00
},
2021-03-12 15:43:04 -06:00
"custom": {},
"displayName": "",
"mappings": [],
"max": 80,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "orange",
"value": null
},
{
"color": "green",
"value": 50
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 6,
"x": 0,
"y": 31
},
"id": 27,
"options": {
"orientation": "auto",
"reduceOptions": {
"calcs": [
"mean"
],
"fields": "",
2021-02-27 18:03:10 -06:00
"values": false
},
2021-03-12 15:43:04 -06:00
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "7.1.4",
"targets": [
{
"format": "time_series",
"group": [
{
"params": [
"$__interval",
"none"
],
"type": "time"
}
],
"groupBy": [],
"measurement": "tick_rate",
"metricColumn": "none",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT LAST(\"player_count\") FROM \"DBLog_PlayerCounts\" WHERE server = '$SERVER_ID'",
"rawQuery": true,
"rawSql": "SELECT\n $__timeGroupAlias(time,$__interval),\n players AS \"Player Count\"\nFROM DBLog_PlayerCounts\nWHERE\n $__timeFilter(time) AND\n server = \"$SERVER_ID\"\nGROUP BY 1\nORDER BY $__timeGroup(time,$__interval) DESC\nLIMIT 1",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"player_count"
],
"type": "column"
},
2021-02-27 18:03:10 -06:00
{
"params": [
2021-03-12 15:43:04 -06:00
"Player Count"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "alias"
2021-02-27 18:03:10 -06:00
}
2021-03-12 15:43:04 -06:00
]
],
"table": "DBLog_PlayerCounts",
"tags": [],
"timeColumn": "time",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Current Player Count",
"type": "gauge"
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "MySQL",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 18,
"x": 6,
"y": 31
},
"hiddenSeries": false,
"id": 28,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"percentage": false,
"pluginVersion": "7.1.4",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"format": "time_series",
"group": [
{
"params": [
"$__interval",
"none"
],
"type": "time"
}
],
"groupBy": [
{
"params": [
"5m"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "tick_rate",
"metricColumn": "none",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT \n MEAN(\"player_count\") \nFROM \"DBLog_PlayerCounts\" \nWHERE \n $timeFilter AND\n server = '$SERVER_ID'\nGROUP BY time($INTERVAL) fill(null)",
"rawQuery": true,
"rawSql": "SELECT\n $__timeGroupAlias(time,$__interval),\n avg(players) AS \"player_count\"\nFROM DBLog_PlayerCounts\nWHERE\n $__timeFilter(time) AND\n server = \"$SERVER_ID\"\nGROUP BY 1\nORDER BY $__timeGroup(time,$__interval)",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"player_count"
],
"type": "column"
},
2021-02-27 18:03:10 -06:00
{
"params": [
2021-03-12 15:43:04 -06:00
"avg"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "aggregate"
2021-02-27 18:03:10 -06:00
},
{
"params": [
2021-03-12 15:43:04 -06:00
"player_count"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "alias"
2021-02-27 18:03:10 -06:00
}
]
2021-03-12 15:43:04 -06:00
],
"table": "DBLog_PlayerCounts",
"tags": [],
"timeColumn": "time",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"thresholds": [
{
"colorMode": "custom",
"fill": false,
"fillColor": "rgba(50, 116, 217, 0.2)",
"line": true,
"lineColor": "#FF9830",
"op": "lt",
"value": 50,
"yaxis": "left"
2021-02-27 18:03:10 -06:00
}
2021-03-12 15:43:04 -06:00
],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Player Count",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
2021-02-27 18:03:10 -06:00
},
2021-03-12 15:43:04 -06:00
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": "80",
"min": "0",
"show": true
2021-02-27 18:03:10 -06:00
},
2021-03-12 15:43:04 -06:00
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "MySQL",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
2021-02-27 18:03:10 -06:00
},
2021-03-12 15:43:04 -06:00
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 4,
"w": 6,
"x": 0,
"y": 39
},
"id": 12,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
2021-02-27 18:03:10 -06:00
},
2021-03-12 15:43:04 -06:00
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": " Wounds",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": true,
"ymax": null,
"ymin": null
},
"tableColumn": "",
"targets": [
{
"format": "time_series",
"group": [
{
"params": [
"$__interval",
"none"
],
"type": "time"
}
],
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"metricColumn": "none",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT COUNT(\"victimName\") \nFROM DBLog_Wounds\nWHERE \n $timeFilter AND\n server = '$SERVER_ID'",
"rawQuery": true,
"rawSql": "SELECT\n $__timeGroupAlias(time,$__interval),\n count(id) AS \"id\"\nFROM DBLog_Wounds\nWHERE\n $__timeFilter(time) AND\n server = \"$SERVER_ID\"\nGROUP BY 1\nORDER BY $__timeGroup(time,$__interval)",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
2021-02-27 18:03:10 -06:00
{
"params": [
2021-03-12 15:43:04 -06:00
"id"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "column"
},
2021-02-27 18:03:10 -06:00
{
"params": [
2021-03-12 15:43:04 -06:00
"count"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "aggregate"
2021-02-27 18:03:10 -06:00
},
{
"params": [
2021-03-12 15:43:04 -06:00
"id"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "alias"
2021-02-27 18:03:10 -06:00
}
]
2021-03-12 15:43:04 -06:00
],
"table": "DBLog_Wounds",
"tags": [],
"timeColumn": "time",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
2021-02-27 18:03:10 -06:00
}
2021-03-12 15:43:04 -06:00
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Wounded in Time Period",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "MySQL",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
2021-02-27 18:03:10 -06:00
},
2021-03-12 15:43:04 -06:00
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 4,
"w": 6,
"x": 6,
"y": 39
},
"id": 13,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": " Deaths",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": true,
"ymax": null,
"ymin": null
},
"tableColumn": "",
"targets": [
{
"format": "time_series",
"group": [
{
"params": [
"$__interval",
"none"
],
"type": "time"
}
],
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"metricColumn": "none",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT \n count(\"victimName\") \nFROM \"DBLog_Deaths\"\nWHERE \n $timeFilter AND\n server = '$SERVER_ID'",
"rawQuery": true,
"rawSql": "SELECT\n $__timeGroupAlias(time,$__interval),\n count(id) AS \"id\"\nFROM DBLog_Deaths\nWHERE\n $__timeFilter(time) AND\n server = \"$SERVER_ID\"\nGROUP BY 1\nORDER BY $__timeGroup(time,$__interval)",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
2021-02-27 18:03:10 -06:00
{
"params": [
2021-03-12 15:43:04 -06:00
"id"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "column"
},
2021-02-27 18:03:10 -06:00
{
"params": [
2021-03-12 15:43:04 -06:00
"count"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "aggregate"
2021-02-27 18:03:10 -06:00
},
{
"params": [
2021-03-12 15:43:04 -06:00
"id"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "alias"
2021-02-27 18:03:10 -06:00
}
]
2021-03-12 15:43:04 -06:00
],
"table": "DBLog_Deaths",
"tags": [],
"timeColumn": "time",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Deaths in Time Period",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "MySQL",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
2021-02-27 18:03:10 -06:00
},
2021-03-12 15:43:04 -06:00
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 4,
"w": 6,
"x": 12,
"y": 39
},
"id": 10,
"interval": "",
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": " TKs",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": true,
"ymax": null,
"ymin": null
},
"tableColumn": "",
"targets": [
{
"format": "time_series",
"group": [
{
"params": [
"$__interval",
"none"
],
"type": "time"
}
],
"groupBy": [],
"measurement": "player_wound",
"metricColumn": "none",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT \n count(\"victimName\") \nFROM \"DBLog_Wounds\"\nWHERE \n teamkill = true AND\n $timeFilter AND\n server = '$SERVER_ID'",
"rawQuery": true,
"rawSql": "SELECT\n $__timeGroupAlias(time,$__interval),\n count(id) AS \"id\"\nFROM DBLog_Wounds\nWHERE\n $__timeFilter(time) AND\n teamkill = '1' AND\n server = \"$SERVER_ID\"\nGROUP BY 1\nORDER BY $__timeGroup(time,$__interval)",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"id"
],
"type": "column"
},
2021-02-27 18:03:10 -06:00
{
"params": [
2021-03-12 15:43:04 -06:00
"count"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "aggregate"
2021-02-27 18:03:10 -06:00
},
{
"params": [
2021-03-12 15:43:04 -06:00
"id"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "alias"
2021-02-27 18:03:10 -06:00
}
]
2021-03-12 15:43:04 -06:00
],
"table": "DBLog_Wounds",
"tags": [],
"timeColumn": "time",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
},
{
"datatype": "tinyint",
"name": "",
"params": [
"teamkill",
"=",
"'1'"
],
"type": "expression"
}
]
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "TKs in Time Period",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "MySQL",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
2021-02-27 18:03:10 -06:00
},
2021-03-12 15:43:04 -06:00
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 4,
"w": 6,
"x": 18,
"y": 39
},
"id": 14,
"interval": "",
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": " Revives",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": true,
"ymax": null,
"ymin": null
},
"tableColumn": "",
"targets": [
{
"format": "time_series",
"group": [
{
"params": [
"$__interval",
"none"
],
"type": "time"
}
],
"groupBy": [],
"measurement": "revive",
"metricColumn": "none",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT count(\"victimName\") FROM \"DBLog_Revives\" WHERE $timeFilter AND server = '$SERVER_ID'",
"rawQuery": true,
"rawSql": "SELECT\n $__timeGroupAlias(time,$__interval),\n count(id) AS \"id\"\nFROM DBLog_Revives\nWHERE\n $__timeFilter(time) AND\n server = \"$SERVER_ID\"\nGROUP BY 1\nORDER BY $__timeGroup(time,$__interval)",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"id"
],
"type": "column"
},
2021-02-27 18:03:10 -06:00
{
"params": [
2021-03-12 15:43:04 -06:00
"count"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "aggregate"
2021-02-27 18:03:10 -06:00
},
{
"params": [
2021-03-12 15:43:04 -06:00
"id"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "alias"
2021-02-27 18:03:10 -06:00
}
]
2021-03-12 15:43:04 -06:00
],
"table": "DBLog_Revives",
"tags": [],
"timeColumn": "time",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Revives in Time Period",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"columns": [],
"datasource": "MySQL",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
2021-02-27 18:03:10 -06:00
},
2021-03-12 15:43:04 -06:00
"fontSize": "100%",
"gridPos": {
"h": 13,
"w": 24,
"x": 0,
"y": 43
},
"id": 4,
"pageSize": null,
"showHeader": true,
"sort": {
"col": 0,
"desc": true
},
"styles": [
{
"alias": "",
"align": "auto",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 2,
"mappingType": 1,
"pattern": "Time",
"thresholds": [],
"type": "date",
"unit": "short"
}
],
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n a.time AS \"Time\",\n a.attacker AS \"Attacker\",\n a.attackerName AS \"Attacker Name\",\n a.weapon AS \"Weapon\",\n a.victim AS \"Victim\",\n a.victimName AS \"Victim Name\",\n Total AS \"Total in Time Frame\"\nFROM DBLog_Wounds a\nJOIN\n (\n SELECT\n attacker,\n COUNT(*) AS \"Total\"\n FROM DBLog_Wounds\n WHERE \n $__timeFilter(time) AND\n server = $SERVER_ID AND\n teamkill = true\n GROUP BY attacker\n ) AS b\n ON a.attacker = b.attacker\nWHERE \n $__timeFilter(time) AND\n server = $SERVER_ID AND\n teamkill = true AND\n server = $SERVER_ID\nORDER BY time DESC\nLIMIT 30;",
"refId": "B",
"select": [
[
2021-02-27 18:03:10 -06:00
{
"params": [
2021-03-12 15:43:04 -06:00
"value"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "column"
2021-02-27 18:03:10 -06:00
}
]
2021-03-12 15:43:04 -06:00
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Recent Teamkills",
"transform": "table",
"type": "table-old"
},
{
"aliasColors": {},
"breakPoint": "50%",
"cacheTimeout": null,
"combine": {
"label": "Others",
"threshold": 0
2021-02-27 18:03:10 -06:00
},
2021-03-12 15:43:04 -06:00
"datasource": "MySQL",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
2021-02-27 18:03:10 -06:00
},
2021-03-12 15:43:04 -06:00
"fontSize": "80%",
"format": "short",
"gridPos": {
"h": 9,
"w": 6,
"x": 0,
"y": 56
},
"id": 20,
"interval": null,
"legend": {
"percentage": true,
"show": true,
"values": true
},
"legendType": "Under graph",
"links": [],
"maxDataPoints": 3,
"nullPointMode": "connected",
"pieType": "pie",
"strokeWidth": 1,
"targets": [
{
"alias": "Non-Teamkills",
"format": "time_series",
"group": [
{
"params": [
"$__interval",
"none"
],
"type": "time"
}
],
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"metricColumn": "none",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT \n COUNT(\"victimName\") \nFROM \"DBLog_Wounds\" \nWHERE \n $timeFilter AND\n server = '$SERVER_ID' AND\n teamkill = false",
"rawQuery": true,
"rawSql": "SELECT\n $__timeGroupAlias(time,$__interval),\n count(id) AS \"Non-Teamkill\"\nFROM DBLog_Wounds\nWHERE\n $__timeFilter(time) AND\n teamkill = 0 AND\n server = \"$SERVER_ID\"\nGROUP BY 1\nORDER BY $__timeGroup(time,$__interval)",
"refId": "B",
"resultFormat": "time_series",
"select": [
[
2021-02-27 18:03:10 -06:00
{
"params": [
2021-03-12 15:43:04 -06:00
"id"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "column"
2021-02-27 18:03:10 -06:00
},
{
"params": [
2021-03-12 15:43:04 -06:00
"count"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "aggregate"
2021-02-27 18:03:10 -06:00
},
{
"params": [
2021-03-12 15:43:04 -06:00
"Non-Teamkill"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "alias"
2021-02-27 18:03:10 -06:00
}
]
2021-03-12 15:43:04 -06:00
],
"table": "DBLog_Wounds",
"tags": [],
"timeColumn": "time",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
},
{
"datatype": "tinyint",
"name": "",
"params": [
"teamkill",
"=",
"0"
],
"type": "expression"
}
]
},
{
"alias": "Teamkills",
"format": "time_series",
"group": [
{
"params": [
"$__interval",
"none"
],
"type": "time"
}
],
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"metricColumn": "none",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT \n COUNT(\"victimName\") \nFROM \"DBLog_Wounds\" \nWHERE \n $timeFilter AND\n server = '$SERVER_ID' AND\n teamkill = true",
"rawQuery": true,
"rawSql": "SELECT\n $__timeGroupAlias(time,$__interval),\n count(id) AS \"Teamkill\"\nFROM DBLog_Wounds\nWHERE\n $__timeFilter(time) AND\n teamkill = '1' AND\n server = \"$SERVER_ID\"\nGROUP BY 1\nORDER BY $__timeGroup(time,$__interval)",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
2021-02-27 18:03:10 -06:00
{
"params": [
2021-03-12 15:43:04 -06:00
"id"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "column"
},
2021-02-27 18:03:10 -06:00
{
"params": [
2021-03-12 15:43:04 -06:00
"count"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "aggregate"
2021-02-27 18:03:10 -06:00
},
{
"params": [
2021-03-12 15:43:04 -06:00
"Teamkill"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "alias"
2021-02-27 18:03:10 -06:00
}
2021-03-12 15:43:04 -06:00
]
],
"table": "DBLog_Wounds",
"tags": [],
"timeColumn": "time",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
},
{
"datatype": "tinyint",
"name": "",
"params": [
"teamkill",
"=",
"'1'"
],
"type": "expression"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Non-Teamkills vs Teamkills (Wounds)",
"type": "grafana-piechart-panel",
"valueName": "current"
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "MySQL",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 9,
"w": 18,
"x": 6,
"y": 56
},
"hiddenSeries": false,
"id": 29,
"interval": "2m",
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"percentage": false,
"pluginVersion": "7.1.4",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"alias": "Players Wounded",
"format": "time_series",
"group": [
{
"params": [
"$__interval",
"none"
],
"type": "time"
}
],
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"0"
],
"type": "fill"
}
],
"measurement": "player_wound",
"metricColumn": "none",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT count(\"victimName\") FROM \"DBLog_Wounds\" WHERE $timeFilter AND server = '$SERVER_ID' GROUP BY time($INTERVAL) fill(0)",
"rawQuery": true,
"rawSql": "SELECT\n $__timeGroupAlias(time,$__interval),\n count(id) AS \"All\"\nFROM DBLog_Wounds\nWHERE\n $__timeFilter(time) AND\n server = \"$SERVER_ID\"\nGROUP BY 1\nORDER BY $__timeGroup(time,$__interval)",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"id"
],
"type": "column"
},
{
"params": [
"count"
],
"type": "aggregate"
2021-02-27 18:03:10 -06:00
},
{
"params": [
2021-03-12 15:43:04 -06:00
"All"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "alias"
2021-02-27 18:03:10 -06:00
}
]
2021-03-12 15:43:04 -06:00
],
"table": "DBLog_Wounds",
"tags": [],
"timeColumn": "time",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
2021-02-27 18:03:10 -06:00
},
2021-03-12 15:43:04 -06:00
{
"alias": "Players Wounded By Team 1",
"format": "time_series",
"group": [
{
"params": [
"$__interval",
"none"
],
"type": "time"
}
],
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"0"
],
"type": "fill"
}
],
"measurement": "player_die",
"metricColumn": "none",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT count(\"victimName\") FROM \"DBLog_Wounds\" WHERE $timeFilter AND server = '$SERVER_ID' AND attackerTeamID=1 GROUP BY time($INTERVAL) fill(0)",
"rawQuery": true,
"rawSql": "SELECT\n $__timeGroupAlias(time,$__interval),\n count(id) AS \"Team 1\"\nFROM DBLog_Wounds\nWHERE\n $__timeFilter(time) AND\n attackerTeamID = 1 AND\n server = \"$SERVER_ID\"\nGROUP BY 1\nORDER BY $__timeGroup(time,$__interval)",
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"id"
],
"type": "column"
},
{
"params": [
"count"
],
"type": "aggregate"
},
2021-02-27 18:03:10 -06:00
{
"params": [
2021-03-12 15:43:04 -06:00
"Team 1"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "alias"
2021-02-27 18:03:10 -06:00
}
2021-03-12 15:43:04 -06:00
]
],
"table": "DBLog_Wounds",
"tags": [],
"timeColumn": "time",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
},
{
"datatype": "int",
"name": "",
"params": [
"attackerTeamID",
"=",
"1"
],
"type": "expression"
}
]
},
{
"alias": "Players Wounded By Team 2",
"format": "time_series",
"group": [
{
"params": [
"$__interval",
"none"
],
"type": "time"
}
],
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"0"
],
"type": "fill"
}
],
"measurement": "player_die",
"metricColumn": "none",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT count(\"victimName\") FROM \"DBLog_Wounds\" WHERE $timeFilter AND server = '$SERVER_ID' AND attackerTeamID=2 GROUP BY time($INTERVAL) fill(0)",
"rawQuery": true,
"rawSql": "SELECT\n $__timeGroupAlias(time,$__interval),\n count(id) AS \"Team 2\"\nFROM DBLog_Wounds\nWHERE\n $__timeFilter(time) AND\n attackerTeamID = 2 AND\n server = \"$SERVER_ID\"\nGROUP BY 1\nORDER BY $__timeGroup(time,$__interval)",
"refId": "C",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"id"
],
"type": "column"
},
2021-02-27 18:03:10 -06:00
{
"params": [
2021-03-12 15:43:04 -06:00
"count"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "aggregate"
2021-02-27 18:03:10 -06:00
},
{
"params": [
2021-03-12 15:43:04 -06:00
"Team 2"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "alias"
2021-02-27 18:03:10 -06:00
}
]
2021-03-12 15:43:04 -06:00
],
"table": "DBLog_Wounds",
"tags": [],
"timeColumn": "time",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
},
{
"datatype": "int",
"name": "",
"params": [
"attackerTeamID",
"=",
"2"
],
"type": "expression"
}
]
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Wounds Per Minutes",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"breakPoint": "50%",
"cacheTimeout": null,
"combine": {
"label": "Others",
"threshold": 0
},
"datasource": "MySQL",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "80%",
"format": "short",
"gridPos": {
"h": 9,
"w": 6,
"x": 0,
"y": 65
},
"id": 18,
"interval": null,
"legend": {
"header": "",
"percentage": true,
"show": true,
"sideWidth": null,
"values": true
},
"legendType": "Under graph",
"links": [],
"maxDataPoints": 3,
"nullPointMode": "connected",
"pieType": "pie",
"strokeWidth": 1,
"targets": [
{
"alias": "Deaths",
"format": "time_series",
"group": [
{
"params": [
"$__interval",
"none"
],
"type": "time"
}
],
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "player_die",
"metricColumn": "none",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT \n COUNT(\"victimName\") \nFROM \"DBLog_Deaths\" \nWHERE \n $timeFilter ",
"rawQuery": true,
"rawSql": "SELECT\n $__timeGroupAlias(woundTime,$__interval),\n count(id) AS \"Deaths\"\nFROM DBLog_Deaths\nWHERE\n $__timeFilter(woundTime) AND\n server = \"$SERVER_ID\"\nGROUP BY 1\nORDER BY $__timeGroup(woundTime,$__interval)",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"id"
],
"type": "column"
2021-02-27 18:03:10 -06:00
},
{
"params": [
2021-03-12 15:43:04 -06:00
"count"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "aggregate"
2021-02-27 18:03:10 -06:00
},
{
"params": [
2021-03-12 15:43:04 -06:00
"Deaths"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "alias"
2021-02-27 18:03:10 -06:00
}
]
2021-03-12 15:43:04 -06:00
],
"table": "DBLog_Deaths",
"tags": [],
"timeColumn": "woundTime",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
},
{
"alias": "Revives",
"format": "time_series",
"group": [
{
"params": [
"$__interval",
"none"
],
"type": "time"
}
],
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"metricColumn": "none",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT \n COUNT(\"victimName\") \nFROM \"DBLog_Revives\" \nWHERE \n $timeFilter ",
"rawQuery": true,
"rawSql": "SELECT\n $__timeGroupAlias(woundTime,$__interval),\n count(id) AS \"Revives\"\nFROM DBLog_Revives\nWHERE\n $__timeFilter(woundTime) AND\n server = \"$SERVER_ID\"\nGROUP BY 1\nORDER BY $__timeGroup(woundTime,$__interval)",
"refId": "B",
"resultFormat": "time_series",
"select": [
[
2021-02-27 18:03:10 -06:00
{
"params": [
2021-03-12 15:43:04 -06:00
"id"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "column"
2021-02-27 18:03:10 -06:00
},
{
"params": [
2021-03-12 15:43:04 -06:00
"count"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "aggregate"
2021-02-27 18:03:10 -06:00
},
{
"params": [
2021-03-12 15:43:04 -06:00
"Revives"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "alias"
2021-02-27 18:03:10 -06:00
}
]
2021-03-12 15:43:04 -06:00
],
"table": "DBLog_Revives",
"tags": [],
"timeColumn": "woundTime",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
2021-02-27 18:03:10 -06:00
}
2021-03-12 15:43:04 -06:00
],
"timeFrom": null,
"timeShift": null,
"title": "Deaths vs Revives",
"type": "grafana-piechart-panel",
"valueName": "current"
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "MySQL",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
2021-02-27 18:03:10 -06:00
},
2021-03-12 15:43:04 -06:00
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 9,
"w": 18,
"x": 6,
"y": 65
},
"hiddenSeries": false,
"id": 6,
"interval": "2m",
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"percentage": false,
"pluginVersion": "7.1.4",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"alias": "Players Killed",
"format": "time_series",
"group": [
{
"params": [
"$__interval",
"none"
],
"type": "time"
}
],
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"0"
],
"type": "fill"
}
],
"measurement": "player_wound",
"metricColumn": "none",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT count(\"victimName\") FROM \"DBLog_Deaths\" WHERE $timeFilter AND server = '$SERVER_ID' GROUP BY time($INTERVAL) fill(0)",
"rawQuery": true,
"rawSql": "SELECT\n $__timeGroupAlias(time,$__interval),\n count(id) AS \"All\"\nFROM DBLog_Deaths\nWHERE\n $__timeFilter(time) AND\n server = \"$SERVER_ID\"\nGROUP BY 1\nORDER BY $__timeGroup(time,$__interval)",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"id"
],
"type": "column"
},
2021-02-27 18:03:10 -06:00
{
"params": [
2021-03-12 15:43:04 -06:00
"count"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "aggregate"
2021-02-27 18:03:10 -06:00
},
{
"params": [
2021-03-12 15:43:04 -06:00
"All"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "alias"
2021-02-27 18:03:10 -06:00
}
]
2021-03-12 15:43:04 -06:00
],
"table": "DBLog_Deaths",
"tags": [],
"timeColumn": "time",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
},
{
"alias": "Players Killed By Team 1",
"format": "time_series",
"group": [
{
"params": [
"$__interval",
"none"
],
"type": "time"
}
],
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"0"
],
"type": "fill"
}
],
"measurement": "player_die",
"metricColumn": "none",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT count(\"victimName\") FROM \"DBLog_Deaths\" WHERE $timeFilter AND server = '$SERVER_ID' AND attackerTeamID=1 GROUP BY time($INTERVAL) fill(0)",
"rawQuery": true,
"rawSql": "SELECT\n $__timeGroupAlias(time,$__interval),\n count(id) AS \"Team 1\"\nFROM DBLog_Deaths\nWHERE\n $__timeFilter(time) AND\n attackerTeamID = 1 AND\n server = \"$SERVER_ID\"\nGROUP BY 1\nORDER BY $__timeGroup(time,$__interval)",
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"id"
],
"type": "column"
},
2021-02-27 18:03:10 -06:00
{
"params": [
2021-03-12 15:43:04 -06:00
"count"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "aggregate"
2021-02-27 18:03:10 -06:00
},
{
"params": [
2021-03-12 15:43:04 -06:00
"Team 1"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "alias"
2021-02-27 18:03:10 -06:00
}
]
2021-03-12 15:43:04 -06:00
],
"table": "DBLog_Deaths",
"tags": [],
"timeColumn": "time",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
},
{
"datatype": "int",
"name": "",
"params": [
"attackerTeamID",
"=",
"1"
],
"type": "expression"
}
]
2021-02-27 18:03:10 -06:00
},
2021-03-12 15:43:04 -06:00
{
"alias": "Players Killed By Team 2",
"format": "time_series",
"group": [
{
"params": [
"$__interval",
"none"
],
"type": "time"
}
],
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"0"
],
"type": "fill"
}
],
"measurement": "player_die",
"metricColumn": "none",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT count(\"victimName\") FROM \"DBLog_Deaths\" WHERE $timeFilter AND server = '$SERVER_ID' AND attackerTeamID=2 GROUP BY time($INTERVAL) fill(0)",
"rawQuery": true,
"rawSql": "SELECT\n $__timeGroupAlias(time,$__interval),\n count(id) AS \"Team 2\"\nFROM DBLog_Deaths\nWHERE\n $__timeFilter(time) AND\n attackerTeamID = 2 AND\n server = \"$SERVER_ID\"\nGROUP BY 1\nORDER BY $__timeGroup(time,$__interval)",
"refId": "C",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"id"
],
"type": "column"
},
2021-02-27 18:03:10 -06:00
{
"params": [
2021-03-12 15:43:04 -06:00
"count"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "aggregate"
2021-02-27 18:03:10 -06:00
},
{
"params": [
2021-03-12 15:43:04 -06:00
"Team 2"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "alias"
2021-02-27 18:03:10 -06:00
}
]
2021-03-12 15:43:04 -06:00
],
"table": "DBLog_Deaths",
"tags": [],
"timeColumn": "time",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
},
{
"datatype": "int",
"name": "",
"params": [
"attackerTeamID",
"=",
"2"
],
"type": "expression"
}
]
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Kills Per Minutes",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"breakPoint": "50%",
"cacheTimeout": null,
"combine": {
"label": "Others",
"threshold": 0
},
"datasource": "MySQL",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "80%",
"format": "short",
"gridPos": {
"h": 9,
"w": 6,
"x": 0,
"y": 74
},
"id": 31,
"interval": null,
"legend": {
"percentage": true,
"show": true,
"values": true
},
"legendType": "Under graph",
"links": [],
"maxDataPoints": 3,
"nullPointMode": "connected",
"pieType": "pie",
"strokeWidth": 1,
"targets": [
{
"alias": "Team 1 Kills",
"format": "time_series",
"group": [
{
"params": [
"$__interval",
"none"
],
"type": "time"
}
],
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"metricColumn": "none",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT count(\"victimName\") FROM \"DBLog_Deaths\" WHERE $timeFilter AND server = '$SERVER_ID' AND attackerTeamID=1",
"rawQuery": true,
"rawSql": "SELECT\n $__timeGroupAlias(time,$__interval),\n count(id) AS \"Team 1\"\nFROM DBLog_Wounds\nWHERE\n $__timeFilter(time) AND\n attackerTeamID = 1 AND\n server = \"$SERVER_ID\"\nGROUP BY 1\nORDER BY $__timeGroup(time,$__interval)",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
2021-02-27 18:03:10 -06:00
{
"params": [
2021-03-12 15:43:04 -06:00
"id"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "column"
2021-02-27 18:03:10 -06:00
},
{
"params": [
2021-03-12 15:43:04 -06:00
"count"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "aggregate"
2021-02-27 18:03:10 -06:00
},
{
"params": [
2021-03-12 15:43:04 -06:00
"Team 1"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "alias"
2021-02-27 18:03:10 -06:00
}
]
2021-03-12 15:43:04 -06:00
],
"table": "DBLog_Wounds",
"tags": [],
"timeColumn": "time",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
},
{
"datatype": "int",
"name": "",
"params": [
"attackerTeamID",
"=",
"1"
],
"type": "expression"
}
]
},
{
"alias": "Team 2 Kills",
"format": "time_series",
"group": [
{
"params": [
"$__interval",
"none"
],
"type": "time"
}
],
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"metricColumn": "none",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT count(\"victimName\") FROM \"DBLog_Deaths\" WHERE $timeFilter AND server = '$SERVER_ID' AND attackerTeamID=2",
"rawQuery": true,
"rawSql": "SELECT\n $__timeGroupAlias(time,$__interval),\n count(id) AS \"Team 2\"\nFROM DBLog_Wounds\nWHERE\n $__timeFilter(time) AND\n server = \"$SERVER_ID\"\nGROUP BY 1\nORDER BY $__timeGroup(time,$__interval)",
"refId": "B",
"resultFormat": "time_series",
"select": [
[
2021-02-27 18:03:10 -06:00
{
"params": [
2021-03-12 15:43:04 -06:00
"id"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "column"
2021-02-27 18:03:10 -06:00
},
{
"params": [
2021-03-12 15:43:04 -06:00
"count"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "aggregate"
2021-02-27 18:03:10 -06:00
},
{
"params": [
2021-03-12 15:43:04 -06:00
"Team 2"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "alias"
2021-02-27 18:03:10 -06:00
}
]
2021-03-12 15:43:04 -06:00
],
"table": "DBLog_Wounds",
"tags": [],
"timeColumn": "time",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
2021-02-27 18:03:10 -06:00
}
2021-03-12 15:43:04 -06:00
],
"timeFrom": null,
"timeShift": null,
"title": "Team 1 vs Team 2",
"type": "grafana-piechart-panel",
"valueName": "current"
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "MySQL",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
2021-02-27 18:03:10 -06:00
},
2021-03-12 15:43:04 -06:00
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 9,
"w": 18,
"x": 6,
"y": 74
},
"hiddenSeries": false,
"id": 8,
"interval": "2m",
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"percentage": false,
"pluginVersion": "7.1.4",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"alias": "Revives",
"format": "time_series",
"group": [
{
"params": [
"$__interval",
"none"
],
"type": "time"
}
],
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"0"
],
"type": "fill"
}
],
"measurement": "revive",
"metricColumn": "none",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT count(\"victimName\") FROM \"DBLog_Revives\" WHERE $timeFilter AND server = '$SERVER_ID' GROUP BY time($INTERVAL) fill(0)",
"rawQuery": true,
"rawSql": "SELECT\n $__timeGroupAlias(time,$__interval),\n count(id) AS \"All\"\nFROM DBLog_Revives\nWHERE\n $__timeFilter(time) AND\n server = \"$SERVER_ID\"\nGROUP BY 1\nORDER BY $__timeGroup(time,$__interval)",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"id"
],
"type": "column"
2021-02-27 18:03:10 -06:00
},
{
"params": [
2021-03-12 15:43:04 -06:00
"count"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "aggregate"
2021-02-27 18:03:10 -06:00
},
{
"params": [
2021-03-12 15:43:04 -06:00
"All"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "alias"
2021-02-27 18:03:10 -06:00
}
]
2021-03-12 15:43:04 -06:00
],
"table": "DBLog_Revives",
"tags": [],
"timeColumn": "time",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
},
{
"alias": "Revives",
"format": "time_series",
"group": [
{
"params": [
"$__interval",
"none"
],
"type": "time"
}
],
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"0"
],
"type": "fill"
}
],
"measurement": "revive",
"metricColumn": "none",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT count(\"victimName\") FROM \"DBLog_Revives\" WHERE $timeFilter AND server = '$SERVER_ID' AND reviverTeamID = 1 GROUP BY time($INTERVAL) fill(0)",
"rawQuery": true,
"rawSql": "SELECT\n $__timeGroupAlias(time,$__interval),\n count(id) AS \"Team 1\"\nFROM DBLog_Revives\nWHERE\n $__timeFilter(time) AND\n victimTeamID = 1 AND\n server = \"$SERVER_ID\"\nGROUP BY 1\nORDER BY $__timeGroup(time,$__interval)",
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"id"
],
"type": "column"
},
2021-02-27 18:03:10 -06:00
{
"params": [
2021-03-12 15:43:04 -06:00
"count"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "aggregate"
2021-02-27 18:03:10 -06:00
},
{
"params": [
2021-03-12 15:43:04 -06:00
"Team 1"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "alias"
2021-02-27 18:03:10 -06:00
}
]
2021-03-12 15:43:04 -06:00
],
"table": "DBLog_Revives",
"tags": [],
"timeColumn": "time",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
},
{
"datatype": "int",
"name": "",
"params": [
"victimTeamID",
"=",
"1"
],
"type": "expression"
}
]
2021-02-27 18:03:10 -06:00
},
2021-03-12 15:43:04 -06:00
{
"alias": "Revives",
"format": "time_series",
"group": [
{
"params": [
"$__interval",
"none"
],
"type": "time"
}
],
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"0"
],
"type": "fill"
}
],
"measurement": "revive",
"metricColumn": "none",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT count(\"victimName\") FROM \"DBLog_Revives\" WHERE $timeFilter AND server = '$SERVER_ID' AND reviverTeamID = 2 GROUP BY time($INTERVAL) fill(0)",
"rawQuery": true,
"rawSql": "SELECT\n $__timeGroupAlias(time,$__interval),\n count(id) AS \"Team 2\"\nFROM DBLog_Revives\nWHERE\n $__timeFilter(time) AND\n victimTeamID = 2 AND\n server = \"$SERVER_ID\"\nGROUP BY 1\nORDER BY $__timeGroup(time,$__interval)",
"refId": "C",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"id"
],
"type": "column"
},
2021-02-27 18:03:10 -06:00
{
"params": [
2021-03-12 15:43:04 -06:00
"count"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "aggregate"
2021-02-27 18:03:10 -06:00
},
{
"params": [
2021-03-12 15:43:04 -06:00
"Team 2"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "alias"
2021-02-27 18:03:10 -06:00
}
]
2021-03-12 15:43:04 -06:00
],
"table": "DBLog_Revives",
"tags": [],
"timeColumn": "time",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
},
{
"datatype": "int",
"name": "",
"params": [
"victimTeamID",
"=",
"2"
],
"type": "expression"
}
]
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Revives Per Minutes",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"columns": [],
"datasource": "MySQL",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "100%",
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 83
},
"id": 22,
"pageSize": null,
"showHeader": true,
"sort": {
"col": 2,
"desc": true
},
"styles": [
{
"alias": "Time",
"align": "auto",
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"pattern": "Time",
"type": "date"
},
{
"alias": "",
"align": "auto",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"decimals": 2,
"pattern": "/.*/",
"thresholds": [],
"type": "number",
"unit": "short"
}
],
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n layerClassname as \"Layer\",\n startTime AS \"Start Time\",\n endTime AS \"End Time\"\nFROM `DBLog_Matches`\nWHERE \n (\n $__timeFilter(startTime) OR \n $__timeFilter(endTime) OR\n endTime IS NULL\n ) AND \n server = $SERVER_ID \nORDER BY startTime DESC;",
"refId": "A",
"select": [
[
2021-02-27 18:03:10 -06:00
{
"params": [
2021-03-12 15:43:04 -06:00
"value"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "column"
2021-02-27 18:03:10 -06:00
}
2021-03-12 15:43:04 -06:00
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Matches",
"transform": "table",
"type": "table-old"
},
{
"aliasColors": {},
"breakPoint": "50%",
"cacheTimeout": null,
"combine": {
"label": "Others",
"threshold": 0
},
"datasource": "MySQL",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "80%",
"format": "short",
"gridPos": {
"h": 8,
"w": 6,
"x": 12,
"y": 83
},
"id": 25,
"interval": null,
"legend": {
"percentage": true,
"show": true,
"sort": "current",
"sortDesc": true,
"values": true
},
"legendType": "Under graph",
"links": [],
"maxDataPoints": 3,
"nullPointMode": "connected",
"pieType": "pie",
"strokeWidth": 1,
"targets": [
{
"format": "time_series",
"group": [],
"metricColumn": "layer",
"rawQuery": true,
"rawSql": "SELECT\n layerClassname AS metric,\n COUNT(*),\n startTime AS time\nFROM `DBLog_Matches`\nWHERE\n (\n $__timeFilter(startTime) OR \n $__timeFilter(endTime) OR\n endTime IS NULL\n ) AND \n server = $SERVER_ID \nGROUP BY layerClassname",
"refId": "A",
"select": [
[
2021-02-27 18:03:10 -06:00
{
"params": [
2021-03-12 15:43:04 -06:00
"id"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "column"
}
]
],
"table": "game",
"timeColumn": "startTime",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Layers",
"type": "grafana-piechart-panel",
"valueName": "current"
},
{
"aliasColors": {},
"breakPoint": "50%",
"cacheTimeout": null,
"combine": {
"label": "Others",
"threshold": 0
},
"datasource": "MySQL",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "80%",
"format": "short",
"gridPos": {
"h": 8,
"w": 6,
"x": 18,
"y": 83
},
"id": 24,
"interval": null,
"legend": {
"percentage": true,
"show": true,
"values": true
},
"legendType": "Under graph",
"links": [],
"maxDataPoints": 3,
"nullPointMode": "connected",
"pieType": "pie",
"strokeWidth": 1,
"targets": [
{
"format": "time_series",
"group": [],
"metricColumn": "layer",
"rawQuery": true,
"rawSql": "SELECT\n mapClassname AS metric,\n COUNT(*),\n startTime AS time\nFROM `DBLog_Matches`\nWHERE\n (\n $__timeFilter(startTime) OR \n $__timeFilter(endTime) OR\n endTime IS NULL\n ) AND \n server = $SERVER_ID \nGROUP BY mapClassname",
"refId": "A",
"select": [
[
2021-02-27 18:03:10 -06:00
{
"params": [
2021-03-12 15:43:04 -06:00
"id"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "column"
2021-02-27 18:03:10 -06:00
}
2021-03-12 15:43:04 -06:00
]
],
"table": "game",
"timeColumn": "startTime",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Maps",
"type": "grafana-piechart-panel",
"valueName": "current"
},
{
"aliasColors": {},
"breakPoint": "50%",
"cacheTimeout": null,
"combine": {
"label": "Others",
"threshold": "0.01"
},
"datasource": "MySQL",
"fieldConfig": {
"defaults": {
"custom": {
"align": null
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
2021-02-27 18:03:10 -06:00
},
{
2021-03-12 15:43:04 -06:00
"color": "red",
"value": 80
2021-02-27 18:03:10 -06:00
}
]
2021-03-12 15:43:04 -06:00
}
},
"overrides": []
},
"fontSize": "80%",
"format": "short",
"gridPos": {
"h": 10,
"w": 12,
"x": 0,
"y": 91
},
"id": 33,
"interval": null,
"legend": {
"percentage": true,
"show": true,
"values": true
},
"legendType": "Right side",
"links": [],
"maxDataPoints": 3,
"nullPointMode": "connected",
"pieType": "pie",
"pluginVersion": "7.1.0",
"strokeWidth": 1,
"targets": [
{
"alias": "Non-Teamkills",
"format": "time_series",
"group": [
{
"params": [
"$__interval",
"none"
],
"type": "time"
}
],
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"metricColumn": "weapon",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT \n COUNT(\"victimName\") \nFROM \"DBLog_Wounds\" \nWHERE \n $timeFilter AND\n server = '$SERVER_ID' AND\n teamkill = false",
"rawQuery": true,
"rawSql": "SELECT\n $__timeGroupAlias(time,$__interval),\n weapon AS metric,\n count(id) AS \"Wounds\"\nFROM DBLog_Wounds\nWHERE\n $__timeFilter(time) AND\n server = \"$SERVER_ID\"\nGROUP BY 2\nORDER BY count(id) DESC",
"refId": "B",
"resultFormat": "time_series",
"select": [
[
2021-02-27 18:03:10 -06:00
{
"params": [
2021-03-12 15:43:04 -06:00
"id"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "column"
},
2021-02-27 18:03:10 -06:00
{
"params": [
2021-03-12 15:43:04 -06:00
"count"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "aggregate"
2021-02-27 18:03:10 -06:00
},
{
"params": [
2021-03-12 15:43:04 -06:00
"Wounds"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "alias"
2021-02-27 18:03:10 -06:00
}
2021-03-12 15:43:04 -06:00
]
],
"table": "DBLog_Wounds",
"tags": [],
"timeColumn": "time",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Weapons",
"type": "grafana-piechart-panel",
"valueName": "current"
},
{
"columnAliases": [],
"columnFiltersEnabled": false,
"columnWidthHints": [],
"columns": [],
"compactRowsEnabled": false,
"datasource": "MySQL",
"datatablePagingType": "simple_numbers",
"datatableTheme": "basic_theme",
"description": "",
"emptyData": false,
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "100%",
"gridPos": {
"h": 10,
"w": 12,
"x": 12,
"y": 91
},
"hoverEnabled": true,
"id": 36,
"infoEnabled": true,
"lengthChangeEnabled": true,
"orderColumnEnabled": true,
"pagingTypes": [
{
"$$hashKey": "object:227",
"text": "Page number buttons only",
"value": "numbers"
},
{
"$$hashKey": "object:228",
"text": "'Previous' and 'Next' buttons only",
"value": "simple"
},
{
"$$hashKey": "object:229",
"text": "'Previous' and 'Next' buttons, plus page numbers",
"value": "simple_numbers"
},
{
"$$hashKey": "object:230",
"text": "'First', 'Previous', 'Next' and 'Last' buttons",
"value": "full"
},
{
"$$hashKey": "object:231",
"text": "'First', 'Previous', 'Next' and 'Last' buttons, plus page numbers",
"value": "full_numbers"
},
{
"$$hashKey": "object:232",
"text": "'First' and 'Last' buttons, plus page numbers",
"value": "first_last_numbers"
}
],
"panelHeight": null,
"pluginVersion": "7.1.1",
"rowNumbersEnabled": false,
"rowsPerPage": 20,
"scroll": true,
"scrollHeight": "default",
"searchEnabled": true,
"showCellBorders": false,
"showHeader": true,
"showRowBorders": true,
"sort": {
"col": 0,
"desc": true
},
"sortByColumns": [
{
"columnData": "Kills",
"sortMethod": "desc"
}
],
"sortByColumnsData": [
[
3,
"desc"
]
],
"stripedRowsEnabled": true,
"styles": [
{
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"pattern": "Time",
"type": "date"
},
{
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"decimals": 2,
"pattern": "/.*/",
"splitPattern": "/ /",
"thresholds": [],
"type": "string",
"unit": "short"
}
],
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT DISTINCTROW\n layer,\n NTH_VALUE(LW.winner, 1) OVER (PARTITION BY LW.layer) AS \"Most Frequent Winner\",\n NTH_VALUE(LW.wins, 1) OVER (PARTITION BY LW.layer) AS \"Most Frequent Winner Wins\",\n (NTH_VALUE(LW.wins, 1) OVER (PARTITION BY LW.layer) / (NTH_VALUE(LW.wins, 1) OVER (PARTITION BY LW.layer) + NTH_VALUE(LW.wins, 2) OVER (PARTITION BY LW.layer))) * 100 AS \"Most Frequent Winner Win Percentage\",\n NTH_VALUE(LW.winner, 2) OVER (PARTITION BY LW.layer) AS \"Least Frequent Winner\",\n NTH_VALUE(LW.wins, 2) OVER (PARTITION BY LW.layer) AS \"Least Frequent Winner Count\",\n (NTH_VALUE(LW.wins, 2) OVER (PARTITION BY LW.layer) / (NTH_VALUE(LW.wins, 1) OVER (PARTITION BY LW.layer) + NTH_VALUE(LW.wins, 2) OVER (PARTITION BY LW.layer))) * 100 AS \"Least Frequent Winner Win Percentage\"\nFROM (\n SELECT\n M.layer,\n M.winner,\n COUNT(*) AS \"wins\"\n FROM dblog_matches M\n WHERE\n M.layer IS NOT NULL AND\n M.winner IS NOT NULL\n GROUP BY M.layer, M.winner\n ORDER BY wins DESC\n) LW;\n",
"refId": "A",
"select": [
[
2021-02-27 18:03:10 -06:00
{
"params": [
2021-03-12 15:43:04 -06:00
"id"
2021-02-27 18:03:10 -06:00
],
2021-03-12 15:43:04 -06:00
"type": "column"
2021-02-27 18:03:10 -06:00
}
]
2021-03-12 15:43:04 -06:00
],
"table": "DBLog_TickRates",
"timeColumn": "time",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"themeOptions": {
"dark": "./styles/dark.scss",
"light": "./styles/light.scss"
},
"themes": [
{
"$$hashKey": "object:208",
"disabled": false,
"text": "Basic",
"value": "basic_theme"
},
{
"$$hashKey": "object:209",
"disabled": true,
"text": "Bootstrap",
"value": "bootstrap_theme"
},
{
"$$hashKey": "object:210",
"disabled": true,
"text": "Foundation",
"value": "foundation_theme"
},
{
"$$hashKey": "object:211",
"disabled": true,
"text": "ThemeRoller",
"value": "themeroller_theme"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Matches - Win/Loss Comparison",
"transform": "table",
"type": "briangann-datatable-panel"
}
],
"refresh": false,
"schemaVersion": 26,
"style": "dark",
"tags": [],
"templating": {
"list": [
{
"allValue": null,
"current": {
"selected": true,
"text": "1",
"value": "1"
},
"hide": 0,
"includeAll": false,
"label": "Server",
"multi": false,
"name": "SERVER_ID",
"options": [
2021-02-27 18:03:10 -06:00
{
2021-03-12 15:43:04 -06:00
"selected": true,
"text": "1",
"value": "1"
2021-02-27 18:03:10 -06:00
},
{
2021-03-12 15:43:04 -06:00
"selected": false,
"text": "2",
"value": "2"
2021-02-27 18:03:10 -06:00
}
],
2021-03-12 15:43:04 -06:00
"query": "1,2",
"queryValue": "",
"skipUrlSync": false,
"type": "custom"
2021-02-27 18:03:10 -06:00
},
{
2021-03-12 15:43:04 -06:00
"auto": false,
"auto_count": 30,
"auto_min": "10s",
"current": {
"selected": false,
"text": "1m",
"value": "1m"
},
"hide": 0,
"label": "Interval",
"name": "INTERVAL",
"options": [
{
"selected": true,
"text": "1m",
"value": "1m"
2021-02-27 18:03:10 -06:00
},
{
2021-03-12 15:43:04 -06:00
"selected": false,
"text": "2m",
"value": "2m"
2021-02-27 18:03:10 -06:00
},
{
2021-03-12 15:43:04 -06:00
"selected": false,
"text": "3m",
"value": "3m"
},
2021-02-27 18:03:10 -06:00
{
2021-03-12 15:43:04 -06:00
"selected": false,
"text": "4m",
"value": "4m"
2021-02-27 18:03:10 -06:00
},
{
2021-03-12 15:43:04 -06:00
"selected": false,
"text": "5m",
"value": "5m"
2021-02-27 18:03:10 -06:00
},
{
2021-03-12 15:43:04 -06:00
"selected": false,
"text": "10m",
"value": "10m"
2021-02-27 18:03:10 -06:00
},
{
2021-03-12 15:43:04 -06:00
"selected": false,
"text": "20m",
"value": "20m"
},
{
"selected": false,
"text": "30m",
"value": "30m"
2021-02-27 18:03:10 -06:00
}
],
2021-03-12 15:43:04 -06:00
"query": "1m,2m,3m,4m,5m,10m,20m,30m",
"refresh": 2,
"skipUrlSync": false,
"type": "interval"
2021-02-27 18:03:10 -06:00
}
2021-03-12 15:43:04 -06:00
]
},
"time": {
"from": "now-3h",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "Server Overview",
"uid": "n7Xl7jEWx",
"version": 13
}