---
title: "Comment by Nicolas Pernoud on \"Next.js Monitoring: From Setup to Visualization with Prometheus and Grafana\" | Hashnode"
description: "Nice article. I would need more detail on how and where to put the prometheus service. Is this a kind of middleware that run for every request ? If not, how can"
url: "https://hashnode.com/posts/nextjs-monitoring-from-setup-to-visualization-with-prometheus-and-grafana/651fd35505b6dab4843b6d95/comment/65e1b7ff942a191401556fab"
---

[Discussion](https://hashnode.com/posts/nextjs-monitoring-from-setup-to-visualization-with-prometheus-and-grafana/651fd35505b6dab4843b6d95)

Comment [Next.js Monitoring: From Setup to Visualization with Prometheus and Grafana](https://hashnode.com/posts/nextjs-monitoring-from-setup-to-visualization-with-prometheus-and-grafana/651fd35505b6dab4843b6d95)

[Nicolas Pernoud](https://hashnode.com/@npernoud)

[Mar 1, 2024](https://hashnode.com/posts/nextjs-monitoring-from-setup-to-visualization-with-prometheus-and-grafana/651fd35505b6dab4843b6d95/comment/65e1b7ff942a191401556fab)

Nice article. I would need more detail on how and where to put the prometheus service. Is this a kind of middleware that run for every request ? If not, how can we get the web\_server\_events easily for all requests ? Is there maybe a github full example ?
