Skip to content

srini-abhiram/Glances-Go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Glances-Go

Glances-Go Screenshot

A minimal, web-based system monitor inspired by Glances, built with Go and a simple HTML/CSS/JavaScript frontend.

Features

  • Real-time monitoring of system metrics.
  • Web-based interface accessible from any device on the network.
  • Lightweight and minimal resource usage.
  • Displays:
    • CPU Usage
    • Memory Usage
    • A list of running processes sorted by CPU usage.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Go (version 1.25.1 or later)

Installation

  1. Clone the repository:

    git clone https://github.com/srini-abhiram/glances-go.git
    cd glances-go
  2. Install dependencies: The project uses Go modules. Dependencies will be automatically downloaded when you build or run the application. To download them manually:

    go mod tidy

Usage

To run the application, execute the following command from the root of the project directory:

go run .

The application will start a web server on port 8080.

Open your web browser and navigate to http://localhost:8080 to see the Glances-Go dashboard.

Building for Production

You can build a single executable for production:

go build -o glances-go

Then run the executable:

./glances-go

Technology Stack

  • Backend: Go
    • net/http for the web server.
    • github.com/shirou/gopsutil for collecting system metrics.
  • Frontend:
    • HTML
    • CSS
    • JavaScript

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

About

A simple top/htop web-based alternative built using Go

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •