ravening opened a new pull request #4365: URL: https://github.com/apache/cloudstack/pull/4365
## Description <!--- Describe your changes in detail --> We should have the metrics for the hosts which are dedicated to certain domains. We should also be able to see cpu/memory/storage currently used per domain ## Types of changes <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [X] Enhancement (improves an existing feature and functionality) ## Screenshots (if appropriate): ## How Has This Been Tested? <!-- Please describe in detail how you tested your changes. --> <!-- Include details of your testing environment, and the tests you ran to --> <!-- see how your change affects other areas of the code, etc. --> Enable prometheus server Add 127.0.0.1 as allowed Ip so that you can fetch metrics from prometheus Now fetch the endpoint ``` # http http://127.0.0.1:9595/metrics | grep cloudstack_host_is_dedicated cloudstack_host_is_dedicated{zone="mgt122-10",hostname="node11",ip="10.13.122.11"} 1 # http http://127.0.0.1:9595/metrics | grep cloudstack_host_dedicated_to_account cloudstack_host_dedicated_to_account{zone="mgt122-10",hostname="node11",ip="10.13.122.11"} 1 ``` <!-- Please read the [CONTRIBUTING](https://github.com/apache/cloudstack/blob/master/CONTRIBUTING.md) document --> ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
