No commit activity in last 3 years
No release in over 3 years
Norikra listener plugin to post service metrics for Mackerel.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
~> 10.0

Runtime

 Project Readme

Norikra::Listener::Mackerel

Description

Norikra listener plugin to post service metrics for Mackerel.

Installation

$ gem install norikra-listener-mackerel

Usage

Add your query with group MACKEREL(service_name,[mackerel_api_key]).

If API key is not specified, read it from environment variable MACKEREL_APIKEY.

If service_name includes . (e.g. foo.bar), post to service foo with metrics prefix bar.

Examples

SELECT sum(foo) AS foo_sum, avg(foo) AS foo_avg FROM bar_target.win:time_batch(1 min)
-- group MACKEREL(baz_service)

Post service metrics "foo_sum" and "foo_avg" to service "baz_service".

SELECT sum(foo) AS foo_sum, avg(foo) AS foo_avg FROM bar_target.win:time_batch(1 min)
-- group MACKEREL(baz_service.xxx)

Post service metrics "xxx.foo_sum" and "xxx.foo_avg" to service "baz_service".

Author

Fujiwara Shunichiro fujiwara.shunichiro@gmail.com

License

GPLv2