Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-9552

StatisticsPlugin - add metric lastMessageTimestamp

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Broker
    • None

    Description

      Metric lastMessageTimestamp can be captured from the modification time of metric enqueues:

       

      statsMessage.setLong("lastMessageTimestamp", stats.getEnqueues().getLastSampleTime()); 

       

      Disclaimer: disadvantage of such approach is that after broker restart this value is holding start time of the broker (which may be relevant when the frequency of broker restarts is comparable to the frequency of enqueued messages)

      Attachments

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              gkochanski Grzegorz Kochański
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h