Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/didikz/gosysmon-web

Simple web based system monitor built with Go
https://github.com/didikz/gosysmon-web

go golang htmx websocket

Last synced: 12 days ago
JSON representation

Simple web based system monitor built with Go

Awesome Lists containing this project

README

        

# GoSysMon

Is a simple web based System Monitoring built with Go. It displays computer informations such are host, processes, memory, CPU, and disk. By using websocket, the data will automatically been refreshed within 5 seconds.

![alt text](screenshot.png "screenshot of system monitor")

> Learning reference: [https://www.youtube.com/watch?v=fBDUn7b9plw&list=LL&index=3&ab_channel=sigfault](https://www.youtube.com/watch?v=fBDUn7b9plw&list=LL&index=3&ab_channel=sigfault)

## Stacks

+ Go 1.23.1
+ HTMX
+ Websocket HTMX Extension
+ Tailwindcss
+ [Gopsutil](https://pkg.go.dev/github.com/shirou/gopsutil/v4)
+ [Websocket](https://github.com/coder/websocket)

## Running The Application

+ Copy env file `cp .env.example .env` and adjust you desire port (default port is `8000`)
+ Install dependencies

```bash
go mod tidy
```

+ Run the application locally

```bash
go run ./cmd/main.go
```

+ Visit `localhost:8000` or using your desired port defined in `.env` file