openshift / origin-metrics

79 stars 113 forks source link

Query to get only active projects/tenants from hawkular #71

Closed ghost closed 8 years ago

ghost commented 8 years ago

Hello, I am currently using https://hawkular-service/hawkular/metrics/tenants to get a list of all tenants/projects in the openshift env. The response I get also includes projects that have been deleted (or which are not active in terms of openshift). Could you kindly let me know how to change this query to get only the active projects?

Thanks, Shilpa

mwringe commented 8 years ago

Hawkular Metrics currently only keeps track of metrics and not the state of projects in OpenShift. The best way to determine a project's status would be to query OpenShift directly (https://docs.openshift.org/latest/rest_api/index.html or via one of the kubernetes client tools)

mwringe commented 8 years ago

Housekeeping to close older issues. If you think this issue is not resolved, please reopen it.