SORU/Metrics: metrics for refutation games
Owner
What
Add new metric to rollup node for monitoring refutation game (state of the refutation, number of conflicts)
How
In refutation_game.ml, I found information on the current status of the game. For the number of conflict, I used in refutation_coordinator the number of ongoing_game.
Manually testing the MR
If you want to check the MR for now, you should import the new grafana as a dashboard and also add a new target to your prometheus data base. The target you must add in your prometheus.yml is http://localhost:9944. I've kept a draft commit that modify a tezt so that the rollup node is always on the port 9944.
dune exec tezt/tests/main.exe -- -f sc_rollup.ml -t 'Alpha: arith - refutation games winning strategies (pvm_proof_2)' -v
Checklist
-
Document the interface of any function added or modified (see the coding guidelines) -
Document any change to the user interface, including configuration parameters (see node configuration) -
Provide automatic testing (see the testing guide). -
For new features and bug fixes, add an item in the appropriate changelog ( docs/protocols/alpha.rstfor the protocol and the environment,CHANGES.rstat the root of the repository for everything else). -
Select suitable reviewers using the Reviewersfield below. -
Select as Assigneethe next person who should take action on that MR
Edited by Antoine Lanco