ARTEMIS-2636: Introduce Disk Usage Metrics#3005
Conversation
|
the PR test is failing.. can you check why it failed? running tests... |
|
sorry.. I closed it by accident.. reopened it. |
|
thjere's a test failure here: MessageSerializerTest.testObjectMessageImportExport:202->CliTestBase.consumeMessages:147 null Are you sure it's not related? I will have to take a look. |
|
can y ou run the test locally and let us know what you see? |
|
I did some work in |
|
The test failed again -- doesnt seem associated to this PR. Is there a way I can help fix this? |
|
@clebertsuconic i agree with @atris, i don't believe this PR is causing any failures. Master is failing with same issue. @jbertram I'm getting test failures in CLI tests locally, when doing mvn clean install -Pfast-tests -Pextra-tests seems yours is the only change recently in the CLI area. Failed tests: |
|
checking build histories of master on travis, seems as soon as PR #3003 was merged, the build starting failing with the issue, as such does look like it is related to PR #3003 here is the failed build on master straight after 3003 was merged |
|
Actually seems since 2999 was merged https://travis-ci.org/apache/activemq-artemis/builds/658977370?utm_source=github_status&utm_medium=notification there seems to been a number of merges very close together as such could be any that were merged before 2999 as unfortunately as merges so close together previous builds cancelled for next. merges between last success build and first build failed, as such these are the smoking guns |
criew
left a comment
There was a problem hiding this comment.
Thanks for adding the new features suggested in the ticket.
I was not sure where to add my comments, so I created a review, hope that's ok.
Would it be possible to add *_PERCENTAGE metrics as well?
...ent/src/main/java/org/apache/activemq/artemis/api/core/management/ActiveMQServerControl.java
Show resolved
Hide resolved
| builder.register(BrokerMetricNames.CONNECTION_COUNT, this, metrics -> Double.valueOf(getConnectionCount()), ActiveMQServerControl.CONNECTION_COUNT_DESCRIPTION); | ||
| builder.register(BrokerMetricNames.TOTAL_CONNECTION_COUNT, this, metrics -> Double.valueOf(getTotalConnectionCount()), ActiveMQServerControl.TOTAL_CONNECTION_COUNT_DESCRIPTION); | ||
| builder.register(BrokerMetricNames.ADDRESS_MEMORY_USAGE, this, metrics -> Double.valueOf(getPagingManager().getGlobalSize()), ActiveMQServerControl.ADDRESS_MEMORY_USAGE_DESCRIPTION); | ||
| builder.register(BrokerMetricNames.DISK_STORE_USAGE, this, metrics -> Double.valueOf(getPagingManager().getDiskTotalSpace() - getPagingManager().getDiskUsableSpace()), ActiveMQServerControl.DISK_STORE_USAGE_DESCRIPTION); |
There was a problem hiding this comment.
Add two more metrics - ADDRESS_MEMORY_USAGE_PERCENTAGE and DISK_STORE_USAGE_PERCENTAGE here
There was a problem hiding this comment.
Since address memory usage is not exposed as a metric here, I think it warrants a separate PR (to add both percentage types to exposed metrics). I will follow up with a PR
There was a problem hiding this comment.
You are duplicating the attributes here?
Also DISK_STORE_USAGE.. this seems to give you the amount of free space available, instead of DISK Usage. Isn't that a mistake?
There was a problem hiding this comment.
Isnt disk usable space the free space?
There was a problem hiding this comment.
Typically the words used for disk reporting are used and free to avoid any confusion.
Youre using the word usage which to me suggest its the used space not the free
I would recommend we use clearer words like used and free
Thanks, fixed your comments. |
|
I dont understand the test failure -- the test passes locally for me |
|
Done, please see. |
|
@atris you should rebase, and squash your commit |
|
@clebertsuconic I believe I did that? (The PR is rebased on top of your latest commit to master, and is squashed to a single commit. What did I miss?) |
|
Rebased |
|
Have you sorted better naming so its clearer? See inline comments by clebert and myself |
...rc/main/java/org/apache/activemq/artemis/core/management/impl/ActiveMQServerControlImpl.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/apache/activemq/artemis/core/management/impl/ActiveMQServerControlImpl.java
Outdated
Show resolved
Hide resolved
...-server/src/main/java/org/apache/activemq/artemis/core/server/metrics/BrokerMetricNames.java
Outdated
Show resolved
Hide resolved
92aa80e to
13b2223
Compare
|
@jbertram @clebertsuconic @criew Fixed, please see and let me know your comments |
|
How did you come up with these formulas? did they come from the JIRA? or you made up them? |
ARTEMIS-2636: This commit introduces metrics to publish the amount of disk used currently
|
@clebertsuconic Updated, please see and let me know if it looks fine now |

No description provided.