[ 
https://issues.apache.org/jira/browse/ARTEMIS-2636?focusedWorklogId=400040&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-400040
 ]

ASF GitHub Bot logged work on ARTEMIS-2636:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 09/Mar/20 09:37
            Start Date: 09/Mar/20 09:37
    Worklog Time Spent: 10m 
      Work Description: criew commented on pull request #3005: ARTEMIS-2636: 
Introduce Disk Usage Metrics
URL: https://github.com/apache/activemq-artemis/pull/3005#discussion_r389547913
 
 

 ##########
 File path: 
artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerImpl.java
 ##########
 @@ -2996,6 +2996,7 @@ private void registerMeters() {
             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);
 
 Review comment:
   Add two more metrics - ADDRESS_MEMORY_USAGE_PERCENTAGE and 
DISK_STORE_USAGE_PERCENTAGE here
 
----------------------------------------------------------------
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]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 400040)
    Time Spent: 3h 20m  (was: 3h 10m)

> Expose disk store used percentage metric
> ----------------------------------------
>
>                 Key: ARTEMIS-2636
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2636
>             Project: ActiveMQ Artemis
>          Issue Type: Improvement
>          Components: Broker
>    Affects Versions: 2.11.0
>            Reporter: Christoph Ewerlin
>            Priority: Major
>          Time Spent: 3h 20m
>  Remaining Estimate: 0h
>
> It would be very nice if the disk store used could be exposed via the metrics 
> registry (preferably) and/or JMX like address.memory.usage already already is.
> In addition it would be nice to have percentage values for both 
> address_memory_usage and disk_store_usage which would make setting up alarms 
> much easier.
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to