Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Commit

Permalink
feat: overall pnl as a panel on galoy-dealer dashborad (#130)
Browse files Browse the repository at this point in the history
Final panel in the main Galoy Dealer dashboard.
  • Loading branch information
jireva authored Jul 28, 2022
1 parent dad1129 commit bdccf75
Showing 1 changed file with 86 additions and 0 deletions.
86 changes: 86 additions & 0 deletions grafana/provisioning/dashboards/galoy-dealer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3654,6 +3654,92 @@
],
"title": "Funding Yield",
"type": "bargauge"
},
{
"datasource": {
"type": "prometheus",
"uid": "kgBfv5gVz"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 25,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineStyle": {
"fill": "solid"
},
"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
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 6,
"x": 0,
"y": 56
},
"id": 71,
"options": {
"legend": {
"calcs": [
"last"
],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"exemplar": true,
"expr": "( avg(avg_over_time(galoy_dealer_btcTotalBalance[1h])) + avg(avg_over_time(galoy_dealer_fundingAccountBtcTotalBalance[1h])) + (avg(avg_over_time(galoy_dealer_btc_balance[1h]))/1e8) + (avg(avg_over_time(galoy_dealer_tradingFeesTotalInSats[1h]))/1e8) + (avg(avg_over_time(galoy_dealer_fundingFeesTotalInSats[1h]) / 1e8)) ) * avg(avg_over_time(USD_price[1h])) + avg(avg_over_time(galoy_dealer_swapUPnlInUsd[1h])) + (avg(avg_over_time(galoy_dealer_usd_balance[1h]))/100)",
"legendFormat": "assets - liability",
"range": true,
"refId": "A"
}
],
"title": "Assets - Liability in USD",
"type": "timeseries"
}
],
"refresh": false,
Expand Down

0 comments on commit bdccf75

Please sign in to comment.