Ganglia installation and deployment process
yum -y install ganglia-gmond-pythonThe official provides some metrics that can be modified and used directly:
https://github.com/ganglia/gmond_python_modules
vim /etc/ganglia/gmond.confmodules {...module {name = "sys_module" ##Note that the name should correspondpath = "modsys.so"}/* Add python main module */module {name = "python_module"/* Dynamic library path, the full path is $GANGLIA_ROOT/lib64/ganglia/modpython.so */path = "modpython.so"/* Python extension module code storage directory, if it does not exist, create it */params="/etc/ganglia/python_modules/"}}include ('/etc/ganglia/conf.d/*.conf') /* /etc/ganglia/conf.d/ is the storage directory for the configuration file of the python extension module. If it does not exist, create it. When gmond starts, it will load all configuration files and python module code*/include ('/etc/ganglia/conf.d/*.pyconf') ... Extension module configuration file storage location
/etc/ganglia/conf.d/xxx.pyconfExtension module python code storage location
/usr/lib64/ganglia/python_modules/xxx.pysystemctl restart gmond.service