Node.js Application Monitoring with Prometheus and Grafana
The repository contains a sample Node.js app that integrates the Prometheus client for node.js and exposes metrics on http://localhost:8080/metrics. The metrics are periodically scraped by Prometheus and visualized through a Grafana monitoring dashboard.
This app is deployed on a container instance in Azure Link to app
Make sure that you have Docker and Docker Compose installed:
Clone the repository:
git clone https://github.com/inesouledelhaj/devops-app.gitNavigate into the project directory:
cd devops-appStart the Docker containers:
docker-compose up -d- Prometheus should be accessible via http://localhost:9090
- Grafana should be accessible via http://localhost:3000
- Example Node.js server metrics for monitoring should be accessible via http://localhost:8080/metrics
Open in your web browser the monitoring dashboards:
