core icon indicating copy to clipboard operation
core copied to clipboard

Add metrics integration

Open devth opened this issue 10 years ago • 4 comments

https://github.com/sjl/metrics-clojure

devth avatar Sep 30 '14 13:09 devth

Hey, do you have any ideas for cool or useful things to measure? Wouldn't mind having a go at this.

LeonmanRolls avatar Apr 08 '17 00:04 LeonmanRolls

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?

  1. number of commands invoked per hour/day/month/etc
  2. "punch card" - when yetibot is used most frequently
  3. 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 :)
  4. list of users by number of commands invoked, sorted by the latter
  5. 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!

devth avatar Apr 08 '17 15:04 devth

@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.

devth avatar Apr 08 '17 15:04 devth

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 :)

LeonmanRolls avatar Apr 09 '17 14:04 LeonmanRolls