89 lines
No EOL
2.6 KiB
JSON
89 lines
No EOL
2.6 KiB
JSON
{
|
|
"id": null,
|
|
"uid": "dereth-tracker",
|
|
"title": "Dereth Tracker Dashboard",
|
|
"schemaVersion": 30,
|
|
"version": 1,
|
|
"refresh": "30s",
|
|
"time": {
|
|
"from": "now-24h",
|
|
"to": "now"
|
|
},
|
|
"panels": [
|
|
{
|
|
"type": "timeseries",
|
|
"title": "Kills per Hour",
|
|
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 },
|
|
"id": 1,
|
|
"fieldConfig": { "defaults": {}, "overrides": [] },
|
|
"targets": [
|
|
{
|
|
"refId": "A",
|
|
"format": "time_series",
|
|
"datasource": { "uid": "dereth-db" },
|
|
"rawSql": "SELECT $__time(timestamp), kills_per_hour AS value FROM telemetry_events WHERE character_name = '$character' AND $__timeFilter(timestamp) ORDER BY timestamp"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "timeseries",
|
|
"title": "Memory (MB)",
|
|
"gridPos": { "h": 8, "w": 6, "x": 0, "y": 8 },
|
|
"id": 2,
|
|
"fieldConfig": { "defaults": {}, "overrides": [] },
|
|
"targets": [
|
|
{
|
|
"refId": "A",
|
|
"format": "time_series",
|
|
"datasource": { "uid": "dereth-db" },
|
|
"rawSql": "SELECT $__time(timestamp), mem_mb AS value FROM telemetry_events WHERE character_name = '$character' AND $__timeFilter(timestamp) ORDER BY timestamp"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "timeseries",
|
|
"title": "CPU (%)",
|
|
"gridPos": { "h": 8, "w": 6, "x": 6, "y": 8 },
|
|
"id": 3,
|
|
"fieldConfig": { "defaults": {}, "overrides": [] },
|
|
"targets": [
|
|
{
|
|
"refId": "A",
|
|
"format": "time_series",
|
|
"datasource": { "uid": "dereth-db" },
|
|
"rawSql": "SELECT $__time(timestamp), cpu_pct AS value FROM telemetry_events WHERE character_name = '$character' AND $__timeFilter(timestamp) ORDER BY timestamp"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "timeseries",
|
|
"title": "Mem Handles",
|
|
"gridPos": { "h": 8, "w": 6, "x": 0, "y": 16 },
|
|
"id": 4,
|
|
"fieldConfig": { "defaults": {}, "overrides": [] },
|
|
"targets": [
|
|
{
|
|
"refId": "A",
|
|
"format": "time_series",
|
|
"datasource": { "uid": "dereth-db" },
|
|
"rawSql": "SELECT $__time(timestamp), mem_handles AS value FROM telemetry_events WHERE character_name = '$character' AND $__timeFilter(timestamp) ORDER BY timestamp"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"templating": {
|
|
"list": [
|
|
{
|
|
"type": "query",
|
|
"name": "character",
|
|
"label": "Character",
|
|
"datasource": { "uid": "dereth-db" },
|
|
"query": "SELECT DISTINCT character_name FROM telemetry_events ORDER BY character_name",
|
|
"refresh": 2,
|
|
"sort": 1,
|
|
"multi": false,
|
|
"includeAll": false
|
|
}
|
|
]
|
|
}
|
|
} |