Monitoring Module
Monitoring Plugin
The Controller provides quantum network monitoring
capabilities through a monitoring plugin interface, which defines
handlers for monitoring messages. A monitoring plugin must implement the
abstract method handle_resource_update() to manage monitoring events
received from a msgserver that listens to a chosen topic.
The built-in monitoring plugin can be used to handle monitoring events
received by the controller. It listens to the monitoring topic for
messages of type NodeState. Upon receiving a message, the plugin:
Validates the message format based on the
monitoring.yamlschema defined inquantnet_mq/schema/messagesStores the event object in the built-in database
Protocol
The QuantNet MQ defines a built-in monitoring message format in JSON, which includes the following fields:
rid:
str- Resource IDts:
str- UTC timestampeventType:
enum<str>- Type of eventvalue:
str/int/float- Value of the monitored resource
QN agents and other resources connected to the message broker can send
monitoring messages to the monitoring topic. These messages will be
processed by the monitoring plugin in the controller.