update grafana panel
All checks were successful
docker (ubuntu-latest, 2.38.4)

This commit is contained in:
Lee 2023-04-09 10:30:30 +01:00
parent 73aec0f095
commit efde954905

@ -22,7 +22,7 @@
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 33,
"iteration": 1681026014890,
"iteration": 1681032335524,
"links": [],
"liveNow": false,
"panels": [
@ -73,8 +73,7 @@
"mode": "off"
}
},
"decimals": 0,
"displayName": "Wins",
"displayName": "Time Played",
"mappings": [],
"thresholds": {
"mode": "absolute",
@ -84,17 +83,18 @@
"value": null
}
]
}
},
"unit": "m"
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 12,
"w": 8,
"x": 0,
"y": 1
},
"id": 2,
"id": 10,
"options": {
"legend": {
"calcs": [],
@ -112,13 +112,95 @@
"uid": "Jw3mnDJnz"
},
"exemplar": true,
"expr": "fortnite_wins{username=\"$User\",gameType=\"$Gamemode\",app=\"fortnite-api\"}",
"expr": "fortnite_minutesPlayed{username=\"$User\",gameType=\"$Gamemode\",app=\"fortnite-api\"}",
"interval": "",
"legendFormat": "",
"refId": "A"
}
],
"title": "Wins ($Gamemode)",
"title": "Time Played ($Gamemode)",
"type": "timeseries"
},
{
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"displayName": "Score",
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 8,
"x": 8,
"y": 1
},
"id": 12,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "Jw3mnDJnz"
},
"exemplar": true,
"expr": "fortnite_score{username=\"$User\",gameType=\"$Gamemode\",app=\"fortnite-api\"}",
"interval": "",
"legendFormat": "",
"refId": "A"
}
],
"title": "Score ($Gamemode)",
"type": "timeseries"
},
{
@ -184,7 +266,7 @@
},
"gridPos": {
"h": 9,
"w": 12,
"w": 8,
"x": 0,
"y": 11
},
@ -265,8 +347,8 @@
},
"gridPos": {
"h": 9,
"w": 12,
"x": 12,
"w": 8,
"x": 8,
"y": 11
},
"id": 3,
@ -295,6 +377,251 @@
],
"title": "Deaths ($Gamemode)",
"type": "timeseries"
},
{
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"displayName": "K/D",
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 8,
"x": 16,
"y": 11
},
"id": 9,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "Jw3mnDJnz"
},
"exemplar": true,
"expr": "fortnite_kd{username=\"$User\",gameType=\"$Gamemode\",app=\"fortnite-api\"}",
"interval": "",
"legendFormat": "",
"refId": "A"
}
],
"title": "K/D ($Gamemode)",
"type": "timeseries"
},
{
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"decimals": 0,
"displayName": "Wins",
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 8,
"x": 0,
"y": 20
},
"id": 2,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "Jw3mnDJnz"
},
"exemplar": true,
"expr": "fortnite_wins{username=\"$User\",gameType=\"$Gamemode\",app=\"fortnite-api\"}",
"interval": "",
"legendFormat": "",
"refId": "A"
}
],
"title": "Wins ($Gamemode)",
"type": "timeseries"
},
{
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"displayName": "Matches",
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 8,
"x": 8,
"y": 20
},
"id": 11,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "Jw3mnDJnz"
},
"exemplar": true,
"expr": "fortnite_matches{username=\"$User\",gameType=\"$Gamemode\",app=\"fortnite-api\"}",
"interval": "",
"legendFormat": "",
"refId": "A"
}
],
"title": "Matches ($Gamemode)",
"type": "timeseries"
}
],
"refresh": "5s",
@ -305,9 +632,9 @@
"list": [
{
"current": {
"selected": false,
"text": "RealFascinated",
"value": "RealFascinated"
"selected": true,
"text": "oknick41",
"value": "oknick41"
},
"definition": "label_values(fortnite_score{app=\"fortnite-api\"}, username)",
"hide": 0,
@ -328,7 +655,7 @@
},
{
"current": {
"selected": false,
"selected": true,
"text": "overall",
"value": "overall"
},
@ -359,6 +686,6 @@
"timezone": "",
"title": "Fortnite Metrics",
"uid": "jkkaSLL4z",
"version": 5,
"version": 8,
"weekStart": ""
}