Prerequisites¶
The following prerequisites must be installed to use monitoring toolkit:
python >= 3.7
git
Installation¶
Currently, the way to install this toolkit is to git clone the repository and then install it.
To set up the repository and get configuration files:
git clone https://gitlab.com/ska-telescope/platform-scripts
cd ska-sdp-monitor-cpu-metrics
To install all the required python modules
pip3 install --user -r requirements.txt
And finally, install the package using
python3 setup.py install
Another way is to use --editable
option of pip
installation as follows:
pip install "--editable=git+https://gitlab.com/ska-telescope/platform-scripts.git@master#egg=ska-sdp-monitor-metrics&subdirectory=ska-sdp-monitor-cpu-metrics"
This command clones the git repository and runs python3 setup.py install
. This line can be directly added to the conda
environment files.