MariaDB Plugin for Scouter
This is alpha version, so we recommand to use test Environments.
Current version has been tested in Mariadb version 10.0.20 and 10.0.21. We will support for other versions soon.
Feature
- Plugin for mariadb monitoring on scouter apm tool env.
- No SQL Method, it use API Function in MariaDB source
- So Minimun resource use ( 0.5% lower cpu, 1% lower memory)
- Easy install & uninstall ( it's mariadb plugin)
Verify that the following software is installed on your system:
- git
- gunzip
- GNU tar
- gcc 2.95.2 or later
- g++
- GNU make 3.75 or later
- bison (2.0 for MariaDB 5.5)
- libncurses
- zlib-dev
- cmake
- jemalloc
On Linux you can get those programs with your package manager. An easy way to install the needed programs on Linux is to run one of the following commands(depending on your Linux distribution)
sudo apt-get build-dep mysql-server # for Debian and Ubuntu-based distributions
sudo yum-builddep mysql # for Fedora 17-18 (part of the yum-utils package)
sudo yum-builddep mariadb # for Fedora 19+ (part of the yum-utils package)
sudo zypper si -d mysql-community-server # for OpenSUSE
Scouter-mariadb-plugin sends performance data to Scouter server via socket. Verify that network ports open.
- 6100 / tcp, udp (source : mariadb server, target : scouter server)
- Download mariadb source from maria site (https://downloads.mariadb.org/ or mirror site ftp://ftp.kaist.ac.kr/mariadb/mariadb-10.0.21/source/mariadb-10.0.21.tar.gz)
- unzip source file
tar zxvf mariadb-xxx.xxx.xxx.tar.gz (xxx means mariadb version)
- download scouter-maradb-plugin source. $MARIADB_SRC_DIR is a mariadb source directory.
cd $MARIADB_SRC_DIR/plugin
git clone https://github.com/scouter-project/scouter-mariadb-plugin
- Run cmake command in the mariadb source directory.
cd $MARIADB_SRC_DIR
cmake -DBUILD_CONFIG=mysql_release -DWITH_JEMALLOC=no .
- Run make command in the scouter-mariadb-plugin source directory.
cd $MARIADB_SRC_DIR/plugin/scouter-mariadb-plugin
make
If make runs successfully, you'll find libspotter.so file in the $MARIADB_SRC_DIR/plugin/scouter-mariadb-plugin/src.
- Copy scouter-mariadb-plugin library to mariadb plugin directory. $MARIADB_INSTALL_DIR is a mariadb installation directory.
cd $MARIADB_SRC_DIR/plugin/scouter-mariadb-plugin/src
cp libspotter.so $MARIADB_INSTALL_DIR/lib/plugin
- A plugin located in a plugin library file can be loaded at runtime with the INSTALL PLUGIN statement.
INSTALL PLUGIN spotter SONAME 'libspotter.so';
- Setting system global variable for scouter server ip address
show variables like 'spotter%'
set global spotter_server_ip="xxx.xxx.xxx.xxx";
To uninstall scouter-mariadb-plugin, use UNINSTALL PLUGIN command.
uninstall plugin spotter;
Maridb plugin for scouter is specifically available only under version 2 of the GNU General Public License (GPLv2)