mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
types: fix missing labels
This commit is contained in:
parent
9f510da78b
commit
40a0585187
|
@ -665,6 +665,7 @@ func (p *Position) updateMetrics() {
|
||||||
labels := prometheus.Labels{
|
labels := prometheus.Labels{
|
||||||
"strategy_id": p.StrategyInstanceID,
|
"strategy_id": p.StrategyInstanceID,
|
||||||
"strategy_type": p.Strategy,
|
"strategy_type": p.Strategy,
|
||||||
|
"symbol": p.Symbol,
|
||||||
}
|
}
|
||||||
positionAverageCostMetrics.With(labels).Set(p.AverageCost.Float64())
|
positionAverageCostMetrics.With(labels).Set(p.AverageCost.Float64())
|
||||||
positionBaseQuantityMetrics.With(labels).Set(p.Base.Float64())
|
positionBaseQuantityMetrics.With(labels).Set(p.Base.Float64())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user