hellas-ai / hellas-ai/consensus

feat: metrics endpoint

Open
#63 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
4
Forks
0
PR merge metrics
No merged PRs in 30d

Description

we should optionally expose a prometheus-style /metrics endpoint

default should be off, if enabled, bind to 127.0.0.1 and port 9311 but allow user to specify these
application should log error and exit with error code if we fail to bind port

metrics should include stuff like:
- current connected peers
- latest block seen
- number of views signed

the endpoint must NOT do any querying/aggregation itself- metrics should be updated inline as soon as the relevant event occurs, endpoint just snapshots them

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.