What does this pull request do? Explain your changes. (required)
This pull request renames the metrics related to Broadcaster to Gateway, following a team decision. More details can be found in the discussion here: Team Discussion Link.
Specific updates (required)
Adds new gateway_deposit and gateway_reserve metrics to census while keeping the old metrics for back-compatibility.
How did you test each of these updates (required)
Started a on-chain gateway node using the -gateway flag and checked the metrics show up correctly:
# HELP livepeer_broadcaster_deposit Current remaining deposit for the gateway node
# TYPE livepeer_broadcaster_deposit gauge
livepeer_broadcaster_deposit{node_id="0x491F5F5664f11a1e0Ba6902A8cA37C09150bE0DB-ricks-TESTBENCH",node_type="bctr"} 7.6e+06
# HELP livepeer_broadcaster_reserve Current remaining reserve for the gateway node
# TYPE livepeer_broadcaster_reserve gauge
livepeer_broadcaster_reserve{node_id="0x491F5F5664f11a1e0Ba6902A8cA37C09150bE0DB-ricks-TESTBENCH",node_type="bctr"} 2e+07
# HELP livepeer_current_sessions_total Number of streams currently transcoding
# TYPE livepeer_current_sessions_total gauge
livepeer_current_sessions_total{node_id="0x491F5F5664f11a1e0Ba6902A8cA37C09150bE0DB-ricks-TESTBENCH",node_type="bctr"} 0
# HELP livepeer_gateway_deposit Current remaining deposit for the gateway node
# TYPE livepeer_gateway_deposit gauge
livepeer_gateway_deposit{node_id="0x491F5F5664f11a1e0Ba6902A8cA37C09150bE0DB-ricks-TESTBENCH",node_type="bctr"} 7.6e+06
# HELP livepeer_gateway_reserve Current remaining reserve for the gateway node
# TYPE livepeer_gateway_reserve gauge
What does this pull request do? Explain your changes. (required)
This pull request renames the metrics related to Broadcaster to Gateway, following a team decision. More details can be found in the discussion here: Team Discussion Link.
Specific updates (required)
gateway_deposit
andgateway_reserve
metrics to census while keeping the old metrics for back-compatibility.How did you test each of these updates (required)
-gateway
flag and checked the metrics show up correctly:Does this pull request close any open issues?
AI-LIV-357
Checklist:
make
runs successfully./test.sh
passTestSubmitSegment_HttpPostError
server test does fails on my system but I don't think it is related to my changesTest Logs
```bash --- FAIL: TestSubmitSegment_HttpPostError (0.00s) segment_rpc_test.go:1708: Error Trace: /home/ricks/development/work/livepeer/ai_spe/go-livepeer/server/segment_rpc_test.go:1708 Error: "\r\n404 Not Found
404 Not Found