mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +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{
|
||||
"strategy_id": p.StrategyInstanceID,
|
||||
"strategy_type": p.Strategy,
|
||||
"symbol": p.Symbol,
|
||||
}
|
||||
positionAverageCostMetrics.With(labels).Set(p.AverageCost.Float64())
|
||||
positionBaseQuantityMetrics.With(labels).Set(p.Base.Float64())
|
||||
|
|
Loading…
Reference in New Issue
Block a user