Read datas from SQL database and send metrics to Graphite
pip install sql-feed-graphite
git clone https://github.com/orachide/sql-feed-graphite.git
cd sql-feed-graphite
python setup.py build
python setup.py install
A Docker image with cron job to execute sql-feed-graphite is available here
Followings environment variables can be used to configure the script
- SQL_FEED_GRAPHITE_DB_URL='postgresql://test:test@localhost:5432/test'
- SQL_FEED_GRAPHITE_PREFIX='metrics'
- SQL_FEED_GRAPHITE_HOST='localhost'
- SQL_FEED_GRAPHITE_PORT=5432
- SQL_FEED_GRAPHITE_QUERIES_DIR='/var/datas/queries/'