在mysqld_exporter使用的配置文件中,自定义查询通常是在[client]部分下。例如: [client] user=your_username password=your_password 但自定义指标一般需要通过一个外部的配置文件来解释,例如custom-queries.yml。这个文件会在启动mysqld_exporter时通过--collectors.command参数来引用。 3.自定义查询配置文件: 自定义查...