fabric8-services / fabric8-jenkins-idler

OpenShift.io service to idle resp.unidle Jenkins instances
Apache License 2.0
4 stars 15 forks source link

Custom metrics should differentiate when idling content-repo or jenkins #200

Closed chmouel closed 6 years ago

chmouel commented 6 years ago

This code for custom metrics here :

https://github.com/fabric8-services/fabric8-jenkins-idler/blob/master/internal/api/api.go#L92-L100

Just record Idle, it should probably tell which service it is (content-repo or jenkins)

lordofthejars commented 6 years ago

Notice that https://github.com/fabric8-services/fabric8-jenkins-idler/blob/master/internal/api/api.go#L94 I am sending the service value as well, which contains these strings. https://github.com/fabric8-services/fabric8-jenkins-idler/blob/master/internal/api/api.go#L28