Skip to content

A gateway application which receives AMQP messages (in graphite format) and sends them to OpenTSDB

Notifications You must be signed in to change notification settings

kfuglsang/collectd-amqp-graphite-opentsdb-gateway

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AMQP to Graphite and OpenTSDB gateways.

Input format is assumed to be either in graphite format:

some.metric.name.datacenter.host value timestamp

Or in json format:
{"datacenter":"east_coast","timestamp":12345678,"value":123.12,"metric":"some.metric.name","host":"127.0.0.1"}

Note: Multiple metrics can be sent in one AMQP message, as long as each entry is seperated by a newline character (\n)

The OpenTSDB gateway will transform datacenter and host to be tags.

The compression option specifies that the data is compressed with Snappy. Requires Compress::Snappy perl module to be installed.

Command line options:

perl amqp_consumer_opentsdb.pl \
--var amqp_host=127.0.0.1 \
--var amqp_port=5672 \
--var amqp_user=username \
--var amqp_password=password \
--var amqp_vhost=/vhost \
--var amqp_exchange=metrics \
--var amqp_queue=queue \
--var opentsdb_host=127.0.0.1 \
--var opentsdb_port=4242 \
--var debug=1 \
--var input_format=<json|graphite> \
--var compress=<1|0>
TODO:

About

A gateway application which receives AMQP messages (in graphite format) and sends them to OpenTSDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Perl 100.0%