# Cheogram Metrics

**URL:** <https://hub.soprani.ca/t/cheogram-metrics/773>\
**Category:** Issues\
**Tags:** closed, cheogram\
**Created:** [July 14, 2022, 7:01pm UTC](https://hub.soprani.ca/t/cheogram-metrics/773 "2022-07-14T19:01:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![psycotica0](https://hub.soprani.ca/user_avatar/hub.soprani.ca/psycotica0/32/30_2.png) [@psycotica0](https://hub.soprani.ca/u/psycotica0)\
**Post date:** [July 14, 2022, 7:01pm UTC](https://hub.soprani.ca/t/cheogram-metrics/773/1 "2022-07-14T19:01:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![phdavis1027](https://hub.soprani.ca/letter_avatar_proxy/v4/letter/p/f475e1/32.png) [@phdavis1027](https://hub.soprani.ca/u/phdavis1027)\
**Post date:** [May 8, 2026, 4:47pm UTC](https://hub.soprani.ca/t/cheogram-metrics/773/2 "2026-05-08T16:47:29Z")

</div>

Since latency is emitted once per event, in general we can just replace all the count metrics with latency ones.

EDIT: turns out this was incredibly wrong

---

<div class="post-metadata">

**Author:** ![phdavis1027](https://hub.soprani.ca/letter_avatar_proxy/v4/letter/p/f475e1/32.png) [@phdavis1027](https://hub.soprani.ca/u/phdavis1027)\
**Post date:** [May 9, 2026, 2:49am UTC](https://hub.soprani.ca/t/cheogram-metrics/773/3 "2026-05-09T02:49:18Z")

</div>

```auto
[] Count on command run by adhoc bot (and error)
[] Timer on command latency seen by adhoc bot
[] Count on message received to adhoc bot

```

What do we think might distinguish these from the regular command count / latency metrics?

```auto
[] Count on request sent to default backend

```

Does this mean sgx-bwmsgsv2?

```auto
[] Count on command list fetch (and error)

```

Error on command list fetch makes sense but what’s the insight we gain from raw count?

```auto
[] Count on message forwarded to backend (and error) 

```

Seems sgx-jmp captures this already.

---

<div class="post-metadata">

**Author:** ![phdavis1027](https://hub.soprani.ca/letter_avatar_proxy/v4/letter/p/f475e1/32.png) [@phdavis1027](https://hub.soprani.ca/u/phdavis1027)\
**Post date:** [May 9, 2026, 5:25am UTC](https://hub.soprani.ca/t/cheogram-metrics/773/4 "2026-05-09T05:25:07Z")

</div>

```auto
[] 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.

```

Not sure what we hope to learn from these? Would be interested to learn, but the “unknown stanza” logs in prod are already kinda suffocating.

---

<div class="post-metadata">

**Author:** ![singpolyma](https://hub.soprani.ca/user_avatar/hub.soprani.ca/singpolyma/32/11_2.png) [@singpolyma](https://hub.soprani.ca/u/singpolyma)\
**Post date:** [May 11, 2026, 1:52pm UTC](https://hub.soprani.ca/t/cheogram-metrics/773/5 "2026-05-11T13:52:35Z")

</div>

at least one adhoc bot metric may be useful to see how much it gets used vs the main “front door” of command UI

---

<div class="post-metadata">

**Author:** ![singpolyma](https://hub.soprani.ca/user_avatar/hub.soprani.ca/singpolyma/32/11_2.png) [@singpolyma](https://hub.soprani.ca/u/singpolyma)\
**Post date:** [May 11, 2026, 1:53pm UTC](https://hub.soprani.ca/t/cheogram-metrics/773/6 "2026-05-11T13:53:35Z")

</div>

message sent by unregistered user is maybe interesting, but mostly useless because that feature is mostly blocked downstream at this point anyway

---

<div class="post-metadata">

**Author:** ![phdavis1027](https://hub.soprani.ca/letter_avatar_proxy/v4/letter/p/f475e1/32.png) [@phdavis1027](https://hub.soprani.ca/u/phdavis1027)\
**Post date:** [May 11, 2026, 3:36pm UTC](https://hub.soprani.ca/t/cheogram-metrics/773/7 "2026-05-11T15:36:51Z")

</div>

[https://pine-grove.exe.xyz/r/7/diff/1/#index\_header](https://pine-grove.exe.xyz/r/7/diff/1/#index_header)

[https://pine-grove.exe.xyz/r/9/diff/1/#index\_header](https://pine-grove.exe.xyz/r/9/diff/1/#index_header)

[https://pine-grove.exe.xyz/r/10/diff/1/#index\_header](https://pine-grove.exe.xyz/r/10/diff/1/#index_header)

[https://pine-grove.exe.xyz/r/3/](https://pine-grove.exe.xyz/r/3/)

[https://pine-grove.exe.xyz/r/8/](https://pine-grove.exe.xyz/r/8/)
