Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitades committed Oct 22, 2023
1 parent af67ca7 commit 3371d64
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/rmq/metrics-proxy/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ const server = http.createServer(async (req, res) => {
const rmqMetricsEp = `${process.env.RMQ_ADDRESS}/metrics`;

http.get(rmqMetricsEp, (rres) => {
console.log("rabbitmq responded")
res.setHeader("Content-type", rres.headers["content-type"]);
res.writeHead(rres.statusCode);
console.log("status is " + rres.statusCode);
rres.on("data", res.write.bind(res));
rres.on("end", res.end.bind(res));
});
Expand Down

0 comments on commit 3371d64

Please sign in to comment.