Statistics
Diffusion™ can provide statistics in three ways: via MBeans, via the Publisher API, and via Prometheus-compatible endpoints. Statistics provide information about the server, clients and topics.
Statistics exposed by MBeans
Diffusion provides a set of statistics as MBeans. For more information about these statistics, see MBeans.
- Using a JMX tool, such as VisualVM or JConsole. For more information, see Using Java VisualVM or Using JConsole.
- Using the Diffusion monitoring console. For more information, see Diffusion monitoring console.
- Through topics under the topic Diffusion/Metrics.
You can configure Diffusion to report the top-level statistics through JMX. These statistics appear under com.pushtechnology.diffusion.metrics. Reporting statistics through JMX can have a significant performance impact. Ensure that you test how using MBeans for statistics affects your solution.
The following is a list of all the top level statistics and their attributes.
- clients.concurrent
- Count
- clients.concurrent_max
- Value
- client.connections
- Count
- FifteenMinuteRate
- FiveMinuteRate
- MeanRate
- OneMinuteRate
- clients.disconnections
- Count
- FifteenMinuteRate
- FiveMinuteRate
- MeanRate
- OneMinuteRate
- eventpublishers.concurrent
- Count
- eventpublishers.connections
- Count
- FifteenMinuteRate
- FiveMinuteRate
- MeanRate
- OneMinuteRate
- eventpublishers.disconnections
- Count
- FifteenMinuteRate
- FiveMinuteRate
- MeanRate
- OneMinuteRate
- publishers.loaded
- Count
- publishers.started
- Count
- server.client_subscriptions
- Count
- server.inbound.messages
- Count
- server.inbound.bytes
- Count
- server.outbound.messages
- Count
- server.outbound.bytes
- Count
- topics.additions
- Count
- FifteenMinuteRate
- FiveMinuteRate
- MeanRate
- OneMinuteRate
- topics.count
- Count
- topics.deletions
- Count
- FifteenMinuteRate
- FiveMinuteRate
- MeanRate
- OneMinuteRate
- Count
- The total number of items or events of this type over the lifetime of the metric.
- MeanRate
- The count divided by the lifetime of the metric.
- OneMinuteRate, FiveMinuteRate, FifteenMinuteRate
- A moving average across the given time period that is exponentially weighted towards new data.
Statistics via Prometheus endpoints
and provide statistics as endpoints compatible with the Prometheus monitoring tool.
You must have a license for or to use this feature.
Use http://localhost:8080/metrics to access Prometheus statistics. If not accessing from the same machine as the Diffusion server, replace localhost with the IP address or hostname.
You can access an individual metric with: localhost:8080/metrics?name[]=diffusion_publishers_diffusion_outbound_bytes.
Statistics in the Publisher API
You can get some statistics from the Publisher API. For more information, see the Java API documentation.
- PublisherStatistics
- InboundClientMessageStatistics
- AverageMessageSize
- BytesOnWire
- NumberOfMessages
- OutboundMessageStatistics
- AverageMessageSize
- BytesOnWire
- NumberOfMessages
- InboundClientMessageStatistics
- ClientStatistics
- InboundMessageStatistics
- AverageMessageSize
- BytesOnWire
- NumberOfMessages
- OutboundMessageStatistics
- AverageMessageSize
- BytesOnWire
- NumberOfMessages
- InboundMessageStatistics
- TopicStatistics
- InboundMessageStatistics
- AverageMessageSize
- BytesOnWire
- NumberOfMessages
- OutboundMessageStatistics
- AverageMessageSize
- BytesOnWire
- NumberOfMessages
- TotalNumberOfSubscribers
- InboundMessageStatistics
This page last modified: 2015/11/12