Skip to content

Matthew7758/Anomalocaris-OSMonitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note: right now this is a simple tech demo that only logs a certain amount of data to not blow up the DB, however this can be expanded upon to provide full metrics at a later date.

  1. Prerequisites Ensure you have the following installed on your machine:

Docker Desktop (Windows) or Docker Engine (Linux).

NVIDIA Container Toolkit (Required for GPU monitoring).

Java 21+ (For local development/testing).

Host Setup for NVIDIA GPU You must register the NVIDIA runtime with Docker to avoid driver mismatch errors.

Linux (CachyOS/Arch):

Bash sudo pacman -S --needed nvidia-container-toolkit sudo nvidia-ctk runtime configure --runtime=docker sudo systemctl restart docker Windows (PowerShell as Admin): Ensure you have the NVIDIA drivers installed, then enable the Docker engine integration in Docker Desktop settings under Resources > WSL Integration.

  1. Deployment Instructions Build and Run Use the following commands to initialize the database and the monitoring application.

Linux (Bash):

Bash docker-compose up --build -d

PowerShell docker-compose up --build -d

  1. Running Tests To verify the system integration, run the test suite provided in your backend/ directory.

Linux/Bash:

Bash cd backend ./mvnw clean test Windows/PowerShell:

PowerShell cd backend .\mvnw.cmd clean test

  1. Troubleshooting If you encounter ERR_CONNECTION_REFUSED:

Check Container Status:

Bash docker-compose ps If the app status is Exit, check logs: docker-compose logs app.

Verify Database: Ensure SPRING_R2DBC_URL in docker-compose.yml uses the service name db, not localhost.

Driver Mismatch: If you see Driver/library version mismatch, reboot your host machine to sync the NVIDIA kernel modules with your user-space drivers.

  1. Accessing the Dashboard Once the containers are healthy, access your monitoring dashboard via your web browser: http://localhost:8080/api/recent

About

Demo project for job interviews using Docker, PostgreSQL, Java 21+, Springboot, and Maven. Performance metrics dashboard that can be expanded upon.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors