https://github.com/makefu/statser
a multiplatform Statistics collector written in python
https://github.com/makefu/statser
Last synced: 8 months ago
JSON representation
a multiplatform Statistics collector written in python
- Host: GitHub
- URL: https://github.com/makefu/statser
- Owner: makefu
- License: other
- Created: 2012-06-19T08:16:28.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2012-06-21T12:26:06.000Z (about 14 years ago)
- Last Synced: 2024-12-27T16:30:31.402Z (over 1 year ago)
- Language: Python
- Size: 138 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Statser
Statser gathers basic stats from the operating system with the help of psutil
and python.
Focus is portability and therefore the ability to have a usable stats generator
working under windows and linux. primarily windows as currently there is
nothing usable under windows which generates stats and writes them to for
example graphite.
# Graphite Support
Primary target is the ability to write stats to a graphite node, still it
should not be too hard to append more possible targets, even though these are
not in scope.
# Develop
## General Development
virtualenv .
. bin/activate
pip install -r deps.lst
## Windows Caveats
Statser currently only depends on `psutil`, if pip fails for you for one reason or another (e.g. requiring vc compiler),
consider installing `psutil` by hand from [http://code.google.com/p/psutil/] and set your PATH to c:\\PythonXX\;
# Testing
python -m unittest discover test
# Run as Windows Service
Open Admin command shell
cd $HERE/statser
copy statser.json c:\
python service.py --startup auto install
python service.py start