cobalt icon indicating copy to clipboard operation
cobalt copied to clipboard

add prometheus metrics

Open hyperdefined opened this issue 6 months ago • 2 comments

this PR adds prometheus compatible metrics. this is a replacement PR for #436.

  • failed/successful requests to each service
  • total http requests and durations
  • add metrics status to api JSON
  • enable with env, customize port (local to the container/host)

this does have some issues, like if the stream returns 0, it doesn't count it as an error (should look into).

this shouldn't break privacy policy, as nothing identifiable is tracked. however, instances that have it enabled should tell web to add it to the privacy policy, or include in popup about the instance.

hyperdefined avatar Jun 02 '25 00:06 hyperdefined

I just realized cobalt can spawn multiple, this won't work

hyperdefined avatar Jun 02 '25 01:06 hyperdefined

now supports clusters! needs testing

hyperdefined avatar Jun 04 '25 04:06 hyperdefined