Skip to content
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

export prometheus metrics #770

Open
Tracked by #597
olevski opened this issue Nov 27, 2024 · 0 comments
Open
Tracked by #597

export prometheus metrics #770

olevski opened this issue Nov 27, 2024 · 0 comments

Comments

@olevski
Copy link
Member

olevski commented Nov 27, 2024

We should export some simple prometheus metrics from the operator:

  • session launches (should be a counter), add authentication type as a single metric label (this way we can distinguish anonymous and registered sessions)
  • session deletions (should be a counter) same labels as the launches counter above
  • existing sessions (should be a gauge), separate by labels for status (Ready, Not Ready, Failing, Running) and idleness
  • hibernated sessions (should be a gauge)

We can use the golang prometheus library. https://github.com/prometheus/client_golang

It would be nice if the metrics code is a bit isolated into its own package.

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

No branches or pull requests

1 participant