Fix prometheus self-stake reporting

This commit is contained in:
Marco van Dijk 2022-03-07 21:25:31 +01:00
parent c1acb23b48
commit ce7293a906

View File

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