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, "fiscalYearStartMonth": 0,
"graphTooltip": 0, "graphTooltip": 0,
"id": 33, "id": 33,
"iteration": 1681026014890, "iteration": 1681032335524,
"links": [], "links": [],
"liveNow": false, "liveNow": false,
"panels": [ "panels": [
@ -73,8 +73,7 @@
"mode": "off" "mode": "off"
} }
}, },
"decimals": 0, "displayName": "Time Played",
"displayName": "Wins",
"mappings": [], "mappings": [],
"thresholds": { "thresholds": {
"mode": "absolute", "mode": "absolute",
@ -84,17 +83,18 @@
"value": null "value": null
} }
] ]
} },
"unit": "m"
}, },
"overrides": [] "overrides": []
}, },
"gridPos": { "gridPos": {
"h": 9, "h": 9,
"w": 12, "w": 8,
"x": 0, "x": 0,
"y": 1 "y": 1
}, },
"id": 2, "id": 10,
"options": { "options": {
"legend": { "legend": {
"calcs": [], "calcs": [],
@ -112,13 +112,95 @@
"uid": "Jw3mnDJnz" "uid": "Jw3mnDJnz"
}, },
"exemplar": true, "exemplar": true,
"expr": "fortnite_wins{username=\"$User\",gameType=\"$Gamemode\",app=\"fortnite-api\"}", "expr": "fortnite_minutesPlayed{username=\"$User\",gameType=\"$Gamemode\",app=\"fortnite-api\"}",
"interval": "", "interval": "",
"legendFormat": "", "legendFormat": "",
"refId": "A" "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" "type": "timeseries"
}, },
{ {
@ -184,7 +266,7 @@
}, },
"gridPos": { "gridPos": {
"h": 9, "h": 9,
"w": 12, "w": 8,
"x": 0, "x": 0,
"y": 11 "y": 11
}, },
@ -265,8 +347,8 @@
}, },
"gridPos": { "gridPos": {
"h": 9, "h": 9,
"w": 12, "w": 8,
"x": 12, "x": 8,
"y": 11 "y": 11
}, },
"id": 3, "id": 3,
@ -295,6 +377,251 @@
], ],
"title": "Deaths ($Gamemode)", "title": "Deaths ($Gamemode)",
"type": "timeseries" "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", "refresh": "5s",
@ -305,9 +632,9 @@
"list": [ "list": [
{ {
"current": { "current": {
"selected": false, "selected": true,
"text": "RealFascinated", "text": "oknick41",
"value": "RealFascinated" "value": "oknick41"
}, },
"definition": "label_values(fortnite_score{app=\"fortnite-api\"}, username)", "definition": "label_values(fortnite_score{app=\"fortnite-api\"}, username)",
"hide": 0, "hide": 0,
@ -328,7 +655,7 @@
}, },
{ {
"current": { "current": {
"selected": false, "selected": true,
"text": "overall", "text": "overall",
"value": "overall" "value": "overall"
}, },
@ -359,6 +686,6 @@
"timezone": "", "timezone": "",
"title": "Fortnite Metrics", "title": "Fortnite Metrics",
"uid": "jkkaSLL4z", "uid": "jkkaSLL4z",
"version": 5, "version": 8,
"weekStart": "" "weekStart": ""
} }