https://enterprise.mysql.com/monitoring/download.php
Getting Started
Here's how to get started if you have not previously installed the MySQL Enterprise Monitor:
1. Download and read the README, Getting Started Guide, and product Documentation using the links on the left.
2. Download and install a Service Manager for your operating system.
3. Download and install a Product Key and an Advisor Bundle if your Service Manager does not have internet access.
4. Download and install Agents for each of the MySQL servers you plan to monitor.
5. Consult the Getting Started Guide for installation and configuration assistance.
6. Contact MySQL Technical Support if you run into any installation or configuration questions or issues.
7. Don't forget to Change Your Password to something easy to remember.
If you have previously installed the MySQL Enterprise Monitor, see the README for more information on upgrading your current implementation.
下载的时候,也要下载Product Key,安装完后注册的时候需要。
配置
Query Analyzer 的时候需要注意以下几点:
Generally, changing your application is the easiest and
recommended method. For example, given a typical structure like
the one shown in the figure below, the client application would
need to be modified so that it no longer communicated directly
with the MySQL server, but to the agent.
You can see an example of the stucture when communicating via
the agent below.
To enable query analyzer within your application:
-
Make sure that the MySQL Enterprise Service Manager and your MySQL Enterprise Service Agent
are configured and running.
-
Confirm the configuration of your agent by examining the
contents of the
etc/mysql-monitor-agent.ini
file within
your installed Agent directory.
Queries will be sent to the host specified in the
proxy-backend-addresses
parameter, and
the agent will listen for connections to be redirected to
the server on the hostname and port configured in the
proxy-address
parameter.
-
Now modify your client application to communicate with the
address specified in the proxy-address
parameter.
Alternatively, if you do not want to modify your application
directly, you can use iptables or firewall rules to redirect
queries from the original host/port combination to the
agent's port.
Because connections to the MySQL server will be coming from
the agent, not the original host, the user credentials used
must be have a suitable GRANT
statement
for connections from localhost
, or the
host on which the agent is executing. The username and
password information will be passed on directly through the
agent from the client to the server.
-
Confirm that your application still operates normally. There
should be no difference between communicating directly with
the MySQL server and communicating via the agent.
Note
If you are using the mysql
client to
connect to the agent and your backend servers, make sure that
you are communicating with the proxy over the right port. By
default, if you specify localhost
as the
hostname, then mysql
will connect using the
local Unix domain socket, rather than the TCP/IP socket.
You can enforce mysql
to use the right port
either by explicitly requesting the protocol type, or by using
the IP address rather than localhost
. For
example, both of these command lines will start the client
using t6he right protocol:
shell> mysql --port=4040 --protocol=tcp
shell> mysql --port=4040 --host=127.0.0.1
Note
It is recommended that you use one agent per MySQL server
instance. The agent is not able to forward queries to multiple
MySQL server backends.
- 大小: 13.5 KB
- 大小: 13.3 KB
分享到:
相关推荐
prometheus监控规则大全 node规则,redis监控,es监控,vmware监控,ipmi监控,ceph监控,etcd监控,k8s监控,mysql监控,openstack监控,os监控,交换机监控,windows监控,cdh监控,calico监控规则监控
总结,监控 MySQL 使用 Prometheus 和 `mysql_exporter` 的流程包括:设置 MySQL 用户权限、安装 `mysql_exporter`、配置并启动 `mysql_exporter` 服务、配置 Prometheus 以监控 `mysql_exporter` 并可能设置 Alert...
### 常用的MySQL监控工具 - **Percona Toolkit**:一套强大的开源工具集,用于监控、管理和诊断MySQL。 - **MySQL Enterprise Monitor**:官方提供的高级监控解决方案,提供丰富的实时监控功能和报告功能。 - **...
可实时监测 MySQL通信量(In/Out),每秒邀请(read/write)查询数,链接服务器的数量,缓冲器使用率,提供实时监控监测。
除了数据库监控,Prometheus还能监控Linux系统的资源使用情况,例如CPU、内存、磁盘I/O和网络流量,结合MySQL监控,可全面评估整体系统健康状况。 通过上述步骤,你可以实现Prometheus对MySQL的深度监控,并设置...
mysql监控脚本,mysql 宕机自启服务。mysql监控脚本,自启mysql监控脚本,自启
### MySQL监控:基础知识与实例 #### 一、MySQL简介及特性 MySQL作为一款知名的开源数据库管理系统,由MySQL AB公司开发并维护,后被Sun Microsystems收购。MySQL的特点包括但不限于以下几点: - **开源性**:...
#### MySQL监控:性能指标 性能指标是衡量数据库健康状况的重要标准,包括但不限于: - **响应时间**:查询执行的平均时间。 - **QPS(每秒查询数)**:单位时间内执行的查询数量。 - **TPS(每秒事务数)**:单位...
### MySQL效能监控工具—mysqlreport #### 一、引言 在MySQL数据库管理过程中,确保服务器性能稳定且高效运行是一项重要任务。...对于MySQL DBA来说,熟练掌握mysqlreport的使用方法是非常有益的。
通过以上步骤,我们成功地配置了一个基于NRPE的MySQL监控环境,实现了对远程MySQL服务器的监控。这种监控方式不仅能够帮助我们实时了解MySQL服务器的运行状况,还能够及时发现潜在的问题,从而提高系统的稳定性和...
官方支持脚本,用于最新版Cacti 1.1.38监控mysql数据库 5.7
MySQL 实时监控是数据库管理中的重要环节,它能够帮助管理员实时了解数据库的运行状态,确保数据服务的稳定性和性能。本篇文章将详细讲解如何进行MySQL的实时监控,以及监控的关键指标。 首先,我们要理解MySQL通信...
- `default.cfg`和`default.usp`可能包含了LoadRunner的配置和用户自定义设置,确保它们正确配置以支持MySQL监控。 - `_encode.ini`可能涉及到字符编码设置,确保与MySQL数据库的字符集兼容。 6. **结束和清理**...
本文将详细介绍如何利用 Python 来监控 MySQL 的性能,并解释各个性能指标的意义及其计算方法。 #### 关键性能指标详解 ##### 1. QPS (每秒查询数) QPS(Queries Per Second)是衡量数据库系统处理能力的重要指标...
一、MySQL监控 1. **MySQL内置监控**:MySQL提供了一些内置的性能监控工具,例如`SHOW STATUS`和`SHOW VARIABLES`命令,可以查看服务器状态和配置参数。通过这些命令,你可以获取关于查询执行、连接数、内存使用等...
### 实战:EM Plugin For MySQL 监控 #### 为什么选择开发 EM Plugin? 在数据库管理领域,Oracle Enterprise Manager(简称EM)是业界广泛使用的管理工具之一。EM Plugin 的开发能够帮助用户更好地监控与管理...
MySQL服务器无需安装任何Agent,只需在监控WEB界面配置相关数据库信息,启动监控进程后,即可对上百台MySQL数据库的状态、连接数、QTS、TPS、数据库流量、复制、性能慢查询等进行时时监控。并能在数据库偏离设定的...
### Nagios监控MySQL主从知识点解析 #### 一、Nagios与MySQL主从监控概述 Nagios是一款开源的网络监控系统,可以用来监控主机、网络服务等资源的状态,并在出现问题时通过邮件等方式发送告警通知。对于企业级应用...
zabbix监控mysql pecona模板 zabbix 3.0版本可用 zabbix 3.0版本可用