The end goal is to be able to understand what is happening in the statement-store on production nodes, so we should extend the existing metrics with more to be able to answer questions like.
- What is the total usage of statement-store.
- Number of users/statements.
- With how many peers is the node connected using the statement-store protocol.
- How many statements were submitted.
- How many statements were valid/invalid and reasons of being invalid.
- Number of active subscriptions to the node.
- Metrics regarding queues and workers, we should be able to quickly notice if workers gets stuck or overwhelmed and drop message.