|
1 year ago | |
---|---|---|
.gitignore | 1 year ago | |
README.md | 1 year ago | |
config-sample.txt | 1 year ago | |
server-stats.png | 1 year ago | |
stats.py | 1 year ago |
Python script that gets realtime stats data from server.
stats.py
!sudo -u postgres createuser -D -A -P username
sudo -u postgres createdb -O username statsdb
config-sample.txt
(and rename to config.txt
) to specify the hostname of the server you would like to get data from, its DB
name and DB user../stats.py
to run regularly.Then you could graph your server stats with Grafana's PostgreSQL datasource!