{
"__inputs": [
{
"name": "DS_VMCLUSTER",
"label": "VMCluster",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
},
{
"name": "DS_EXPRESSION",
"label": "Expression",
"description": "",
"type": "datasource",
"pluginId": "__expr__"
}
],
"__elements": {},
"__requires": [
{
"type": "datasource",
"id": "__expr__",
"version": "1.0.0"
},
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "11.6.1"
},
{
"type": "datasource",
"id": "prometheus",
"name": "Prometheus",
"version": "1.0.0"
},
{
"type": "panel",
"id": "timeseries",
"name": "Time series",
"version": ""
}
],
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 1,
"id": null,
"links": [
{
"asDropdown": false,
"icon": "external link",
"includeVars": false,
"keepTime": false,
"tags": [
"bookhunter"
],
"targetBlank": true,
"title": "Bookhunter",
"tooltip": "",
"type": "dashboards",
"url": ""
},
{
"asDropdown": false,
"icon": "external link",
"includeVars": false,
"keepTime": false,
"tags": [
"dstats"
],
"targetBlank": true,
"title": "D stats",
"tooltip": "",
"type": "dashboards",
"url": ""
}
],
"panels": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "red",
"mode": "fixed"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "right",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "currencyUSD"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "BTC price"
},
"properties": [
{
"id": "custom.axisPlacement",
"value": "hidden"
},
{
"id": "color",
"value": {
"fixedColor": "#ffd9006b",
"mode": "fixed"
}
},
{
"id": "unit",
"value": "none"
}
]
},
{
"matcher": {
"id": "byFrameRefID",
"options": "Diff"
},
"properties": [
{
"id": "displayName",
"value": "Diff (A${ask_d} - B${bid_d})"
}
]
},
{
"matcher": {
"id": "byFrameRefID",
"options": "Diff_MAX"
},
"properties": [
{
"id": "custom.lineWidth",
"value": 0
},
{
"id": "custom.fillOpacity",
"value": 50
},
{
"id": "custom.hideFrom",
"value": {
"legend": true,
"tooltip": false,
"viz": false
}
},
{
"id": "custom.fillBelowTo",
"value": "Diff_MIN"
},
{
"id": "displayName",
"value": "Diff_MAX"
}
]
},
{
"matcher": {
"id": "byFrameRefID",
"options": "Diff_MIN"
},
"properties": [
{
"id": "custom.lineWidth",
"value": 0
},
{
"id": "custom.hideFrom",
"value": {
"legend": true,
"tooltip": false,
"viz": false
}
},
{
"id": "displayName",
"value": "Diff_MIN"
}
]
},
{
"matcher": {
"id": "byValue",
"options": {
"op": "gte",
"reducer": "allIsZero",
"value": 0
}
},
"properties": [
{
"id": "custom.hideFrom",
"value": {
"legend": true,
"tooltip": true,
"viz": true
}
}
]
},
{
"matcher": {
"id": "byFrameRefID",
"options": "0LINE"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "super-light-yellow",
"mode": "fixed"
}
},
{
"id": "custom.hideFrom",
"value": {
"legend": true,
"tooltip": true,
"viz": false
}
},
{
"id": "custom.lineStyle",
"value": {
"dash": [
0,
3,
3
],
"fill": "dot"
}
}
]
},
{
"matcher": {
"id": "byValue",
"options": {
"op": "eq",
"reducer": "mean",
"value": 1
}
},
"properties": [
{
"id": "custom.hideFrom",
"value": {
"legend": true,
"tooltip": true,
"viz": true
}
}
]
}
]
},
"gridPos": {
"h": 12,
"w": 24,
"x": 0,
"y": 0
},
"hideTimeOverride": true,
"id": 1,
"interval": "60s",
"options": {
"legend": {
"calcs": [
"lastNotNull"
],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"maxHeight": 600,
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "11.6.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "avg without(type, fut) (bohu_avg_price{symbol=\"BTC-USDT\"})",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "BTC price",
"range": true,
"refId": "BTC price",
"useBackend": false
},
{
"datasource": {
"type": "__expr__",
"uid": "${DS_EXPRESSION}"
},
"expression": "($A_MAX - $B_MIN) * ${shadow}",
"hide": false,
"refId": "Diff_MAX",
"type": "math"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "avg without(type) (avg_over_time(bohu_total_asks{symbol=\"all\", type=\"book_total_p${ask_d}\"}[$__interval]))",
"fullMetaSearch": false,
"hide": true,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "avg without(type) (avg_over_time(bohu_total_bids{symbol=\"all\", type=\"book_total_p${bid_d}\"}[$__interval]))",
"fullMetaSearch": false,
"hide": true,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "B",
"useBackend": false
},
{
"datasource": {
"type": "__expr__",
"uid": "${DS_EXPRESSION}"
},
"expression": "$A - $B",
"hide": false,
"refId": "Diff",
"type": "math"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"editorMode": "code",
"expr": "vector(${zeroline})",
"hide": false,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "0LINE"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "avg without(type) (max_over_time(bohu_total_asks{symbol=\"all\", type=\"book_total_p${ask_d}\"}[$__interval]))",
"fullMetaSearch": false,
"hide": true,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A_MAX",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "avg without(type) (min_over_time(bohu_total_bids{symbol=\"all\", type=\"book_total_p${bid_d}\"}[$__interval]))",
"fullMetaSearch": false,
"hide": true,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "B_MIN",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "avg without(type) (min_over_time(bohu_total_asks{symbol=\"all\", type=\"book_total_p${ask_d}\"}[$__interval]))",
"fullMetaSearch": false,
"hide": true,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A_MIN",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "avg without(type) (max_over_time(bohu_total_bids{symbol=\"all\", type=\"book_total_p${bid_d}\"}[$__interval]))",
"fullMetaSearch": false,
"hide": true,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "B_MAX",
"useBackend": false
},
{
"datasource": {
"type": "__expr__",
"uid": "${DS_EXPRESSION}"
},
"expression": "($A_MIN - $B_MAX) * ${shadow}",
"hide": false,
"refId": "Diff_MIN",
"type": "math"
}
],
"timeShift": "0d+${t_shift}",
"title": "TOTAL | A${ask_d} - B${bid_d}",
"type": "timeseries"
},
{
"collapsed": true,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 12
},
"id": 6,
"panels": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "#ff001e",
"mode": "fixed"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "right",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "currencyUSD"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "bohu_total_bids"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#1eff00",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "BTC price"
},
"properties": [
{
"id": "custom.axisPlacement",
"value": "hidden"
},
{
"id": "color",
"value": {
"fixedColor": "#ffd9006b",
"mode": "fixed"
}
},
{
"id": "unit",
"value": "none"
}
]
},
{
"matcher": {
"id": "byFrameRefID",
"options": "PRICE"
},
"properties": [
{
"id": "custom.axisPlacement",
"value": "left"
},
{
"id": "color",
"value": {
"fixedColor": "super-light-orange",
"mode": "fixed"
}
},
{
"id": "custom.lineStyle",
"value": {
"dash": [
0,
3,
3
],
"fill": "dot"
}
}
]
}
]
},
"gridPos": {
"h": 11,
"w": 24,
"x": 0,
"y": 84
},
"hideTimeOverride": true,
"id": 4,
"options": {
"legend": {
"calcs": [
"lastNotNull"
],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"maxHeight": 600,
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "11.3.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "bohu_total_asks{symbol=\"all\", type=\"book_total_p${ask_d}\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "ASK D${ask_d}",
"range": true,
"refId": "A",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "bohu_total_bids{symbol=\"all\", type=\"book_total_p${bid_d}\"}",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "BID D${bid_d}",
"range": true,
"refId": "B",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "avg without(type, fut) (bohu_avg_price{symbol=\"$pair\"})",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "{{symbol}}",
"range": true,
"refId": "PRICE",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "avg without(type, fut) (bohu_avg_price{symbol=\"BTC-USDT\"})",
"fullMetaSearch": false,
"hide": true,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "BTC price",
"range": true,
"refId": "BTC price",
"useBackend": false
}
],
"timeShift": "0d+${t_shift}",
"title": "TOTAL | A${ask_d} & B${bid_d}",
"type": "timeseries"
}
],
"title": "Details",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "red",
"mode": "fixed"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "right",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "currencyUSD"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "BTC price"
},
"properties": [
{
"id": "custom.axisPlacement",
"value": "hidden"
},
{
"id": "color",
"value": {
"fixedColor": "#ffd9006b",
"mode": "fixed"
}
},
{
"id": "unit",
"value": "none"
}
]
},
{
"matcher": {
"id": "byRegexp",
"options": "/.*price/"
},
"properties": [
{
"id": "custom.axisPlacement",
"value": "auto"
},
{
"id": "color",
"value": {
"fixedColor": "#ffcb7d",
"mode": "fixed"
}
},
{
"id": "custom.lineStyle",
"value": {
"dash": [
0,
3,
3
],
"fill": "dot"
}
}
]
},
{
"matcher": {
"id": "byFrameRefID",
"options": "Diff"
},
"properties": [
{
"id": "displayName",
"value": "Diff (A${ask_d} - B${bid_d})"
}
]
},
{
"matcher": {
"id": "byFrameRefID",
"options": "Diff_MAX"
},
"properties": [
{
"id": "custom.hideFrom",
"value": {
"legend": true,
"tooltip": false,
"viz": false
}
},
{
"id": "custom.lineWidth",
"value": 0
},
{
"id": "custom.fillOpacity",
"value": 50
},
{
"id": "custom.fillBelowTo",
"value": "Diff_MIN"
},
{
"id": "displayName",
"value": "Diff_MAX"
}
]
},
{
"matcher": {
"id": "byFrameRefID",
"options": "Diff_MIN"
},
"properties": [
{
"id": "custom.lineWidth",
"value": 0
},
{
"id": "displayName",
"value": "Diff_MIN"
},
{
"id": "custom.hideFrom",
"value": {
"legend": true,
"tooltip": false,
"viz": false
}
}
]
},
{
"matcher": {
"id": "byValue",
"options": {
"op": "gte",
"reducer": "allIsZero",
"value": 0
}
},
"properties": [
{
"id": "custom.hideFrom",
"value": {
"legend": true,
"tooltip": true,
"viz": true
}
}
]
},
{
"matcher": {
"id": "byFrameRefID",
"options": "0LINE"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "super-light-yellow",
"mode": "fixed"
}
},
{
"id": "custom.lineStyle",
"value": {
"dash": [
0,
3,
3
],
"fill": "dot"
}
},
{
"id": "custom.hideFrom",
"value": {
"legend": true,
"tooltip": true,
"viz": false
}
}
]
},
{
"matcher": {
"id": "byValue",
"options": {
"op": "eq",
"reducer": "mean",
"value": 1
}
},
"properties": [
{
"id": "custom.hideFrom",
"value": {
"legend": true,
"tooltip": true,
"viz": true
}
}
]
}
]
},
"gridPos": {
"h": 12,
"w": 24,
"x": 0,
"y": 13
},
"hideTimeOverride": true,
"id": 2,
"interval": "60s",
"options": {
"legend": {
"calcs": [
"lastNotNull"
],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"maxHeight": 600,
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "11.6.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "avg without(type, fut) (bohu_avg_price{symbol=\"${pair}\"})",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "{{symbol}} price",
"range": true,
"refId": "BTC price",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "avg without(type) (avg_over_time(bohu_total_asks{symbol=\"${pair}\", type=\"book_total_p${ask_d}\"}[$__interval]))",
"fullMetaSearch": false,
"hide": true,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
},
{
"datasource": {
"type": "__expr__",
"uid": "${DS_EXPRESSION}"
},
"expression": "($A_MAX - $B_MIN) * ${shadow}",
"hide": false,
"refId": "Diff_MAX",
"type": "math"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "avg without(type) (avg_over_time(bohu_total_bids{symbol=\"${pair}\", type=\"book_total_p${bid_d}\"}[$__interval]))",
"fullMetaSearch": false,
"hide": true,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "B",
"useBackend": false
},
{
"datasource": {
"type": "__expr__",
"uid": "${DS_EXPRESSION}"
},
"expression": "$A - $B",
"hide": false,
"refId": "Diff",
"type": "math"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"editorMode": "code",
"expr": "vector(${zeroline})",
"hide": false,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "0LINE"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "avg without(type) (min_over_time(bohu_total_asks{symbol=\"${pair}\", type=\"book_total_p${ask_d}\"}[$__interval]))",
"fullMetaSearch": false,
"hide": true,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A_MIN",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "avg without(type) (max_over_time(bohu_total_asks{symbol=\"${pair}\", type=\"book_total_p${ask_d}\"}[$__interval]))",
"fullMetaSearch": false,
"hide": true,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A_MAX",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "avg without(type) (min_over_time(bohu_total_bids{symbol=\"${pair}\", type=\"book_total_p${bid_d}\"}[$__interval]))",
"fullMetaSearch": false,
"hide": true,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "B_MIN",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "avg without(type) (max_over_time(bohu_total_bids{symbol=\"${pair}\", type=\"book_total_p${bid_d}\"}[$__interval]))",
"fullMetaSearch": false,
"hide": true,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "B_MAX",
"useBackend": false
},
{
"datasource": {
"type": "__expr__",
"uid": "${DS_EXPRESSION}"
},
"expression": "($A_MIN - $B_MAX) * ${shadow}",
"hide": false,
"refId": "Diff_MIN",
"type": "math"
}
],
"timeShift": "0d+${t_shift}",
"title": "${pair} | A${ask_d} - B${bid_d}",
"type": "timeseries"
},
{
"collapsed": true,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 25
},
"id": 5,
"panels": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "#ff001e",
"mode": "fixed"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "right",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "currencyUSD"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "bohu_total_bids"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#1eff00",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "BTC price"
},
"properties": [
{
"id": "custom.axisPlacement",
"value": "hidden"
},
{
"id": "color",
"value": {
"fixedColor": "#ffd9006b",
"mode": "fixed"
}
},
{
"id": "unit",
"value": "none"
}
]
},
{
"matcher": {
"id": "byFrameRefID",
"options": "PRICE"
},
"properties": [
{
"id": "custom.axisPlacement",
"value": "left"
},
{
"id": "color",
"value": {
"fixedColor": "super-light-orange",
"mode": "fixed"
}
},
{
"id": "custom.lineStyle",
"value": {
"dash": [
0,
3,
3
],
"fill": "dot"
}
}
]
}
]
},
"gridPos": {
"h": 11,
"w": 24,
"x": 0,
"y": 26
},
"hideTimeOverride": true,
"id": 3,
"options": {
"legend": {
"calcs": [
"lastNotNull"
],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"maxHeight": 600,
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "11.6.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "bohu_total_asks{symbol=\"$pair\", type=\"book_total_p${ask_d}\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "ASK D${ask_d}",
"range": true,
"refId": "A",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "bohu_total_bids{symbol=\"$pair\", type=\"book_total_p${bid_d}\"}",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "BID D${bid_d}",
"range": true,
"refId": "B",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "avg without(type, fut) (bohu_avg_price{symbol=\"$pair\"})",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "{{symbol}}",
"range": true,
"refId": "PRICE",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "avg without(type, fut) (bohu_avg_price{symbol=\"BTC-USDT\"})",
"fullMetaSearch": false,
"hide": true,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "BTC price",
"range": true,
"refId": "BTC price",
"useBackend": false
}
],
"timeShift": "0d+${t_shift}",
"title": "$pair | A${ask_d} & B${bid_d}",
"type": "timeseries"
}
],
"title": "Details",
"type": "row"
},
{
"collapsed": true,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 26
},
"id": 8,
"panels": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "red",
"mode": "fixed"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "right",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "percentunit"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "BTC price"
},
"properties": [
{
"id": "custom.axisPlacement",
"value": "hidden"
},
{
"id": "color",
"value": {
"fixedColor": "#ffd9006b",
"mode": "fixed"
}
},
{
"id": "unit",
"value": "none"
}
]
},
{
"matcher": {
"id": "byFrameRefID",
"options": "Diff"
},
"properties": [
{
"id": "displayName",
"value": "Diff (D${ask_d} - D${bid_d})"
}
]
},
{
"matcher": {
"id": "byFrameRefID",
"options": "Diff_MAX"
},
"properties": [
{
"id": "custom.lineWidth",
"value": 0
},
{
"id": "custom.fillOpacity",
"value": 50
},
{
"id": "custom.hideFrom",
"value": {
"legend": true,
"tooltip": false,
"viz": false
}
},
{
"id": "custom.fillBelowTo",
"value": "Diff_MIN"
},
{
"id": "displayName",
"value": "Diff_MAX"
}
]
},
{
"matcher": {
"id": "byFrameRefID",
"options": "Diff_MIN"
},
"properties": [
{
"id": "custom.lineWidth",
"value": 0
},
{
"id": "custom.hideFrom",
"value": {
"legend": true,
"tooltip": false,
"viz": false
}
},
{
"id": "displayName",
"value": "Diff_MIN"
}
]
},
{
"matcher": {
"id": "byValue",
"options": {
"op": "gte",
"reducer": "allIsZero",
"value": 0
}
},
"properties": [
{
"id": "custom.hideFrom",
"value": {
"legend": true,
"tooltip": true,
"viz": true
}
}
]
},
{
"matcher": {
"id": "byFrameRefID",
"options": "0LINE"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "super-light-yellow",
"mode": "fixed"
}
},
{
"id": "custom.hideFrom",
"value": {
"legend": true,
"tooltip": true,
"viz": false
}
},
{
"id": "custom.lineStyle",
"value": {
"dash": [
0,
3,
3
],
"fill": "dot"
}
}
]
},
{
"matcher": {
"id": "byValue",
"options": {
"op": "eq",
"reducer": "mean",
"value": 1
}
},
"properties": [
{
"id": "custom.hideFrom",
"value": {
"legend": true,
"tooltip": true,
"viz": true
}
}
]
}
]
},
"gridPos": {
"h": 12,
"w": 24,
"x": 0,
"y": 27
},
"hideTimeOverride": true,
"id": 7,
"interval": "60s",
"options": {
"legend": {
"calcs": [
"lastNotNull"
],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"maxHeight": 600,
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "11.6.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "avg without(type, fut) (bohu_avg_price{symbol=\"BTC-USDT\"})",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "BTC price",
"range": true,
"refId": "BTC price",
"useBackend": false
},
{
"datasource": {
"type": "__expr__",
"uid": "${DS_EXPRESSION}"
},
"expression": "($A_MAX - $B_MIN) * ${shadow}",
"hide": false,
"refId": "Diff_MAX",
"type": "math"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "avg without(type) (avg_over_time(bohu_ob_diff{symbol=\"all\", type=\"book_total_p${ask_d}\"}[$__interval]))",
"fullMetaSearch": false,
"hide": true,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "avg without(type) (avg_over_time(bohu_ob_diff{symbol=\"all\", type=\"book_total_p${bid_d}\"}[$__interval]))",
"fullMetaSearch": false,
"hide": true,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "B",
"useBackend": false
},
{
"datasource": {
"type": "__expr__",
"uid": "${DS_EXPRESSION}"
},
"expression": "$A - $B",
"hide": false,
"refId": "Diff",
"type": "math"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"editorMode": "code",
"expr": "vector(${zeroline})",
"hide": false,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "0LINE"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "avg without(type) (max_over_time(bohu_ob_diff{symbol=\"all\", type=\"book_total_p${ask_d}\"}[$__interval]))",
"fullMetaSearch": false,
"hide": true,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A_MAX",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "avg without(type) (min_over_time(bohu_ob_diff{symbol=\"all\", type=\"book_total_p${bid_d}\"}[$__interval]))",
"fullMetaSearch": false,
"hide": true,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "B_MIN",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "avg without(type) (min_over_time(bohu_ob_diff{symbol=\"all\", type=\"book_total_p${ask_d}\"}[$__interval]))",
"fullMetaSearch": false,
"hide": true,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A_MIN",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "avg without(type) (max_over_time(bohu_ob_diff{symbol=\"all\", type=\"book_total_p${bid_d}\"}[$__interval]))",
"fullMetaSearch": false,
"hide": true,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "B_MAX",
"useBackend": false
},
{
"datasource": {
"type": "__expr__",
"uid": "${DS_EXPRESSION}"
},
"expression": "($A_MIN - $B_MAX) * ${shadow}",
"hide": false,
"refId": "Diff_MIN",
"type": "math"
}
],
"timeShift": "0d+${t_shift}",
"title": "TOTAL | D${ask_d} - D${bid_d}",
"type": "timeseries"
}
],
"title": "Experiments",
"type": "row"
}
],
"refresh": "30s",
"schemaVersion": 41,
"tags": [],
"templating": {
"list": [
{
"current": {},
"datasource": {
"type": "prometheus",
"uid": "${DS_VMCLUSTER}"
},
"definition": "label_values(bohu_p3_ob_diff{symbol!=\"all\"},symbol)",
"label": "Pair",
"name": "pair",
"options": [],
"query": {
"qryType": 1,
"query": "label_values(bohu_p3_ob_diff{symbol!=\"all\"},symbol)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 1,
"regex": "",
"type": "query"
},
{
"current": {
"text": "8",
"value": "8"
},
"label": "ASK Depth",
"name": "ask_d",
"options": [
{
"selected": false,
"text": "3",
"value": "3"
},
{
"selected": false,
"text": "5",
"value": "5"
},
{
"selected": true,
"text": "8",
"value": "8"
},
{
"selected": false,
"text": "15",
"value": "15"
},
{
"selected": false,
"text": "30",
"value": "30"
},
{
"selected": false,
"text": "60",
"value": "60"
},
{
"selected": false,
"text": "100",
"value": "100"
}
],
"query": "3,5,8,15,30,60,100",
"type": "custom"
},
{
"current": {
"text": "3",
"value": "3"
},
"label": "BID Depth",
"name": "bid_d",
"options": [
{
"selected": true,
"text": "3",
"value": "3"
},
{
"selected": false,
"text": "5",
"value": "5"
},
{
"selected": false,
"text": "8",
"value": "8"
},
{
"selected": false,
"text": "15",
"value": "15"
},
{
"selected": false,
"text": "30",
"value": "30"
},
{
"selected": false,
"text": "60",
"value": "60"
},
{
"selected": false,
"text": "100",
"value": "100"
}
],
"query": "3,5,8,15,30,60,100",
"type": "custom"
},
{
"current": {
"text": "0",
"value": "0"
},
"label": "0 line",
"name": "zeroline",
"options": [
{
"selected": true,
"text": "show",
"value": "0"
},
{
"selected": false,
"text": "hide",
"value": "1"
}
],
"query": "show : 0, hide : 1",
"type": "custom"
},
{
"current": {
"text": "1h",
"value": "1h"
},
"label": "Time shift",
"name": "t_shift",
"options": [
{
"selected": false,
"text": "0",
"value": "0s"
},
{
"selected": false,
"text": "10m",
"value": "10m"
},
{
"selected": true,
"text": "1h",
"value": "1h"
},
{
"selected": false,
"text": "3h",
"value": "3h"
},
{
"selected": false,
"text": "12h",
"value": "12h"
},
{
"selected": false,
"text": "3d",
"value": "3d"
},
{
"selected": false,
"text": "10d",
"value": "10d"
}
],
"query": "0 : 0s, 10m : 10m, 1h : 1h, 3h : 3h, 12h : 12h, 3d : 3d, 10d : 10d",
"type": "custom"
},
{
"current": {
"text": "1",
"value": "1"
},
"label": "Shadows:",
"name": "shadow",
"options": [
{
"selected": true,
"text": "show",
"value": "1"
},
{
"selected": false,
"text": "hide",
"value": "0"
}
],
"query": "show : 1, hide : 0",
"type": "custom"
}
]
},
"time": {
"from": "2025-05-08T21:00:00.000Z",
"to": "2025-06-05T20:59:59.000Z"
},
"timepicker": {
"refresh_intervals": [
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "browser",
"title": "Differ",
"uid": "fecnvxek3bnr4c",
"version": 45,
"weekStart": ""
}