This is a demo Go app that shows how you can collect system metrics. The metrics can be viewed via a UI or simple API.
- Clone this repo
- Run
make build
To run the app start the container with:
docker run -p 8080:8080 eye-of-sauron
By default the application will report on container stats. To get host stats start the app with the following:
docker run -p 8080:8080 -v /proc:/host/proc:ro -e HOST_PROC=/host/proc eye-of-sauron
Once the application is running you can access the UI at http://localhost:8080/
The API docs can be accessed at http://localhost:8080/swagger/index.html
You can change the frequency metrics are collected by editing eye-of-sauron.yml
.
You will need to rebuild after config changes.