Skip to content

orachide/sql-feed-graphite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Read datas from SQL database and send metrics to Graphite

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages