mirror of
https://github.com/AsgardEternal/grafana-dashboards.git
synced 2024-12-30 14:09:15 -06:00
441 lines
10 KiB
JSON
441 lines
10 KiB
JSON
|
{
|
||
|
"__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"
|
||
|
},
|
||
|
"inspect": false
|
||
|
},
|
||
|
"mappings": [],
|
||
|
"thresholds": {
|
||
|
"mode": "absolute",
|
||
|
"steps": [
|
||
|
{
|
||
|
"color": "green",
|
||
|
"value": null
|
||
|
},
|
||
|
{
|
||
|
"color": "red",
|
||
|
"value": 80
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"overrides": []
|
||
|
},
|
||
|
"gridPos": {
|
||
|
"h": 7,
|
||
|
"w": 12,
|
||
|
"x": 0,
|
||
|
"y": 0
|
||
|
},
|
||
|
"id": 5,
|
||
|
"options": {
|
||
|
"footer": {
|
||
|
"countRows": false,
|
||
|
"fields": "",
|
||
|
"reducer": [
|
||
|
"sum"
|
||
|
],
|
||
|
"show": false
|
||
|
},
|
||
|
"showHeader": true
|
||
|
},
|
||
|
"pluginVersion": "9.4.7",
|
||
|
"targets": [
|
||
|
{
|
||
|
"datasource": {
|
||
|
"type": "mysql",
|
||
|
"uid": "${DS_MYSQL}"
|
||
|
},
|
||
|
"editorMode": "code",
|
||
|
"format": "table",
|
||
|
"rawQuery": true,
|
||
|
"rawSql": "SELECT lastName as 'Player',\r\n player as 'Steam ID',\r\n startTime as 'Logged on at'\r\nFROM DBLog_PlayerTimes JOIN DBLog_SteamUsers on (DBLog_PlayerTimes.player = DBLog_SteamUsers.steamID)\r\nWHERE endTime is null and\r\n startTime is not null and\r\n player is not null and\r\n lastName regexp '\\\\{ASG[a,o]\\\\}.*' and\r\n server=1",
|
||
|
"refId": "A",
|
||
|
"sql": {
|
||
|
"columns": [
|
||
|
{
|
||
|
"parameters": [],
|
||
|
"type": "function"
|
||
|
}
|
||
|
],
|
||
|
"groupBy": [
|
||
|
{
|
||
|
"property": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"type": "groupBy"
|
||
|
}
|
||
|
],
|
||
|
"limit": 50
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"title": "Admins Online",
|
||
|
"type": "table"
|
||
|
},
|
||
|
{
|
||
|
"datasource": {
|
||
|
"type": "mysql",
|
||
|
"uid": "${DS_MYSQL}"
|
||
|
},
|
||
|
"fieldConfig": {
|
||
|
"defaults": {
|
||
|
"color": {
|
||
|
"mode": "thresholds"
|
||
|
},
|
||
|
"custom": {
|
||
|
"align": "auto",
|
||
|
"cellOptions": {
|
||
|
"type": "auto"
|
||
|
},
|
||
|
"inspect": false
|
||
|
},
|
||
|
"mappings": [],
|
||
|
"thresholds": {
|
||
|
"mode": "absolute",
|
||
|
"steps": [
|
||
|
{
|
||
|
"color": "green",
|
||
|
"value": null
|
||
|
},
|
||
|
{
|
||
|
"color": "red",
|
||
|
"value": 80
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"overrides": []
|
||
|
},
|
||
|
"gridPos": {
|
||
|
"h": 7,
|
||
|
"w": 12,
|
||
|
"x": 12,
|
||
|
"y": 0
|
||
|
},
|
||
|
"id": 6,
|
||
|
"options": {
|
||
|
"footer": {
|
||
|
"countRows": false,
|
||
|
"fields": "",
|
||
|
"reducer": [
|
||
|
"sum"
|
||
|
],
|
||
|
"show": false
|
||
|
},
|
||
|
"showHeader": true
|
||
|
},
|
||
|
"pluginVersion": "9.4.7",
|
||
|
"targets": [
|
||
|
{
|
||
|
"datasource": {
|
||
|
"type": "mysql",
|
||
|
"uid": "${DS_MYSQL}"
|
||
|
},
|
||
|
"editorMode": "code",
|
||
|
"format": "table",
|
||
|
"rawQuery": true,
|
||
|
"rawSql": "SELECT lastName as 'Player',\r\n player as 'Steam ID',\r\n startTime as 'Logged on at'\r\nFROM DBLog_PlayerTimes JOIN DBLog_SteamUsers on (DBLog_PlayerTimes.player = DBLog_SteamUsers.steamID)\r\nWHERE endTime is null and\r\n startTime is not null and\r\n player is not null and\r\n lastName regexp '\\\\{ASG[a,o]\\\\}.*' and\r\n server=2",
|
||
|
"refId": "A",
|
||
|
"sql": {
|
||
|
"columns": [
|
||
|
{
|
||
|
"parameters": [],
|
||
|
"type": "function"
|
||
|
}
|
||
|
],
|
||
|
"groupBy": [
|
||
|
{
|
||
|
"property": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"type": "groupBy"
|
||
|
}
|
||
|
],
|
||
|
"limit": 50
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"title": "Admins Online",
|
||
|
"type": "table"
|
||
|
},
|
||
|
{
|
||
|
"datasource": {
|
||
|
"type": "mysql",
|
||
|
"uid": "${DS_MYSQL}"
|
||
|
},
|
||
|
"fieldConfig": {
|
||
|
"defaults": {
|
||
|
"color": {
|
||
|
"mode": "thresholds"
|
||
|
},
|
||
|
"custom": {
|
||
|
"align": "auto",
|
||
|
"cellOptions": {
|
||
|
"type": "auto"
|
||
|
},
|
||
|
"inspect": false
|
||
|
},
|
||
|
"mappings": [],
|
||
|
"thresholds": {
|
||
|
"mode": "absolute",
|
||
|
"steps": [
|
||
|
{
|
||
|
"color": "green",
|
||
|
"value": null
|
||
|
},
|
||
|
{
|
||
|
"color": "red",
|
||
|
"value": 80
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"overrides": []
|
||
|
},
|
||
|
"gridPos": {
|
||
|
"h": 15,
|
||
|
"w": 12,
|
||
|
"x": 0,
|
||
|
"y": 7
|
||
|
},
|
||
|
"id": 2,
|
||
|
"options": {
|
||
|
"footer": {
|
||
|
"countRows": false,
|
||
|
"enablePagination": false,
|
||
|
"fields": "",
|
||
|
"reducer": [
|
||
|
"sum"
|
||
|
],
|
||
|
"show": false
|
||
|
},
|
||
|
"showHeader": true
|
||
|
},
|
||
|
"pluginVersion": "9.4.7",
|
||
|
"targets": [
|
||
|
{
|
||
|
"datasource": {
|
||
|
"type": "mysql",
|
||
|
"uid": "${DS_MYSQL}"
|
||
|
},
|
||
|
"editorMode": "code",
|
||
|
"format": "table",
|
||
|
"rawQuery": true,
|
||
|
"rawSql": "SELECT lastName as 'Player',\n player as 'Steam ID',\n startTime as 'Logged on at'\nFROM DBLog_PlayerTimes JOIN DBLog_SteamUsers on (DBLog_PlayerTimes.player = DBLog_SteamUsers.steamID)\nWHERE endTime is null and\n startTime is not null and\n player is not null and\n server=1",
|
||
|
"refId": "A",
|
||
|
"sql": {
|
||
|
"columns": [
|
||
|
{
|
||
|
"parameters": [],
|
||
|
"type": "function"
|
||
|
}
|
||
|
],
|
||
|
"groupBy": [
|
||
|
{
|
||
|
"property": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"type": "groupBy"
|
||
|
}
|
||
|
],
|
||
|
"limit": 50
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"title": "Vanilla Players Online",
|
||
|
"type": "table"
|
||
|
},
|
||
|
{
|
||
|
"datasource": {
|
||
|
"type": "mysql",
|
||
|
"uid": "${DS_MYSQL}"
|
||
|
},
|
||
|
"fieldConfig": {
|
||
|
"defaults": {
|
||
|
"color": {
|
||
|
"mode": "thresholds"
|
||
|
},
|
||
|
"custom": {
|
||
|
"align": "auto",
|
||
|
"cellOptions": {
|
||
|
"type": "auto"
|
||
|
},
|
||
|
"inspect": false
|
||
|
},
|
||
|
"mappings": [],
|
||
|
"thresholds": {
|
||
|
"mode": "absolute",
|
||
|
"steps": [
|
||
|
{
|
||
|
"color": "green",
|
||
|
"value": null
|
||
|
},
|
||
|
{
|
||
|
"color": "red",
|
||
|
"value": 80
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"overrides": []
|
||
|
},
|
||
|
"gridPos": {
|
||
|
"h": 15,
|
||
|
"w": 12,
|
||
|
"x": 12,
|
||
|
"y": 7
|
||
|
},
|
||
|
"id": 3,
|
||
|
"options": {
|
||
|
"footer": {
|
||
|
"countRows": false,
|
||
|
"enablePagination": false,
|
||
|
"fields": "",
|
||
|
"reducer": [
|
||
|
"sum"
|
||
|
],
|
||
|
"show": false
|
||
|
},
|
||
|
"showHeader": true
|
||
|
},
|
||
|
"pluginVersion": "9.4.7",
|
||
|
"targets": [
|
||
|
{
|
||
|
"datasource": {
|
||
|
"type": "mysql",
|
||
|
"uid": "${DS_MYSQL}"
|
||
|
},
|
||
|
"editorMode": "code",
|
||
|
"format": "table",
|
||
|
"rawQuery": true,
|
||
|
"rawSql": "SELECT lastName as 'Player',\n player as 'Steam ID',\n startTime as 'Logged on at'\nFROM DBLog_PlayerTimes JOIN DBLog_SteamUsers on (DBLog_PlayerTimes.player = DBLog_SteamUsers.steamID)\nWHERE endTime is null and\n startTime is not null and\n player is not null and\n server=2",
|
||
|
"refId": "A",
|
||
|
"sql": {
|
||
|
"columns": [
|
||
|
{
|
||
|
"parameters": [],
|
||
|
"type": "function"
|
||
|
}
|
||
|
],
|
||
|
"groupBy": [
|
||
|
{
|
||
|
"property": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"type": "groupBy"
|
||
|
}
|
||
|
],
|
||
|
"limit": 50
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"title": "MEE Players Online",
|
||
|
"type": "table"
|
||
|
}
|
||
|
],
|
||
|
"refresh": "10s",
|
||
|
"revision": 1,
|
||
|
"schemaVersion": 38,
|
||
|
"style": "dark",
|
||
|
"tags": [],
|
||
|
"templating": {
|
||
|
"list": []
|
||
|
},
|
||
|
"time": {
|
||
|
"from": "now-6h",
|
||
|
"to": "now"
|
||
|
},
|
||
|
"timepicker": {
|
||
|
"hidden": true,
|
||
|
"refresh_intervals": [
|
||
|
"5s",
|
||
|
"10s",
|
||
|
"30s",
|
||
|
"1m",
|
||
|
"5m",
|
||
|
"15m",
|
||
|
"30m",
|
||
|
"1h",
|
||
|
"2h",
|
||
|
"1d"
|
||
|
]
|
||
|
},
|
||
|
"timezone": "",
|
||
|
"title": "Players Online",
|
||
|
"uid": "8Ah5SvJVz",
|
||
|
"version": 15,
|
||
|
"weekStart": ""
|
||
|
}
|