File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 2
2
key_store.root_path = " keystore"
3
3
oracle.poll_interval_duration = " 1s"
4
4
exporter.transaction_monitor.poll_interval_duration = " 1s"
5
+
6
+ [metrics_server ]
7
+ bind_address =" 0.0.0.0:8888"
Original file line number Diff line number Diff line change @@ -411,23 +411,25 @@ impl PriceLocalMetrics {
411
411
update_count,
412
412
} = self ;
413
413
414
+ let price_key = Pubkey :: new ( price_id. to_bytes ( ) . as_slice ( ) ) ;
415
+
414
416
price
415
417
. get_or_create ( & PriceLocalLabels {
416
- pubkey : price_id . to_string ( ) ,
418
+ pubkey : price_key . to_string ( ) ,
417
419
} )
418
420
. set ( price_info. price ) ;
419
421
conf. get_or_create ( & PriceLocalLabels {
420
- pubkey : price_id . to_string ( ) ,
422
+ pubkey : price_key . to_string ( ) ,
421
423
} )
422
424
. set ( price_info. conf as f64 ) ;
423
425
timestamp
424
426
. get_or_create ( & PriceLocalLabels {
425
- pubkey : price_id . to_string ( ) ,
427
+ pubkey : price_key . to_string ( ) ,
426
428
} )
427
429
. set ( price_info. timestamp ) ;
428
430
update_count
429
431
. get_or_create ( & PriceLocalLabels {
430
- pubkey : price_id . to_string ( ) ,
432
+ pubkey : price_key . to_string ( ) ,
431
433
} )
432
434
. inc ( ) ;
433
435
}
You can’t perform that action at this time.
0 commit comments