Closed rpl-ffl closed 1 month ago
There is a change of chain_execution
/chain_execution_count
introduced by go-ethereum dependency upgrade:
The metric is visible in the /debug/metrics/prometheus
output only when the samples count is not zero - it use ResettingTimer instead of Timer which was used in the older go-ethereum:
https://github.com/Fantom-foundation/go-ethereum-sonic/blob/main/metrics/prometheus/collector.go#L125-L127
You need to handle missing chain_execution_count as a zero count.
I may try to fix the chain_info
, however it seems it (or "chain_id") does not exist even in the main branch - I don't even see it in the Norma sources - how are you using it right now? Do you need it?
I may try to fix the chain_info, however it seems it (or "chain_id") does not exist even in the main branch - I don't even see it in the Norma sources - how are you using it right now? Do you need it?
Sorry, there was a typo before. It's always been chain_info
, never chain_id
.
Norma does not use it. I have not seen it before and suppressing it by ignoring chain_info
seems to result in a normal run.
@rpl-ffl I have prepared fix here - please check attached example output if it matches your expectations: https://github.com/Fantom-foundation/Sonic/pull/219
@thaarok Thank you for the quick fix.
Proceeding by ignoring chain_info
for now.
After upgrading to Sonic
develop
=02b387
, Norma has reported 2 newly-encountered unexpected behavior during testing:chain_execution_count
appears to no longer be extractable. Norma tests if the sonic client's runtime behavior can be extracted or not usingchain_execution_count
:https://github.com/Fantom-foundation/Norma/blob/4b529a0bc65473ee3ab881ddfe709119ae7c099e/driver/monitoring/node/prom_log_source_test.go#L89-L147
chain_execution
andchain_execution_count
seems to only appear in the testing section. (In other words, actual run looks fortxpool_received
,system_memory_used
, etc.) Thus it could be that the string label changed or if we can check for other values instead ofchain_execution
to confirm value extraction.Question
chain_execution
orchain_execution_count
behavior been changed recently?chain_execution
orchain_execution_count
has been deprecated, can we use anything other value to perform this check instead?chain_info
starts to appear with the following valuechain_info {} 1
where a float is expected in place of{}
.We can suppress this behavior on Norma front, but it would be nice to understand where the changes are coming from.
Question:
chain_info
behavior been changed recently?