- The main idea is to read system statistics from the proc virtual filesystem (pvf) in real-time.
- Right now, I've only cleaned up the memory information part, but the plan is to expand this application into the entirety of proc filesystem. This project is maintained in my free time, so I don't recommend using this in mission-critical environments.
- More on the proc filesystem can be found below:
- Linux Kernel Docs | The /proc Filesystem
- Per GPT-3.5:
- The proc filesystem in Linux is a filesystem that provides a way of interacting with the kernel's data structures and retrieving information about system resources and processes. It does not contain actual files on disk, rather it is generated by the kernel at runtime and provides a view of the system's state. It is mounted at /proc and contains a hierarchy of directories representing different aspects of the system, such as /proc/cpuinfo for information about the CPU, /proc/meminfo for information about memory usage, and /proc/uptime for system uptime.
To start your Phoenix server:
- Configure
config/dev.exs
(omitted for security purposes) - Install dependencies with
mix deps.get
- Create and migrate your database with
mix ecto.create
, thenmix ecto.migrate
- Install Node.js dependencies with
npm install
inside theassets
directory - Start Phoenix endpoint with
mix phx.server
, or run interactively without server usingiex -S mix
- To begin OS data "generators", uncomment appropriate lines in
lib/systemstats/application.ex
Now you can visit localhost:4000
from your browser.
Ready to run in production? Please check our deployment guides.
- Official website: https://www.phoenixframework.org/
- Guides: https://hexdocs.pm/phoenix/overview.html
- Docs: https://hexdocs.pm/phoenix
- Forum: https://elixirforum.com/c/phoenix-forum
- Source: https://github.com/phoenixframework/phoenix