The Scalyr Agent is extensible and plugin modules can be created easily for the Linux agent. A plugin is a simple Python module that executes within the Scalyr Agent process and gathers information to be uploaded to the DataSet servers.
You can read the full plugin authoring documentation here
Testing a plugin
You can read more about this in the full GitHub plugin testing utility docs.
Clone the testing tool
git clone https://github.com/scalyr/scalyr-monitor-tester.git
Build your environment
docker build . -t scalyr-monitor-dev
Take a look at the sample monitor
cat ./monitors/test_monitor.py
Run the sample
docker run -v $(pwd)/monitors:/monitors scalyr-monitor-dev python -m scalyr_agent.run_monitor monitors.your_monitor_name_monitor -c '{"gauss_mean": 0.5}'
Edit the sample or create a new one with the full documentation
Comments
0 comments
Please sign in to leave a comment.