Skip to content

Commit

Permalink
Monitor service github workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
HetavShah committed Jul 4, 2023
1 parent 1c0092a commit 8203ea5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions monitor/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@ app.get('/monitor/scrap', async (req: Request, res: Response) => {
const productMetric = await axios.get('http://product-srv:9000/metrics');
const paymentMetric = await axios.get('http://payment-srv:9000/metrics');
const orderMetric = await axios.get('http://order-srv:9000/metrics');
// console.log(userMetric)
const allMetrics = {
'user-service': userMetric.data,
'payment-service': paymentMetric.data,
'order-service': orderMetric.data,
'product-service':productMetric.data
};
// console.log(allMetrics);
res.status(200).send(allMetrics);
} catch (err) {
console.log(err);
Expand Down

0 comments on commit 8203ea5

Please sign in to comment.