core
core copied to clipboard
Add metrics integration
https://github.com/sjl/metrics-clojure
Hey, do you have any ideas for cool or useful things to measure? Wouldn't mind having a go at this.
Hey @LeonmanRolls! Here are some ideas; feel free to add your thoughts. I haven't used the metrics
lib so I have no idea what the implementation will look like or how hard these are to capture. Maybe can pick just a few of these to start?
- number of commands invoked per hour/day/month/etc
- "punch card" - when yetibot is used most frequently
- command latency percentiles: 100, 99, 98, 95, 90, 85, ...
- would be really cool if we could capture how much of that was spent in IO vs cpu but I'm guessing that would require some heavy plumbing. maybe phase 2 :)
- list of users by number of commands invoked, sorted by the latter
- top categories of commands (category is stored as metadata on the command function)
Could probably come up with a lot more but here's a starting point!
@LeonmanRolls also, FYI Yetibot is running an http server; the public Yetibot instance is at public.yetibot.com. Doesn't do much now but that could be a cool place to render a view of the metrics.
Also join up on Yetibot Slack if you'd like and I can provide a bot key for you to test your local Yetibot.
Those are great! I think i'll implement and render each point one at a time. I'll also join the slack, see you there :)