mirror of
https://github.com/stronk-dev/LivepeerEvents.git
synced 2025-07-06 03:05:10 +02:00
Changed endpoit address for prometheus
This commit is contained in:
parent
6f2c2016e1
commit
cb8c2fb58b
@ -624,7 +624,7 @@ apiRouter.post("/getOrchestratorByDelegator", async (req, res) => {
|
|||||||
|
|
||||||
|
|
||||||
// Export livepeer and eth coin prices and L1 Eth gas price
|
// Export livepeer and eth coin prices and L1 Eth gas price
|
||||||
apiRouter.get("/prometheus", async (req, res) => {
|
apiRouter.get("/prometheus/:orchAddr", async (req, res) => {
|
||||||
try {
|
try {
|
||||||
const now = new Date().getTime();
|
const now = new Date().getTime();
|
||||||
// Update blockchain data if the cached data has expired
|
// Update blockchain data if the cached data has expired
|
||||||
@ -706,7 +706,7 @@ apiRouter.get("/prometheus", async (req, res) => {
|
|||||||
outputString += serviceUriFeeCostL2 + "\n\n";
|
outputString += serviceUriFeeCostL2 + "\n\n";
|
||||||
|
|
||||||
// Get requested orchestrator info if it is requested
|
// Get requested orchestrator info if it is requested
|
||||||
let reqOrch = req.query.orch;
|
let reqOrch = req.params.orchAddr;
|
||||||
let orchObj = {};
|
let orchObj = {};
|
||||||
if (reqOrch && reqOrch !== "") {
|
if (reqOrch && reqOrch !== "") {
|
||||||
orchObj = await parseOrchestrator(reqOrch);
|
orchObj = await parseOrchestrator(reqOrch);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user