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
If we want to use https://github.com/akoutmos/prom_ex we would need to wait for the next version due to a bug that is in the current version on hex that has been fixed but not pushed out where if the response body for http requests are nil prom_ex pull request 54
I think PromEx covered most of the points tbh. It's kinda then around wrapping specific things - eg. Mailgun calls, or Spaces Uploads. Stream viewer counts...
Likely using https://github.com/akoutmos/prom_ex
Namespace/key prefix under
glimesh_
To state the obvious, the labels chosen and values that the labels can be must be controlled
Do we care about exposing these metrics?If so, will likely need some level of auth in frontBasic auth, or static env based Bearer I would expect?I don't think there is any proxy in-front of Glimesh in prod, (just a DO LB?), so we can't add protection thereProbably will be polled every 5 - 15 seconds or so
Metric Ideas
Comments appreciated - I'm sure some of these are either not possible or just not worth doing considering Phoenix etc.
Probably 2 different areas I would expect histogram duration based metrics
On specific (say, 30 max?) incoming HTTP paths
glimesh_http_request_duration_seconds
histogram. Labels forcode
(HTTP status code),method
(HTTP method),handler
/api/oauth/token
and/api
would be suitable for this I think? Not sure what other paths there are (excluding websocket)/streams/gaming
,/streams/education
?)Specific functions that you wrap
glimesh_api_processing_duration_seconds
histogram ? then asource
orresource
or handler` label?Appsignal.instrument
I thinkGauges and Counters?
process_cpu_seconds_total
for "Total user and system CPU time spent in seconds"?process_start_time_seconds
"Start time of the process since unix epoch in seconds."The text was updated successfully, but these errors were encountered: