add a readme
This commit is contained in:
31
README.md
Normal file
31
README.md
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
# Collector
|
||||||
|
|
||||||
|
## Setup
|
||||||
|
|
||||||
|
Create a "collector.json" with the following format:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"graphite": {
|
||||||
|
"server": "graphite.ducoterra.net",
|
||||||
|
"port": 2003
|
||||||
|
},
|
||||||
|
"os": "osx", //osx or linux
|
||||||
|
"data": {
|
||||||
|
"storage": [
|
||||||
|
{
|
||||||
|
"path": "/Users/ducoterra",
|
||||||
|
"name": "home"
|
||||||
|
}, // as many paths as you want
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Make collect.py executable:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
chmod +x collect.py
|
||||||
|
```
|
||||||
|
|
||||||
|
Schedule a cronjob to run collect.py at your preferred interval
|
||||||
Reference in New Issue
Block a user