Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Log delays in delivery of toots #5225
After Japan national day of load testing, aka televising of "Castle in the Sky" on which many internet users post "balse" to SNSs, I noticed Mastodon doesn't have metrics that indicate how it is communicating to the fedeverse.
This change is to add logs like below that will show how quickly Mastodon is delivering toots to remote instances as a good measure of how quickly Mastodon is working on queued tasks.
The additional metrics can be visualized with, e.g., Librato like below.
Have you tried hooking up Mastodon to statsd? When configured, Mastodon sends render times, query times, cache hits, and sidekiq processing times to statsd, which can output them into a time series database. Perhaps you could make this be a statsd invocation too, instead of a log entry?
I'm withdrawing this pull request.
Hooking up statsd+Datadog and viewing some code, I found that some of Sidekiq queue are already reporting latency. As for Mastodon,
this pull request+Librato