grafana-dashboards/Leaderboards.json

348 lines
8.4 KiB
JSON
Raw Normal View History

2023-05-02 11:17:43 -05:00
{
"__inputs": [
{
"name": "DS_MYSQL",
"label": "MySQL",
"description": "",
"type": "datasource",
"pluginId": "mysql",
"pluginName": "MySQL"
}
],
"__elements": {},
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "9.4.7"
},
{
"type": "datasource",
"id": "mysql",
"name": "MySQL",
"version": "1.0.0"
},
{
"type": "panel",
"id": "table",
"name": "Table",
"version": ""
}
],
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": null,
"links": [],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "mysql",
"uid": "${DS_MYSQL}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto"
},
"filterable": false,
"inspect": false,
"width": 150
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Player"
},
"properties": [
{
"id": "custom.filterable",
"value": true
},
{
"id": "custom.width",
"value": 265
}
]
},
{
"matcher": {
"id": "byName",
"options": "steamID"
},
"properties": [
{
"id": "custom.width",
"value": 162
}
]
}
]
},
"gridPos": {
"h": 23,
"w": 9,
"x": 0,
"y": 0
},
"id": 2,
"options": {
"footer": {
"countRows": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true,
"sortBy": []
},
"pluginVersion": "9.4.7",
"targets": [
{
"datasource": {
"type": "mysql",
"uid": "${DS_MYSQL}"
},
"editorMode": "code",
"format": "table",
"rawQuery": true,
"rawSql": "select\r\n lastName as Player,\r\n teamkills as 'Team Kills'\r\nfrom\r\n (\r\n select\r\n attacker as steamid,\r\n count(*) as teamkills\r\n from\r\n DBLog_Wounds\r\n join DBLog_Matches DLM on DBLog_Wounds.`match` = DLM.id\r\n where\r\n mapClassname not regexp \"Jensens_Range\"\r\n ${seed:value}\r\n and attacker != DBLog_Wounds.victim\r\n and teamkill = 1\r\n and DBLog_Wounds.server != 3\r\n group by\r\n attacker\r\n ) as tks\r\n join DBLog_SteamUsers DLSU on tks.steamid = DLSU.steamID\r\norder by\r\n `Team Kills` desc",
"refId": "A",
"sql": {
"columns": [
{
"parameters": [],
"type": "function"
}
],
"groupBy": [
{
"property": {
"type": "string"
},
"type": "groupBy"
}
],
"limit": 50
}
}
],
"title": "Team Kills",
"type": "table"
},
{
"datasource": {
"type": "mysql",
"uid": "${DS_MYSQL}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto"
},
"filterable": false,
"inspect": false,
"width": 150
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Player"
},
"properties": [
{
"id": "custom.filterable",
"value": true
},
{
"id": "custom.width",
"value": 272
}
]
},
{
"matcher": {
"id": "byName",
"options": "steamID"
},
"properties": [
{
"id": "custom.width",
"value": 158
}
]
}
]
},
"gridPos": {
"h": 23,
"w": 9,
"x": 9,
"y": 0
},
"id": 3,
"options": {
"footer": {
"countRows": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true,
"sortBy": []
},
"pluginVersion": "9.4.7",
"targets": [
{
"datasource": {
"type": "mysql",
"uid": "${DS_MYSQL}"
},
"editorMode": "code",
"format": "table",
"rawQuery": true,
"rawSql": "select\r\n lastName as Player,\r\n kills as 'Kills'\r\nfrom\r\n (\r\n select\r\n attacker as steamid,\r\n count(*) as kills\r\n from\r\n DBLog_Deaths\r\n join DBLog_Matches DLM on DBLog_Deaths.`match` = DLM.id\r\n where\r\n mapClassname not regexp \"Jensens_Range\"\r\n ${seed:value}\r\n and attacker != DBLog_Deaths.victim\r\n and teamkill = 0\r\n and DBLog_Deaths.server != 3\r\n group by\r\n attacker\r\n ) as tks\r\n join DBLog_SteamUsers DLSU on tks.steamid = DLSU.steamID\r\norder by\r\n `Kills` desc",
"refId": "A",
"sql": {
"columns": [
{
"parameters": [],
"type": "function"
}
],
"groupBy": [
{
"property": {
"type": "string"
},
"type": "groupBy"
}
],
"limit": 50
}
}
],
"title": "Kills",
"type": "table"
}
],
"refresh": "",
"revision": 1,
"schemaVersion": 38,
"style": "dark",
"tags": [],
"templating": {
"list": [
{
"current": {
"selected": true,
"text": "no",
"value": "and layerClassname not regexp '_Seed_'"
},
"hide": 0,
"includeAll": false,
"label": "Include Seeding",
"multi": false,
"name": "seed",
"options": [
{
"selected": true,
"text": "no",
"value": "and layerClassname not regexp '_Seed_'"
},
{
"selected": false,
"text": "yes",
"value": "and layerClassname is not null"
}
],
"query": "no : and layerClassname not regexp '_Seed_', yes : and layerClassname is not null",
"queryValue": "",
"skipUrlSync": false,
"type": "custom"
}
]
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {
"hidden": true
},
"timezone": "",
"title": "Leaderboards",
"uid": "2n6lw-1Vz",
"version": 15,
"weekStart": ""
}