Skip to content
Snippets Groups Projects
Commit ba7f7eee authored by Cedi's avatar Cedi
Browse files

topk 25 for popular maps

parent e8bbf049
Branches
No related tags found
No related merge requests found
Pipeline #13388 passed
......@@ -25,8 +25,8 @@ data:
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 29,
"iteration": 1640619507950,
"id": 3,
"iteration": 1640796713747,
"links": [],
"liveNow": false,
"panels": [
......@@ -260,9 +260,14 @@ data:
},
"id": 34,
"options": {
"displayLabels": [],
"legend": {
"displayMode": "list",
"placement": "bottom"
"displayMode": "table",
"placement": "bottom",
"values": [
"percent",
"value"
]
},
"pieType": "pie",
"reduceOptions": {
......@@ -289,7 +294,7 @@ data:
"refId": "A"
}
],
"title": "Popular Maps (Top 25) (now)",
"title": "Popular Maps (now)",
"type": "piechart"
},
{
......@@ -314,7 +319,8 @@ data:
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
"log": 2,
"type": "log"
},
"showPoints": "auto",
"spanNulls": false,
......@@ -352,9 +358,15 @@ data:
"id": 40,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
"calcs": [
"last",
"min",
"max"
],
"displayMode": "table",
"placement": "bottom",
"sortBy": "Last",
"sortDesc": true
},
"tooltip": {
"mode": "single"
......@@ -524,7 +536,7 @@ data:
"overrides": []
},
"gridPos": {
"h": 17,
"h": 9,
"w": 6,
"x": 18,
"y": 21
......@@ -532,8 +544,12 @@ data:
"id": 45,
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom"
"displayMode": "table",
"placement": "bottom",
"values": [
"value",
"percent"
]
},
"pieType": "pie",
"reduceOptions": {
......@@ -547,7 +563,6 @@ data:
"mode": "single"
}
},
"pluginVersion": "8.3.3",
"targets": [
{
"datasource": {
......@@ -555,15 +570,13 @@ data:
"uid": "PBFA97CFB590B2093"
},
"exemplar": true,
"expr": "label_replace(topk(25, sum by (room) (exneuland_cowboy_init_count{namespace=\"prod\"})), \"roomslug\", \"$1\", \"room\", \"https://[^/]+/@/rc3_21/(.+)\")",
"expr": "label_replace(topk(25, sum by (room) (exneuland_cowboy_init_count{namespace=\"$environment\"})), \"roomslug\", \"$1\", \"room\", \"https://[^/]+/@/rc3_21/(.+)\")",
"interval": "",
"intervalFactor": 1,
"legendFormat": "{{roomslug}}",
"refId": "A"
}
],
"title": "Popular Maps (Top 25)",
"transformations": [],
"title": "Popular Maps",
"type": "piechart"
},
{
......@@ -620,7 +633,7 @@ data:
},
"gridPos": {
"h": 8,
"w": 18,
"w": 12,
"x": 0,
"y": 30
},
......@@ -647,6 +660,89 @@ data:
"title": "Hub Error Rate",
"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"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 30
},
"id": 46,
"options": {
"legend": {
"calcs": [
"last",
"max"
],
"displayMode": "table",
"placement": "bottom"
},
"tooltip": {
"mode": "single"
}
},
"targets": [
{
"exemplar": true,
"expr": "label_replace((sum by (room) (exneuland_cowboy_init_count{namespace=\"$environment\"})) - (sum by (room) (exneuland_cowboy_terminate_count{namespace=\"$environment\"})), \"roomslug\", \"$1\", \"room\", \"https://[^/]+/@/rc3_21/(.+)\")",
"interval": "",
"legendFormat": "{{roomslug}}",
"refId": "A"
}
],
"title": "Popular Maps (now)",
"type": "timeseries"
},
{
"collapsed": false,
"gridPos": {
......@@ -951,6 +1047,10 @@ data:
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment