How can I add my telemetry server to nearcore config.json?

103 Views Asked by At

I want to read telemetry data from nearcore and I know the node is compatible with Prometheus. The file config.json contains the voice telemetry, which points to NEAR block explorer:

 "telemetry": {
    "endpoints": [
      "https://explorer.betanet.nearprotocol.com/api/nodes"
    ]
  },

Can I add my own telemetry server to that array? Which port should I open on the firewall?

1

There are 1 best solutions below

3
On BEST ANSWER

You'll need to host a near explorer: https://github.com/near/near-explorer and use its url as telemetry server. Telemetry request is outbound traffic from neard (request is from neard to the explorer), so you don't need to open any port for neard node.