[root@node2 node_exporter-0.18.1.linux-amd64]# dnf -y install mariadb-server mariadb [root@node2 mysqld_exporter-0.12.0.linux-amd64]# systemctl enable mariadb Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service. [root@node2 mysqld_exporter-0.12.0.linux-amd64]# systemctl start mariadb
#创建监控用户 MariaDB [(none)]> grant select,replication client,process on *.* to 'hello'@'localhost' identified by '123456'; Query OK, 0 rows affected (0.00 sec)