Prometheus exporter enhancement#4438
Conversation
|
Hi @soreana is this PR ready for review? |
|
@nvazquez a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✖️ centos7 ✔️ centos8 ✖️ debian. SL-JID 444 |
|
Hey @nvazquez |
|
@blueorangutan package |
|
@nvazquez a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ centos7 ✔️ centos8 ✔️ debian. SL-JID 452 |
|
@blueorangutan test |
|
@nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-1191)
|
engine/schema/src/main/java/com/cloud/capacity/dao/CapacityDaoImpl.java
Outdated
Show resolved
Hide resolved
engine/schema/src/main/java/com/cloud/capacity/dao/CapacityDaoImpl.java
Outdated
Show resolved
Hide resolved
engine/schema/src/main/java/com/cloud/capacity/dao/CapacityDaoImpl.java
Outdated
Show resolved
Hide resolved
engine/schema/src/main/java/com/cloud/vm/dao/VMInstanceDaoImpl.java
Outdated
Show resolved
Hide resolved
...egrations/prometheus/src/main/java/org/apache/cloudstack/metrics/PrometheusExporterImpl.java
Outdated
Show resolved
Hide resolved
|
@blueorangutan package |
|
@nvazquez a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian. SL-JID 814 |
|
@blueorangutan test |
|
@nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✖️ el7 ✔️ el8 ✖️ debian ✔️ suse15. SL-JID 1165 |
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 1237 |
7cac67a to
6aab64b
Compare
|
@blueorangutan package |
|
@DaanHoogland a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
@DaanHoogland, I noticed that the value for CPU allocated and CPU used are incorrect in my CloudStack test environment. Although I dug deeper, I noticed that those values are wrong in CloudStack itself and it wasn't related to the pr, and it was my test environment issue, not the PR. Did you encounter that issue recently? |
Codecov Report
@@ Coverage Diff @@
## main #4438 +/- ##
============================================
- Coverage 10.52% 10.52% -0.01%
Complexity 6784 6784
============================================
Files 2464 2464
Lines 243988 244167 +179
Branches 38185 38204 +19
============================================
+ Hits 25690 25696 +6
- Misses 215065 215238 +173
Partials 3233 3233
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
Packaging result: ✖️ el7 ✔️ el8 ✔️ debian ✖️ suse15. SL-JID 4306 |
|
SonarCloud Quality Gate failed. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 4313 |
|
@blueorangutan test matrix |
|
@DaanHoogland a Trillian-Jenkins matrix job (centos7 mgmt + xs71, centos7 mgmt + vmware65, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests |
|
Trillian test result (tid-5048)
|
|
Trillian test result (tid-5047)
|
|
Trillian test result (tid-5049)
|
No I haven't @soreana , but I remember seeing an issue about something similar. I'll keep an eye out. |
|
@blueorangutan test centos7 vmware-67u3 |
|
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests |
|
Trillian test result (tid-5057)
|








Description
In this pull request, I added new functionality to Cloudstack prometheus exporter. To see the differences please check the testing section.
Types of changes
How Has This Been Tested?
This pull request contains seven commits. Except for the dfb35e5 commit, they are all added new functionality to the Prometheus. In the subsequent sections, I will describe every commit functionality. I tested them in my test environment with three management servers, one DB node (MySQL), and two KVM hypervisor.
1. Export count of total/up/down hosts by tags 0dbe9e7
curl http://127.0.0.1:9595/metrics | grep cloudstack_hosts_totalOutput Before Changes:
Output After Changes:
2. Export count of vms by state and host tag e6a81d1
curl http://127.0.0.1:9595/metrics | grep cloudstack_vms_total_by_tagAfter changes, the following line added to the Prometheus output:
3. Add host tags to host cpu/cores/memory usage in Prometheus exporter eefd9f1
curl http://127.0.0.1:9595/metrics | grep cloudstack_host_vms_cores_totalcloudstack_host_cpu_usage_mhz_totalandcloudstack_host_memory_usage_mibs_totalOutput Before Changes:
Output After Changes:
4. Cloudstack Prometheus exporter: Add allocated capacity group by host tag. a489e3c
curl http://127.0.0.1:9595/metrics | grep cloudstack_host_vms_cores_totalOutput Before Changes:
Output After Changes:
5. Show count of Active domains on grafana de08479
============== Scenario One ==============
curl http://127.0.0.1:9595/metrics | grep cloudstack_active_domains_total. Output is:============== Scenario Two ==============
6. Show count of Active accounts and vms by size on grafana d7aa19f
============== Scenario One ==============
curl http://127.0.0.1:9595/metrics | grep cloudstack_active_accounts_total. output is:============== Scenario Two ==============
curl http://127.0.0.1:9595/metrics | grep cloudstack_vms_total_by_size. output is: