Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 785 Bytes

README.md

File metadata and controls

31 lines (23 loc) · 785 Bytes

sql-feed-graphite

Read datas from SQL database and send metrics to Graphite

How to install

Using pip

pip install sql-feed-graphite

From git rpo

git clone https://github.com/orachide/sql-feed-graphite.git
cd sql-feed-graphite
python setup.py build
python setup.py install

Docker image

A Docker image with cron job to execute sql-feed-graphite is available here

Configuration

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/'