firehoseio / firehose

Build realtime Ruby web applications. Created by the fine folks at Poll Everywhere.
http://firehose.io/
MIT License
726 stars 72 forks source link

Add channel instrumentation & metrics to Firehose #57

Open bradgessler opened 8 years ago

bradgessler commented 8 years ago

Metrics on the following have been requested for Firehose:

Connection metrics

Implement these as a module in Firehose. We'll use the same Firehose server to track these metrics.

bradgessler commented 8 years ago

@ProTip can the connection metrics be measured from nginx connections? Are you looking for something more specific like WS vs LongPolling vs Multipi-plexing connections?

Also what time intervals are you looking for connections. Connections per second? Connections per minute? The time resolution will need to be known per metric that's to be measured.

ProTip commented 8 years ago

It would be beneficial to track the different types of connections/disconnections separately from nginx and from the POV of Firehose.

A lot of what we collect is at 10 second resolution. For the purposes of Firehose it should probably be configurable. We probably don't wan to expose the metrics as rates from Firehose; just the raw counts.

Do you have a strategy for efficiently flushing the metrics from all the Firehose workers to Redis?