No commit activity in last 3 years
No release in over 3 years
Run queries on postgresql and report results back to riemann
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.17.1
 Project Readme

Riemann Postgresql Query

Gitter

Gem Version

A simple postgresql riemann client based on https://github.com/riemann/riemann-postgresql Runs a query on postgres and emits the result to riemann.

Queries should return a single row of numeric values.

Installation

gem install riemann-postgresql-query

Usage

riemann-postgresql-query --postgresql-database "test" --postgresql-username "admin" --query "SELECT MAX(price), MIN(stock) FROM products LIMIT 1;" --service "products-table"

Will result in the following events:

{:host=>"localhost",
 :service=>"pi-pages-table-price",
 :metric=>700.0,
 :state=>"ok",
 :description=>"SELECT MAX(price) as price, MIN(stock) FROM pages;",
 :tags=>["postgresql"]}
{:host=>"localhost",
 :service=>"pi-pages-table-min",
 :metric=>1.0,
 :state=>"ok",
 :description=>"SELECT MAX(price) as price, MIN(stock) FROM pages;",
 :tags=>["postgresql"]}