Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adam-narozniak/5b5b8206748445fbb902bb9c25c0f1e1 to your computer and use it in GitHub Desktop.
Save adam-narozniak/5b5b8206748445fbb902bb9c25c0f1e1 to your computer and use it in GitHub Desktop.
{
"panels": [
{
"id": 2,
"gridPos": {
"h": 13,
"w": 15,
"x": 0,
"y": 0
},
"type": "graph",
"title": "Reproduced with embedded data",
"datasource": {
"type": "grafana",
"uid": "grafana"
},
"thresholds": [],
"pluginVersion": "9.3.2",
"description": "Object store memory usage by location. The dotted line indicates the object store memory capacity.\n\nLocation: where the memory was allocated, which is MMAP_SHM or MMAP_DISK to indicate memory-mapped page, SPILLED to indicate spillage to disk, and WORKER_HEAP for objects small enough to be inlined in worker memory. Refer to metric_defs.cc for more information.",
"legend": {
"alignAsTable": true,
"avg": false,
"current": true,
"hideEmpty": false,
"hideZero": true,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"sort": "current",
"sortDesc": true,
"total": false,
"values": true
},
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"fill": 10,
"fillGradient": 0,
"hiddenSeries": false,
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"$$hashKey": "object:2987",
"alias": "MAX",
"color": "#1F60C4",
"dashes": true,
"fill": 0,
"stack": false
},
{
"$$hashKey": "object:78",
"alias": "/FINISHED|FAILED|DEAD|REMOVED/",
"hiddenSeries": true
}
],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"refId": "A",
"datasource": {
"type": "grafana",
"uid": "grafana"
},
"queryType": "snapshot",
"snapshot": [
{
"schema": {
"refId": "A",
"meta": {
"type": "timeseries-many",
"custom": {
"resultType": "matrix"
},
"executedQueryString": "Expr: sum(ray_object_store_memory{SessionName=\"session_2023-01-23_15-58-58_290075_63389\"} / 1e9) by (Location)\nStep: 15s",
"preferredVisualisationType": "graph"
},
"fields": [
{
"name": "Time",
"type": "time",
"typeInfo": {
"frame": "time.Time"
},
"config": {
"interval": 15000
}
},
{
"name": "Value",
"type": "number",
"typeInfo": {
"frame": "float64"
},
"labels": {},
"config": {}
}
]
},
"data": {
"values": [
[
1674485955000,
1674485970000,
1674485985000,
1674486000000,
1674486015000,
1674486030000,
1674486045000,
1674486060000,
1674486075000,
1674486090000,
1674486105000,
1674486120000
],
[
0.016000512,
0.024000769,
0.024000769,
0.024000769,
0.024000769,
0,
0.024000769,
0.024000769,
0.024000769,
0.024000769,
0.024000769,
0.024000769
]
]
}
},
{
"schema": {
"refId": "B",
"meta": {
"type": "timeseries-many",
"custom": {
"resultType": "matrix"
},
"executedQueryString": "Expr: sum(ray_resources{Name=\"object_store_memory\",SessionName=\"session_2023-01-23_15-58-58_290075_63389\"} / 1e9)\nStep: 15s",
"preferredVisualisationType": "graph"
},
"name": "MAX",
"fields": [
{
"name": "Time",
"type": "time",
"typeInfo": {
"frame": "time.Time"
},
"config": {
"interval": 15000
}
},
{
"name": "Value",
"type": "number",
"typeInfo": {
"frame": "float64"
},
"labels": {},
"config": {
"displayNameFromDS": "MAX"
}
}
]
},
"data": {
"values": [
[
1674485955000,
1674485970000,
1674485985000,
1674486000000,
1674486015000,
1674486030000,
1674486045000,
1674486060000,
1674486075000,
1674486090000,
1674486105000,
1674486120000
],
[
2.147483648,
2.147483648,
2.147483648,
2.147483648,
2.147483648,
2.147483648,
2.147483648,
2.147483648,
2.147483648,
2.147483648,
2.147483648,
2.147483648
]
]
}
}
]
}
],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:628",
"format": "gbytes",
"label": "",
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"$$hashKey": "object:629",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
},
"libraryPanel": {
"uid": "",
"name": "Object Store Memory"
}
},
{
"gridPos": {
"h": 7,
"w": 9,
"x": 15,
"y": 0
},
"id": 5,
"options": {
"content": "<table width=\"100%\">\n <tr>\n <th width=\"2%\">Panel</th>\n <td >graph @ 9.3.2</td>\n </tr>\n <tr>\n <th>Queries</th>\n <td>A[prometheus], B[prometheus]</td>\n </tr>\n \n <tr><th>Data</th><td> 2 frames, 4 fields, 24 rows </td></tr>\n \n <tr>\n <th>Grafana</th>\n <td>9.3.2 (unknown-dev) // Open Source</td>\n </tr>\n </table>",
"mode": "html"
},
"title": "Debug info",
"type": "text"
},
{
"id": 6,
"title": "Original Panel JSON",
"type": "text",
"gridPos": {
"h": 13,
"w": 9,
"x": 15,
"y": 7
},
"options": {
"content": "{\n \"id\": 29,\n \"gridPos\": {\n \"h\": 8,\n \"w\": 12,\n \"x\": 12,\n \"y\": 16\n },\n \"type\": \"graph\",\n \"title\": \"Object Store Memory\",\n \"datasource\": {\n \"uid\": \"PBFA97CFB590B2093\",\n \"type\": \"prometheus\"\n },\n \"thresholds\": [],\n \"pluginVersion\": \"9.3.2\",\n \"description\": \"Object store memory usage by location. The dotted line indicates the object store memory capacity.\\n\\nLocation: where the memory was allocated, which is MMAP_SHM or MMAP_DISK to indicate memory-mapped page, SPILLED to indicate spillage to disk, and WORKER_HEAP for objects small enough to be inlined in worker memory. Refer to metric_defs.cc for more information.\",\n \"legend\": {\n \"alignAsTable\": true,\n \"avg\": false,\n \"current\": true,\n \"hideEmpty\": false,\n \"hideZero\": true,\n \"max\": false,\n \"min\": false,\n \"rightSide\": false,\n \"show\": true,\n \"sort\": \"current\",\n \"sortDesc\": true,\n \"total\": false,\n \"values\": true\n },\n \"aliasColors\": {},\n \"bars\": false,\n \"dashLength\": 10,\n \"dashes\": false,\n \"fill\": 10,\n \"fillGradient\": 0,\n \"hiddenSeries\": false,\n \"lines\": true,\n \"linewidth\": 1,\n \"nullPointMode\": \"null\",\n \"options\": {\n \"alertThreshold\": true\n },\n \"percentage\": false,\n \"pointradius\": 2,\n \"points\": false,\n \"renderer\": \"flot\",\n \"seriesOverrides\": [\n {\n \"$$hashKey\": \"object:2987\",\n \"alias\": \"MAX\",\n \"color\": \"#1F60C4\",\n \"dashes\": true,\n \"fill\": 0,\n \"stack\": false\n },\n {\n \"$$hashKey\": \"object:78\",\n \"alias\": \"/FINISHED|FAILED|DEAD|REMOVED/\",\n \"hiddenSeries\": true\n }\n ],\n \"spaceLength\": 10,\n \"stack\": true,\n \"steppedLine\": false,\n \"targets\": [\n {\n \"exemplar\": true,\n \"expr\": \"sum(ray_object_store_memory{SessionName=\\\"$SessionName\\\"} / 1e9) by (Location)\",\n \"interval\": \"\",\n \"legendFormat\": \"{{Location}}\",\n \"queryType\": \"randomWalk\",\n \"refId\": \"A\",\n \"datasource\": {\n \"uid\": \"PBFA97CFB590B2093\",\n \"type\": \"prometheus\"\n }\n },\n {\n \"exemplar\": true,\n \"expr\": \"sum(ray_resources{Name=\\\"object_store_memory\\\",SessionName=\\\"$SessionName\\\"} / 1e9)\",\n \"interval\": \"\",\n \"legendFormat\": \"MAX\",\n \"queryType\": \"randomWalk\",\n \"refId\": \"B\",\n \"datasource\": {\n \"uid\": \"PBFA97CFB590B2093\",\n \"type\": \"prometheus\"\n }\n }\n ],\n \"timeFrom\": null,\n \"timeRegions\": [],\n \"timeShift\": null,\n \"tooltip\": {\n \"shared\": true,\n \"sort\": 0,\n \"value_type\": \"individual\"\n },\n \"xaxis\": {\n \"buckets\": null,\n \"mode\": \"time\",\n \"name\": null,\n \"show\": true,\n \"values\": []\n },\n \"yaxes\": [\n {\n \"$$hashKey\": \"object:628\",\n \"format\": \"gbytes\",\n \"label\": \"\",\n \"logBase\": 1,\n \"max\": null,\n \"min\": \"0\",\n \"show\": true\n },\n {\n \"$$hashKey\": \"object:629\",\n \"format\": \"short\",\n \"label\": null,\n \"logBase\": 1,\n \"max\": null,\n \"min\": null,\n \"show\": true\n }\n ],\n \"yaxis\": {\n \"align\": false,\n \"alignLevel\": null\n },\n \"libraryPanel\": {\n \"uid\": \"\",\n \"name\": \"Object Store Memory\"\n }\n}",
"mode": "code",
"code": {
"language": "json",
"showLineNumbers": true,
"showMiniMap": true
}
}
},
{
"id": 3,
"title": "Data from panel above",
"type": "table",
"datasource": {
"type": "datasource",
"uid": "-- Dashboard --"
},
"gridPos": {
"h": 7,
"w": 15,
"x": 0,
"y": 13
},
"options": {
"showTypeIcons": true
},
"targets": [
{
"datasource": {
"type": "datasource",
"uid": "-- Dashboard --"
},
"panelId": 2,
"withTransforms": true,
"refId": "A"
}
]
}
],
"schemaVersion": 37,
"title": "Debug: Object Store Memory // 2023-01-24 16:27:47",
"tags": [
"debug",
"debug-graph"
],
"time": {
"from": "2023-01-23T14:27:25.511Z",
"to": "2023-01-23T15:36:27.259Z"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment