metronic rabbit
A library that provides both publishing and subscribing adapters for metronic. This allows a service to publish metrics to a rabbit exchange and have downstream subscribers use other metronic adapters to integrate with various APM tools. (statsd, graphite, boundary, etc.)
Publish
Configuration
// defaults shown fanout: "metronic-all-ex" topic: "metronic-topic-ex" connection: name: "metronic" user: "guest" pass: "guest" server: "127.0.0.1" port: 5672 timeout: 2000 vhost: "%2f"
Use
var metronic = ;var config = ... ;var publisher = ;metronic;
Subscribe
Configuration
// defaults shown fanout: "metronic-all-ex" topic: "metronic-topic-ex" connection: name: "metronic" user: "guest" pass: "guest" server: "127.0.0.1" port: 5672 timeout: 2000 vhost: "%2f" queue: autoDelete: true durable: false persistent: false noAck: true topics:
Use
var metronic = ;// default values shownvar statsd = server: "localhost" port: 8125 ;metronic; var config = ... ; ;