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

Implement ethical metrics migration #2002

Open
pablomendezroyo opened this issue Jul 25, 2024 · 0 comments
Open

Implement ethical metrics migration #2002

pablomendezroyo opened this issue Jul 25, 2024 · 0 comments
Assignees

Comments

@pablomendezroyo
Copy link
Contributor

pablomendezroyo commented Jul 25, 2024

Implement ethical metrics migration: ethical metrics will switch from using package ethical metrics to use new core package TOR:

  • Service API will no longer be needed, requests from the ethical metrics daemon will go directly from dappmanager to ethical infra using tor core package socks
  • Prometheus service will no longer needed since it will expose the Prometheus from DMS
  • Tor service will be replaced by the new tor core package

The migration will consist of the following:

  1. Install new core
  2. New dappmanager starts
  3. Dappmanager realizes that ethical metrics legacy is running
  4. Dappmanager fetches tor instance from legacy ethical metrics using /instance endpoint
  5. Send unregister with dontSendUnregisterNotification https://github.com/dappnode/monitor-proxy/blob/a26edf0b77ba42ea5f54816c1822e97470fd15ad/src/apis/server/register/types.ts#L7. This will be using the socks from tor ethical metrics pkg
  6. Installs new tor core package
  7. Sends "register" request to proxy with dontSendWelcomeNotification https://github.com/dappnode/monitor-proxy/blob/a26edf0b77ba42ea5f54816c1822e97470fd15ad/src/apis/server/register/types.ts#L15. This will be using the socks from tor core package
  8. Removes legacy ethical metrics

This will entail data historic lost

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant