GithubHelp home page GithubHelp logo

yxhong-tw / servstat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from djosix/servstat

0.0 0.0 0.0 72 KB

Server resource and GPU process monitor.

JavaScript 6.99% Python 17.36% CSS 4.75% HTML 2.03% Vue 68.87%

servstat's Introduction

ServStat: Server Usage Monitoring Tool

ServStat is a robust tool designed to monitor multiple servers for CPU, memory, and GPU usage.

Demonstration Image

Backend Deployment

Ensure that you are logged in as the root user.

cd /root
git clone https://github.com/djosix/servstat.git .servstat
cd .servstat/backend

python3 -m pip install -r requirements.txt

To launch the API server:

python3 main.py --host=0.0.0.0 --port=9989

Optionally, you can manage the service with supervisor to ensure it always restarts after system reboots:

# Install supervisor
apt install supervisor

cp servstat.conf /etc/supervisor/conf.d/servstat.conf
vim /etc/supervisor/conf.d/servstat.conf # Customization allowed

systemctl reload supervisor
supervisorctl start servstat

Frontend Building Process

This process has been tested with Node.js v14.16.0 and Ubuntu 20.04.

git clone https://github.com/djosix/servstat.git
cd servstat/frontend

npm install

# Add your server configuration
vim public/config.json

# Build the static site
npm run build

# Or build with a custom base path
npx vite build --base=/base/path/

After building, serve the dist/ folder using a web server:

# Copy files to the document root
cp -r dist/* /var/www/html/

These instructions will assist you in getting a copy of the project up and running on your local machines for development and testing purposes.

servstat's People

Contributors

djosix avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.