prometheus监控插件mysqld_exporter
使用prom/mysqld-exporter镜像报错:
[root@china exporter]# kubectl logs mysqld-exporter-694866b549-95p4r -n prometheus-exporter
ts=2024-05-15T07:21:14.099Z caller=mysqld_exporter.go:220 level=info msg=“Starting mysqld_exporter” version=“(version=0.15.1, branch=HEAD, revision=cc349684494b5038ec5a52233bdca9eb9291e6f2)”
ts=2024-05-15T07:21:14.099Z caller=mysqld_exporter.go:221 level=info msg=“Build context” build_context=“(go=go1.21.5, platform=linux/amd64, user=root@d89c15b9f5ad, date=20231212-07:55:09, tags=unknown)”
ts=2024-05-15T07:21:14.099Z caller=config.go:150 level=error msg=“failed to validate config” section=client err=“no user specified in section or parent”
ts=2024-05-15T07:21:14.100Z caller=mysqld_exporter.go:225 level=info msg=“Error parsing host config” file=.my.cnf err=“no configuration found”
[root@china exporter]#
更换镜像:
docker pull bitnami/mysqld-exporter:latest
docker tag bitnami/mysqld-exporter:latest harbor.zdwk8s.com/middle/mysqld-exporter:latest
docker push harbor.zdwk8s.com/middle/mysqld-exporter:latest