Viewing topic monitoring statistics by using an external application
External monitoring applications can access topic data that is published by Eclipse Amlen by subscribing to the Eclipse Amlen topic $SYS/ResourceStatistics/Topic.
To publish monitoring data on a topic, the Eclipse Amlen server must be running.
The published data is in JSON format. The published data always includes Version, NodeName, Timestamp, and ObjectType. NodeName is the name of the server and ObjectType is the name of the object that you are monitoring.
For more information about monitoring by using an external application, see Monitoring and reporting.
Monitoring data is automatically published every 2 seconds to the topic string $SYS/ResourceStatistics/Topic. The name of the monitored topic is included in the message.
In MQTT, you cannot subscribe to a $SYS topic if you specify cleanSession=0. In JMS, you cannot subscribe to a $SYS topic if you use a durable subscription.
The following information is made available to the monitoring application:
- Version
- String
- NodeName
- String
- Timestamp
- Date/Time
- Object type
- String
-
- TopicString
- String
-
- Subscriptions
- Numeric
-
- ResetTime
- Date/Time
-
- PublishedMsgs
- Numeric
-
- RejectedMsgs
- Numeric
-
- FailedPublishes
- Numeric
The following example shows a monitoring message that contains monitoring data about a topic.
{
"Version":"1.2",
"NodeName":"mar#678",
"TimeStamp":"2014-07-26T12:52:41.226Z",
"ObjectType":"Topic",
"TopicString":"*",
"Subscriptions":50,
"ResetTime":"2014-07-13T12:11:42Z",
"PublishedMsgs":100,
"RejectedMsgs":3,
"FailedPublishes":0,
}