mysqld_exporter.go:225 level=info msg=“Error parsing host config“ file=.my.cnf err=“no configuration

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

  • 5
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值