yetibot / core

:expressionless: Core yetibot utilities, extracted for shared use among Yetibot and its various plugins
https://yetibot.com
Eclipse Public License 1.0
27 stars 17 forks source link

Add metrics integration #6

Open devth opened 9 years ago

devth commented 9 years ago

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

LeonmanRolls commented 7 years ago

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

devth commented 7 years ago

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 commented 7 years ago

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

LeonmanRolls commented 7 years ago

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