ProgrammingLogs

netdata - mysql 모니터링 설정 메모

밥먹고해요 2020. 3. 11. 17:51

https://docs.netdata.cloud/collectors/python.d.plugin/mysql/#configuration

 

MySQL monitoring with Netdata

Learn about Netdata's real-time health monitoring and performance troubleshooting for all your systems and applications.

docs.netdata.cloud

위 가이드를 따라 했지만, 뭔가 없다는 에러가 튀어나옴

아래는, /var/log/netdata/error.log 에서 발췌

 

2020-03-11 10:42:14: python.d ERROR: mysql[mycnf1] : MySQLdb or PyMySQL module is needed to use mysql.chart.py plugin

 

구글링해보니, python 패키지인 PyMySQL이 필요하다는 것을 확인하여,

다음의 명령으로 해결 (CentOS 7 기준)

yum install gcc mysql-devel python-devel
ln -sf /usr/bin/python3.6 /usr/bin/python
pip3 install PyMySQL