Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ EPIC ] Metrics #23

Closed
9 of 15 tasks
jpaulet opened this issue Mar 23, 2023 · 3 comments
Closed
9 of 15 tasks

[ EPIC ] Metrics #23

jpaulet opened this issue Mar 23, 2023 · 3 comments
Labels

Comments

@jpaulet
Copy link
Member

jpaulet commented Mar 23, 2023

As Vocdoni, we want to assure our infrastructure health & availability. To do so, we need to run checks on a fixed interval such as every minute to prove a specific endpoint such as /status.

Also, we want to track certain metrics to have a better understanding of the API/SDK usage and possible improvements. Create a suite of metrics that can be accessed via a dashboard and with historical data.

Ideally, we can differentiate between direct API calls & SDK calls (with the SDK version on it).

Final outcome of this epic:
Have a single public dashboard where everyone can check:

  • All our nodes' status and historic % uptime.
  • All the proposed metrics in real-time and historic data with 1-day granularity.
  • Be able to switch between the metric and the historic data as a graph.

Tasks:

Be able to track the infrastructure usage & status (SLA):

  • Nodes status and workload: Be able to check all our nodes and status, ideally with a % of uptime and errors.
  • API status: perform fixed checks to know the API status. Add alarms if the API is down.
  • Nº of 40x and 50x errors and % between success/error requests
  • Block time generation
  • Nº of transactions
  • Nº of tokens purchased (TBD)

Track usage metrics for the protocol:

  • Nº Orgs
  • Nº processes
  • Nº active processes
  • Nº of votes
  • Nº of processes with at least 1 vote
  • Nº of used tokens

Create a minimal dashboard to gather all this information on the same page

  • Create the dashboard
  • Add metrics
  • Deploy it
@jpaulet jpaulet changed the title Metrics [ EPIC ] Metrics Apr 14, 2023
@jpaulet jpaulet added the epic label Apr 19, 2023
@jpaulet
Copy link
Member Author

jpaulet commented Aug 31, 2023

Related to: #83

@altergui
Copy link

i marked as ✔️ all the items done in MVP #83
and included 3 of the remaining in #91

i'm not sure about:

  • API status: perform fixed checks to know the API status. Add alarms if the API is down.

this would need to be implemented outside of vocdoni-node

and this:

  • Nº of 40x and 50x errors and % between success/error requests

for some reason i understood we just wanted to track metrics related to the vochain, no gateway stats. and while i'm happy to implement this idea, it crosses that line, so just wanted confirmation before taking this as well,

@jpaulet
Copy link
Member Author

jpaulet commented Oct 2, 2023

Ok, closing this issue, as the new one tracks the pending issues. About the 40x & 50x it's true that this shouldn't be included in the monitor system itself, but in the gateways or as alerts.

@jpaulet jpaulet closed this as completed Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants