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?
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.