DNP_DAPPMANAGER icon indicating copy to clipboard operation
DNP_DAPPMANAGER copied to clipboard

Implement ethical metrics migration

Open pablomendezroyo opened this issue 7 months ago • 0 comments

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

pablomendezroyo avatar Jul 25 '24 11:07 pablomendezroyo