Fix self stake in prometheus output

This commit is contained in:
Marco van Dijk 2022-03-07 15:43:50 +01:00
parent a4303af2c8
commit c1acb23b48

View File

@ -749,8 +749,8 @@ apiRouter.get("/prometheus/:orchAddr", async (req, res) => {
}
// Add O self stake
if (orchObj.delegator && orchObj.delegator.bondedAmount){
outputString += "# HELP orchestrator_total_stake Self stake of this Orchestrator.\n";
outputString += "# TYPE orchestrator_total_stake gauge\norchestrator_total_stake";
outputString += "# HELP orchestrator_self_stake Self stake of this Orchestrator.\n";
outputString += "# TYPE orchestrator_self_stake gauge\norchestrator_self_stake";
outputString += orchObj.delegator.bondedAmount + "\n\n";
}
// Add O total fees earned in eth