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
{{ message }}
This repository has been archived by the owner on May 6, 2021. It is now read-only.
For a single namespace, we can already get this information via the IsIdle API. However, what I have in mind is more a list of all known namespaces of the form: namespace -> [running|idle].
The API could return the plain list as JSON (first step), but then also offer aggregation directly, aka "600 out of 1000 Jenkins instances idle".
One way to go about this is to build something into the UserIdler. This is where we have a list of known namespaces to us. We could either on request let every UserIdler (in a goroutine) determine the state of the Jenkins instance or maybe even more simply we just keep the latest known state as a struct member. This way we don't have to run any additional requests. Most likely we need three states in this case running, idled, unknown. That's acceptable though imo.
It would be nice if the Idler could report things like, "x% of Jenkins instances idled". Also, a list of running and idled instances would be useful.
This information should be accessible via some REST API.
The text was updated successfully, but these errors were encountered: