This app lets you graph RAM usage of applications on your Mac. It was built and tested on Mac OS/X 10.13.6.
- Python 3
- Docker
- Clone this repo
- Run
pip3 install -r ./requirements.txt
to install the necessary Python modules
- Run
sudo ./get-ram-loop.sh
in one shell to start fetching RAM usage in logs.- You will be prompted for your password--this is normal so that the script can sudo to root.
- If you want to run without
sudo
, that is fine, but you will get stats only on your processes.
- Run
start-splunk.sh
to start up Splunk.- You will be presented with a list of how Splunk is configured. If you're happy, press ENTER, if not, press ctrl-C and adjust your environment variables.
Once Splunk is started, it will spin up an instance of Splunk Lab and then run Splunk. If you already have Splunk Lab, this will take about 10 seconds, if not, it could take a minute or more for the Docker container to be downloaded.
Once started, the Splunk instance can be accessed at https://localhost:8000/, unless you chose a different port.
I wrote a version of PS in Python called Better PS, and it uses the
PSUtil module to query the process list
and extract important process attributes and then print them up in a format that Splunk
can parse natively. This is far FAR saner than trying to parse the output of ps
.
Why are you not?
Feel free to hit me up on , Facebook, or via email if you would like to get in touch.