cobalt
cobalt copied to clipboard
add prometheus metrics
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.
I just realized cobalt can spawn multiple, this won't work
now supports clusters! needs testing