DNP_DAPPMANAGER
DNP_DAPPMANAGER copied to clipboard
Implement ethical metrics migration
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:
- Install new core
- New dappmanager starts
- Dappmanager realizes that ethical metrics legacy is running
- Dappmanager fetches tor instance from legacy ethical metrics using
/instance
endpoint - 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 - Installs new tor core package
- 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 - Removes legacy ethical metrics
This will entail data historic lost