Skip to content

guptadev21/rust-node-metrics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node Exporter

Node Exporter is a powerful monitoring tool written in Rust. It collects various system metrics and exposes them to scrape.

MongoDB Setup in Docker

To set up MongoDB in Docker on port 27017, follow these steps:

  1. Install Docker on your machine if you haven't already.
  2. Open a terminal and run the following command to pull the MongoDB Docker image:
docker pull mongo
  1. Once the image is downloaded, run the following command to start a MongoDB container:
docker run -d -p 27017:27017 --name mongodb mongo
  1. MongoDB will now be running in a Docker container, accessible on port 27017.

Installation

To install Node Exporter, follow these steps:

  1. Download the latest release from this repository.
  2. Extract the downloaded archive to a directory of your choice.
  3. Open a terminal and navigate to the extracted directory.
  4. Run the following command to start Node Exporter:
cargo build 
cargo run
  1. Node Exporter will now be running.

To see data

  1. Install the required dependencies by running the following command:
pip install Flask pymongo
  1. Start the Flask application by running the following command:
python app.py
  1. Open your web browser and navigate to http://localhost:5000 to access the Flask application.

  2. If the Flask application is working fine, you should see the json data.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published