This directory contains utilities to test the Instana MicroStrategy plugins installation and functionality.
After installing one or more of the MicroStrategy plugins, you can use the test_installation.py script to verify that everything is working properly.
Make sure you have installed the required Python dependencies:
pip install -r ../common/requirements.txtTo test if your installation was successful, simply run:
./test_installation.pyThis will:
- Check for required Python dependencies
- Determine if requirements need to be installed for each plugin or just once
- Look for plugin installations in standard locations
- Run each installed sensor in test mode
- Provide a summary of test results
The test script provides several options:
usage: test_installation.py [-h] [--dependencies-only] [--plugin {m8mulprc,m8prcsvr,m8refsvr,mstrsvr}]
Test Instana plugins installation
optional arguments:
-h, --help show this help message and exit
--dependencies-only Only check dependencies, skip plugin tests
--plugin {m8mulprc,m8prcsvr,m8refsvr,mstrsvr}
Test specific plugin(s) only
Examples:
# Test only dependencies installation
./test_installation.py --dependencies-only
# Test only the M8MulPrc plugin
./test_installation.py --plugin m8mulprc
# Test multiple specific plugins
./test_installation.py --plugin m8mulprc --plugin mstrsvrTo verify that OpenTelemetry is properly installed:
./check_otel_installation.pyThis script will check for essential OpenTelemetry components and provide guidance if any are missing.
If tests fail, check the following:
- Make sure Python 3 is installed and in your PATH
- Verify that all dependencies are installed (use
--dependencies-only) - Check that the plugin directories exist and have the correct permissions
- Look for error messages in the test output
- Try running the sensor script directly:
# Replace PATH_TO_PLUGIN with actual path PYTHONPATH=PATH_TO_PLUGIN python3 PATH_TO_PLUGIN/sensor.py --run-once --log-level=DEBUG
For further assistance, refer to the plugin documentation or create an issue in the GitHub repository.