From c1acb23b488ec2eb905bea3baa7d9b080ff17fff Mon Sep 17 00:00:00 2001 From: Marco van Dijk Date: Mon, 7 Mar 2022 15:43:50 +0100 Subject: [PATCH] Fix self stake in prometheus output --- backend/src/routes/livepeer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/routes/livepeer.js b/backend/src/routes/livepeer.js index 4cf4325..1ec8a1a 100644 --- a/backend/src/routes/livepeer.js +++ b/backend/src/routes/livepeer.js @@ -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