Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

Idler should offer statistics about Jenkins instances #118

Open
hferentschik opened this issue Feb 19, 2018 · 1 comment
Open

Idler should offer statistics about Jenkins instances #118

hferentschik opened this issue Feb 19, 2018 · 1 comment

Comments

@hferentschik
Copy link
Contributor

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.

@hferentschik
Copy link
Contributor Author

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.

@chmouel chmouel added this to the Spint-147 milestone Mar 28, 2018
@sthaha sthaha removed this from the Sprint-147 milestone Dec 21, 2018
@hrishin hrishin added this to the 160/L milestone Dec 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants