fix(grafana): show 'Inactive' instead of red on Trading Cockpit when not trading
6 stat panels (Ensemble Agreement, Prediction Confidence, Model Accuracy, Ensemble Sharpe, Realized PnL, Unrealized PnL) showed red when ML metrics don't exist yet. Added special null mapping → "Inactive" in dark-blue. Panels will still show red/yellow/green when the trading system is active and emitting metrics. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -139,10 +139,23 @@
|
||||
]
|
||||
},
|
||||
"unit": "percentunit",
|
||||
"mappings": [],
|
||||
"mappings": [
|
||||
{
|
||||
"type": "special",
|
||||
"options": {
|
||||
"match": "null",
|
||||
"result": {
|
||||
"text": "Inactive",
|
||||
"color": "dark-blue",
|
||||
"index": 99
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"color": {
|
||||
"mode": "thresholds"
|
||||
}
|
||||
},
|
||||
"noValue": "Inactive"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
@@ -206,10 +219,23 @@
|
||||
]
|
||||
},
|
||||
"unit": "percentunit",
|
||||
"mappings": [],
|
||||
"mappings": [
|
||||
{
|
||||
"type": "special",
|
||||
"options": {
|
||||
"match": "null",
|
||||
"result": {
|
||||
"text": "Inactive",
|
||||
"color": "dark-blue",
|
||||
"index": 99
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"color": {
|
||||
"mode": "thresholds"
|
||||
}
|
||||
},
|
||||
"noValue": "Inactive"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
@@ -273,10 +299,23 @@
|
||||
]
|
||||
},
|
||||
"unit": "percentunit",
|
||||
"mappings": [],
|
||||
"mappings": [
|
||||
{
|
||||
"type": "special",
|
||||
"options": {
|
||||
"match": "null",
|
||||
"result": {
|
||||
"text": "Inactive",
|
||||
"color": "dark-blue",
|
||||
"index": 99
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"color": {
|
||||
"mode": "thresholds"
|
||||
}
|
||||
},
|
||||
"noValue": "Inactive"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
@@ -339,10 +378,23 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"mappings": [],
|
||||
"mappings": [
|
||||
{
|
||||
"type": "special",
|
||||
"options": {
|
||||
"match": "null",
|
||||
"result": {
|
||||
"text": "Inactive",
|
||||
"color": "dark-blue",
|
||||
"index": 99
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"color": {
|
||||
"mode": "thresholds"
|
||||
}
|
||||
},
|
||||
"noValue": "Inactive"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
@@ -473,10 +525,23 @@
|
||||
]
|
||||
},
|
||||
"unit": "currencyUSD",
|
||||
"mappings": [],
|
||||
"mappings": [
|
||||
{
|
||||
"type": "special",
|
||||
"options": {
|
||||
"match": "null",
|
||||
"result": {
|
||||
"text": "Inactive",
|
||||
"color": "dark-blue",
|
||||
"index": 99
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"color": {
|
||||
"mode": "thresholds"
|
||||
}
|
||||
},
|
||||
"noValue": "Inactive"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
@@ -536,10 +601,23 @@
|
||||
]
|
||||
},
|
||||
"unit": "currencyUSD",
|
||||
"mappings": [],
|
||||
"mappings": [
|
||||
{
|
||||
"type": "special",
|
||||
"options": {
|
||||
"match": "null",
|
||||
"result": {
|
||||
"text": "Inactive",
|
||||
"color": "dark-blue",
|
||||
"index": 99
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"color": {
|
||||
"mode": "thresholds"
|
||||
}
|
||||
},
|
||||
"noValue": "Inactive"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user