Skip to content

add prometheus metrics #1309

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft

Conversation

hyperdefined
Copy link
Contributor

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
Copy link
Contributor Author

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

@wukko wukko marked this pull request as draft June 3, 2025 06:37
@hyperdefined
Copy link
Contributor Author

now supports clusters! needs testing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant