This project is a Node.js application that integrates with Prometheus for monitoring metrics. It uses Express as the web framework and provides an endpoint to simulate user data retrieval.
- User data retrieval endpoint
- Prometheus metrics integration
- Docker support for easy deployment
- Clone the repository:
git clone https://github.com/sumeetghumare4/prometheus-monitoring.git cd prometheus-monitoring - Install dependencies:
npm install
- Build the application:
npm run build
- Start the application:
npm start
- Access the application at
http://localhost:3000/user
To run the application using Docker, use the following command:
docker-compose upThis will start the Node.js application, Prometheus, and Grafana services.
- Access Prometheus at
http://localhost:9090 - Access Grafana at
http://localhost:3001
- The Prometheus configuration is located in
prometheus.yml. - The application exposes metrics that can be scraped by Prometheus.
This project is licensed under the ISC License.