Node Exporter is a powerful monitoring tool written in Rust. It collects various system metrics and exposes them to scrape.
To set up MongoDB in Docker on port 27017, follow these steps:
- Install Docker on your machine if you haven't already.
- Open a terminal and run the following command to pull the MongoDB Docker image:
docker pull mongo
- Once the image is downloaded, run the following command to start a MongoDB container:
docker run -d -p 27017:27017 --name mongodb mongo
- MongoDB will now be running in a Docker container, accessible on port 27017.
To install Node Exporter, follow these steps:
- Download the latest release from this repository.
- Extract the downloaded archive to a directory of your choice.
- Open a terminal and navigate to the extracted directory.
- Run the following command to start Node Exporter:
cargo build
cargo run
- Node Exporter will now be running.
- Install the required dependencies by running the following command:
pip install Flask pymongo
- Start the Flask application by running the following command:
python app.py
-
Open your web browser and navigate to
http://localhost:5000
to access the Flask application. -
If the Flask application is working fine, you should see the json data.