Agent Watcher is used to monitor agents running on a VOLTTRON instance
Project description
volttron-agent-watcher
The VOLTTRON Agent Watcher is used to monitor agents running on a VOLTTRON instance. Specifically it monitors whether a set of VIP identities (peers) are connected to the instance. If any of the peers in the set are not present then an alert will be sent.
Requires
- python >= 3.10
- volttron >= 10.0
Installation
Before installing, VOLTTRON should be installed and running. Its virtual environment should be active. Information on how to install of the VOLTTRON platform can be found here.
Create a directory called config
and use the change directory command to enter it.
mkdir config
cd config
After entering the config directory, create a file called agentwatcher.json
, use the below JSON to populate your new file.
The agent has two configuration values:
- watchlist: a list of VIP identities to watch on the platform instance
- check-period: interval in seconds between the agent watcher checking the platform peerlist and publishing alerts
The agent watcher requires other agents to watch. In the below example, we are watching the platform.driver and platform.actuator.
In your config add the following JSON.
{
"watchlist": [
"platform.driver",
"platform.actuator"
],
"check-period": 10
}
Install and start the agent watcher in VOLTTRON.
vctl install volttron-agent-watcher --agent-config agentwatcher.json --vip-identity platform.agent_watcher --start --force
View the status of the installed agent
vctl status
Development
Please see the following for contributing guidelines contributing.
Please see the following helpful guide about developing modular VOLTTRON agents
Disclaimer Notice
This material was prepared as an account of work sponsored by an agency of the United States Government. Neither the United States Government nor the United States Department of Energy, nor Battelle, nor any of their employees, nor any jurisdiction or organization that has cooperated in the development of these materials, makes any warranty, express or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness or any information, apparatus, product, software, or process disclosed, or represents that its use would not infringe privately owned rights.
Reference herein to any specific commercial product, process, or service by trade name, trademark, manufacturer, or otherwise does not necessarily constitute or imply its endorsement, recommendation, or favoring by the United States Government or any agency thereof, or Battelle Memorial Institute. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or any agency thereof.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file volttron_agent_watcher-2.0.0rc0.tar.gz
.
File metadata
- Download URL: volttron_agent_watcher-2.0.0rc0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/5.15.153.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e30213a1ed6964efa7dff8a92b5a741db6793ab2c7adf975eac210b816fceed |
|
MD5 | 9e91b91e4c59991a640451334f357071 |
|
BLAKE2b-256 | 65f0b44b496907dc512e7eb33d3b7e11301f1fd530c0e8ae06197e89202ec5cc |
File details
Details for the file volttron_agent_watcher-2.0.0rc0-py3-none-any.whl
.
File metadata
- Download URL: volttron_agent_watcher-2.0.0rc0-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/5.15.153.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 384b080b16b0a30434f90240d582b1a018d9ca4312fa41da3f27a8fde46d06bf |
|
MD5 | 8d76fa4d831af2e82364340eb6a3d709 |
|
BLAKE2b-256 | 454d313a02de496b70040cb158c86f11f05ad715b6a57abcb67147df953dd70e |