Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bloveless/proc-peepin
Capture process cpu and memory and send it off to influx
https://github.com/bloveless/proc-peepin
Last synced: 23 days ago
JSON representation
Capture process cpu and memory and send it off to influx
- Host: GitHub
- URL: https://github.com/bloveless/proc-peepin
- Owner: bloveless
- License: mit
- Created: 2022-02-13T21:15:07.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-15T17:16:24.000Z (almost 3 years ago)
- Last Synced: 2024-11-06T18:01:40.845Z (2 months ago)
- Language: Go
- Size: 11.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# proc-peepin
Capture process cpu and memory and send it off to influx## Running locally
Rename .env.local to .env and update the environment variables.Finally, run `go run main.go`.
**NOTE**: If you are running on MacOS you'll need to run `sudo go run main.go`.
## Using systemd
Update the environment variables in the systemd/proc-peepin.service file.Run `systemctl daemon-reload` then start the timer `systemctl start proc-peepin.timer` and enable it on boot `systemctl enable proc-peepin.timer`. Verify the timer is running by running `systemctl list-timers --all`. Finally, watch the logs by running `journalctl -fu proc-peepin`.