Plugin, Metrics: Move metrics plugin to Shell_plugin module
Context
This merge request is a follow up from !6223 (merged), which seperated filters plug-in and RPC plug-in in a new module Shell_plugin.
This MR move the metrics plugin, defined in Shell_metrics, in Shell_plugin, for consistency.
It also renames lib_plugin/Metrics_plugin to lib_plugin/Metrics for more consistency.
Manually testing the MR
- Run a sandbox node with
--metrics-addr :1234 - Activate alpha
- Run a transfer and bake a new block
- Run
curl http://localhost:1234/metrics |grep gasorcurl http://localhost:1234/metrics |grep roundand check that the values are correct
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 Killian Delarue