容器mysql 对接prometheus
时间: 2023-08-26 09:15:11 浏览: 131
要将容器中的MySQL与Prometheus对接,您可以按照以下步骤进行操作:
1. 在MySQL容器中创建一个用于监控的登录文件,例如在路径`/usr/local/mysqld_exporter/my.cnf`下创建文件,并添加以下内容:
```
<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* *3* [使用 prometheus 监控 MySQL](https://blog.csdn.net/shaochenshuo/article/details/126494537)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
- *2* [Prometheus&Grafana 监控 MySQL 数据库](https://blog.csdn.net/csdn_lan/article/details/128309127)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文