aligned_layer icon indicating copy to clipboard operation
aligned_layer copied to clipboard

feat(telemetry): Add url data to operator updates on telemetry service

Open JulianVentura opened this issue 1 year ago • 0 comments

Description

[!Warning] Merge after #1075

This PR adds new data to be updated for each operator on the telemetry service, which includes:

  • eth_rpc_url
  • eth_rpc_url_fallback
  • eth_ws_url
  • eth_ws_url_fallback
  • version (this one was already present)

The implementation is also updated from the operator's side.

Testing

In order to test, the following steps were taken:

  1. Start anvil and the aggregator with:
  • make anvil_start_with_block_time
  • make aggregator_start
  1. Build and register operator with:
  • make build_operator
  • make operator_full_registration CONFIG_FILE=config-files/config-operator-1.yaml
  1. Start telemetry service with:
  • make telemetry_clean_db
  • make telemetry_run_db
  • make telemetry_start
  1. Go to http://localhost:4001/api/operators and you should see the operator with its data fields. Some of them, like the version and RPC related should be set as null, since the operator is not up yet.
  2. Start the operator with make operator_start CONFIG_FILE=config-files/config-operator-1.yaml
  3. Go to http://localhost:4001/api/operators and you should see the operator, now with all fields with a certain value, including version and RPC related.

JulianVentura avatar Oct 01 '24 21:10 JulianVentura