Skip to content

Commit

Permalink
Add rooms per game state panel to dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
miniduikboot committed Jun 11, 2024
1 parent edaa8f9 commit ae15d45
Showing 1 changed file with 102 additions and 4 deletions.
106 changes: 102 additions & 4 deletions resources/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -1045,6 +1045,104 @@
"title": "Lobbies by Game Mode",
"type": "piechart"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 26
},
"id": 19,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "sum by(game_state) (boot_metrics_games_open{server_name=~\"$server_name\"})",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Rooms",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
Expand Down Expand Up @@ -1109,7 +1207,7 @@
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"x": 12,
"y": 26
},
"id": 11,
Expand Down Expand Up @@ -1209,8 +1307,8 @@
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 26
"x": 0,
"y": 34
},
"id": 18,
"options": {
Expand Down Expand Up @@ -1303,6 +1401,6 @@
"timezone": "browser",
"title": "Boot.Metrics Impostor Dashboard",
"uid": "ddmimkts8xkw0a",
"version": 42,
"version": 43,
"weekStart": ""
}

0 comments on commit ae15d45

Please sign in to comment.