feat: add per-player placement and crafting metrics
Build / build (push) Successful in 2m0s

This commit is contained in:
dmg
2026-01-28 00:05:29 -05:00
parent 0e0a435767
commit 56549fe10a
5 changed files with 108 additions and 15 deletions
+79 -15
View File
@@ -491,13 +491,77 @@
"title": "Block Breaks by Player (Top 10)",
"type": "table"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
"unit": "ops"
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 12,
"x": 0,
"y": 35
},
"id": 29,
"options": {
"showHeader": true
},
"targets": [
{
"expr": "topk(10, sum by (player, material) (rate(spigot_blocks_placed_by_player_total{instance=~\"$server\"}[5m])))",
"format": "table",
"legendFormat": "{{player}} / {{material}}",
"refId": "A"
}
],
"title": "Block Placements by Player (Top 10)",
"type": "table"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
"unit": "ops"
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 12,
"x": 12,
"y": 35
},
"id": 30,
"options": {
"showHeader": true
},
"targets": [
{
"expr": "topk(10, sum by (player, material) (rate(spigot_items_crafted_by_player_total{instance=~\"$server\"}[5m])))",
"format": "table",
"legendFormat": "{{player}} / {{material}}",
"refId": "A"
}
],
"title": "Crafting by Player (Top 10)",
"type": "table"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 35
"y": 44
},
"id": 26,
"panels": [],
@@ -519,7 +583,7 @@
"h": 9,
"w": 12,
"x": 0,
"y": 36
"y": 45
},
"id": 27,
"options": {
@@ -561,7 +625,7 @@
"h": 9,
"w": 12,
"x": 12,
"y": 36
"y": 45
},
"id": 28,
"options": {
@@ -586,7 +650,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 45
"y": 54
},
"id": 14,
"panels": [],
@@ -609,7 +673,7 @@
"h": 6,
"w": 6,
"x": 0,
"y": 46
"y": 55
},
"id": 15,
"options": {
@@ -650,7 +714,7 @@
"h": 6,
"w": 6,
"x": 6,
"y": 46
"y": 55
},
"id": 16,
"options": {
@@ -691,7 +755,7 @@
"h": 6,
"w": 6,
"x": 12,
"y": 46
"y": 55
},
"id": 17,
"options": {
@@ -732,7 +796,7 @@
"h": 6,
"w": 6,
"x": 18,
"y": 46
"y": 55
},
"id": 18,
"options": {
@@ -763,7 +827,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 52
"y": 61
},
"id": 19,
"panels": [],
@@ -785,7 +849,7 @@
"h": 9,
"w": 12,
"x": 0,
"y": 53
"y": 62
},
"id": 20,
"options": {
@@ -827,7 +891,7 @@
"h": 9,
"w": 12,
"x": 12,
"y": 53
"y": 62
},
"id": 21,
"options": {
@@ -850,7 +914,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 62
"y": 71
},
"id": 22,
"panels": [],
@@ -872,7 +936,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 63
"y": 72
},
"id": 23,
"options": {
@@ -912,7 +976,7 @@
"h": 8,
"w": 6,
"x": 12,
"y": 63
"y": 72
},
"id": 24,
"options": {
@@ -952,7 +1016,7 @@
"h": 8,
"w": 6,
"x": 18,
"y": 63
"y": 72
},
"id": 25,
"options": {