Metrics collection module for the Magnum RPC-JSON API interface which collects host CPU, Memory, Disk, and Network metrics used by the inSITE Poller program.
The metrics collection module has the below distinct abilities and features:
- Collect metrics at the system cluster IP address.
- Discovers all servers in a Magnum system.
- Normalizes metric values into raw percentages or byte values to support dashboard field formatters.
- Groups like metrics together to be indexed in a single document.
- Indexes individual metrics.
- inSITE Version 10.3 and service pack 6
- Python3.7 (already installed on inSITE machine)
Installation of the status monitoring module requires copying two scripts into the poller modules folder:
- Copy magnum_metrics.py script to the poller python modules folder:
cp scripts/magnum_metrics.py /opt/evertz/insite/parasite/applications/pll-1/data/python/modules/
- Restart the poller application
To configure a poller to use the module start a new python poller configuration outlined below
- Click the create a custom poller from the poller application settings page.
- Enter a Name, Summary and Description information.
- Enter the cluster ip address of the Magnum system in the Hosts tab.
- From the Input tab change the Type to Python
- From the Input tab change the Metric Set Name field to magnum
- From the Python tab select the Advanced tab and enable the CPython Bindings option
- Select the Script tab, then paste the contents of scripts/poller_config.py into the script panel.
- Save changes, then restart the poller program.
The magnum_metrics script can be ran manually from the shell using the following command
python magnum_metrics.py
Below is the help output of the
python magnum_metrics.py -h
usage: magnum_metrics.py [-h] (-IP 127.0.0.1 | -z )
Magnum RPC-JSON API Poller program for system health metrics
optional arguments:
-h, --help show this help message and exit
-IP 127.0.0.1, --address 127.0.0.1
Magnum Cluster IP Address
-z , --fakeit supplement some fake data