You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ideal would also be to list our own process's usage specifically, including
database size
database WAL size
block storage used
memory used
cpu times etc
Remember to check out the open-telemetry naming specification for system stats (yes, the page is about metrics, but we're injecting metrics into wide-events so let's stick with the conventions).
Implementation
Two options I can think of:
Background thread that periodically posts these stats as an event
Inject them into every span we emit
I'm assuming getting this information requires syscalls, and as such its not reasonable to do (2) in the actual span processor. Instead we likely still want a background thread to periodically update the values.
https://docs.rs/sysinfo/latest/sysinfo/ is a popular option I found, but maybe do some more research first. We want something low-cost. I also see that macOs could be problematic due to security permissions - we'll have to check that out as well.
The text was updated successfully, but these errors were encountered:
We probably want to track at least the following:
Ideal would also be to list our own process's usage specifically, including
Remember to check out the open-telemetry naming specification for system stats (yes, the page is about metrics, but we're injecting metrics into wide-events so let's stick with the conventions).
Implementation
Two options I can think of:
I'm assuming getting this information requires syscalls, and as such its not reasonable to do (2) in the actual span processor. Instead we likely still want a background thread to periodically update the values.
https://docs.rs/sysinfo/latest/sysinfo/ is a popular option I found, but maybe do some more research first. We want something low-cost. I also see that macOs could be problematic due to security permissions - we'll have to check that out as well.
The text was updated successfully, but these errors were encountered: