Some metrics should be added to Cheogram for increased observability
Some ideas:
- Count on registration (and error)
- Count on unregister
- Gauge of media cache size on new cache
-
Count on cache hit rate. Many cache hits will mean someone’s sending the same file many times or something? - Timer on latency to store a URI in the cache
- Count on startup (easy way to get graph of startups over time)
-
Count on command list fetch (and error) - Timer on command list fetch latency
- Count on message forwarded to backend (and error)
- Should we tag by which backend?
- We don’t want a tag explosion, but in practice there aren’t a lot, and it may be helpful for knowing where all the errors are suddenly coming from, etc
- ~~ Count on message sent by unregistered user ~~
- ~~ Count on message discarded / rejected ~~
- Unsure what these might be, I’d have to look
- We don’t want to just count every stanza we don’t recognize, because that’s useless.
-
Count on presence request (and error) - Timer on presence fetch latency
- Count on request sent to default backend
-
Count on command passthrough- Probably could tag this one by command node
- Timer on latency of command response through passthrough
- [x ] Also tag on command node
- ~~ Count on command run by adhoc bot (and error) ~~
- Timer on command latency seen by adhoc bot
- Count on message received to adhoc bot