azure mysql 测试_监视 - Azure Database for MySQL | Microsoft Docs

您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

在 Azure Database for MySQL 中进行监视Monitoring in Azure Database for MySQL

10/21/2020

本文内容

监视服务器的相关数据有助于排查工作负荷故障及优化工作负荷。Monitoring data about your servers helps you troubleshoot and optimize for your workload. Azure Database for MySQL 提供了各种指标来帮助用户深入了解服务器的行为。Azure Database for MySQL provides various metrics that give insight into the behavior of your server.

指标Metrics

所有 Azure 指标的频率都是一分钟,每个指标提供 30 天的历史记录。All Azure metrics have a one-minute frequency, and each metric provides 30 days of history. 可针对指标配置警报。You can configure alerts on the metrics. 有关分步指南,请参阅如何设置警报。For step by step guidance, see How to set up alerts. 其他任务包括设置自动操作、执行高级分析和存档历史记录。Other tasks include setting up automated actions, performing advanced analytics, and archiving history. 有关详细信息,请参阅 Azure 指标概述。For more information, see the Azure Metrics Overview.

指标列表List of metrics

这些指标适用于 Azure Database for MySQL:These metrics are available for Azure Database for MySQL:

指标Metric

指标显示名称Metric Display Name

计价单位Unit

说明Description

cpu_percentcpu_percent

CPU 百分比CPU percent

百分比Percent

使用的 CPU 百分比。The percentage of CPU in use.

memory_percentmemory_percent

内存百分比Memory percent

百分比Percent

使用的内存百分比。The percentage of memory in use.

io_consumption_percentio_consumption_percent

IO 百分比IO percent

百分比Percent

使用的 IO 百分比。The percentage of IO in use. (不适用于基本层服务器)(Not applicable for Basic tier servers)

storage_percentstorage_percent

存储百分比Storage percentage

百分比Percent

所用存储占服务器最大存储的百分比。The percentage of storage used out of the server's maximum.

storage_usedstorage_used

已用的存储量Storage used

字节Bytes

使用的存储量。The amount of storage in use. 服务使用的存储可能包括数据库文件、事务日志和服务器日志。The storage used by the service may include the database files, transaction logs, and the server logs.

serverlog_storage_percentserverlog_storage_percent

服务器日志存储空间百分比Server Log storage percent

百分比Percent

所用服务器日志存储占服务器最大服务器日志存储的百分比。The percentage of server log storage used out of the server's maximum server log storage.

serverlog_storage_usageserverlog_storage_usage

服务器日志已用的存储量Server Log storage used

字节Bytes

使用的服务器日志存储量。The amount of server log storage in use.

serverlog_storage_limitserverlog_storage_limit

服务器存储空间上限Server Log storage limit

字节Bytes

此服务器的最大服务器日志存储。The maximum server log storage for this server.

storage_limitstorage_limit

存储限制Storage limit

字节Bytes

此服务器的最大存储。The maximum storage for this server.

active_connectionsactive_connections

活动连接数Active Connections

计数Count

服务器的活动连接数。The number of active connections to the server.

connections_failedconnections_failed

失败的连接数Failed Connections

计数Count

服务器的失败连接数。The number of failed connections to the server.

seconds_behind_masterseconds_behind_master

复制延迟(秒)Replication lag in seconds

计数Count

副本服务器滞后于源服务器的秒数。The number of seconds the replica server is lagging against the source server. (不适用于基本层服务器)(Not applicable for Basic tier servers)

network_bytes_egressnetwork_bytes_egress

网络传出Network Out

字节Bytes

跨活动连接的网络传出。Network Out across active connections.

network_bytes_ingressnetwork_bytes_ingress

网络传入Network In

字节Bytes

跨活动连接的网络传入。Network In across active connections.

backup_storage_usedbackup_storage_used

使用的备份存储Backup Storage Used

字节Bytes

已使用的备份存储量。The amount of backup storage used. 此指标表示根据为服务器设置的备份保留期保留的所有完整数据库备份、差异备份和日志备份所消耗的存储的总和。This metric represents the sum of storage consumed by all the full database backups, differential backups, and log backups retained based on the backup retention period set for the server. 备份的频率由服务管理,并在概念文章中进行了说明。The frequency of the backups is service managed and explained in the concepts article. 对于异地冗余存储,备份存储使用率是本地冗余存储的两倍。For geo-redundant storage, backup storage usage is twice that of the locally redundant storage.

服务器日志Server logs

可以在服务器上启用慢查询和审核日志。You can enable slow query and audit logging on your server. 这些日志也可通过 Azure Monitor 日志、事件中心和存储帐户中的 Azure 诊断日志获得。These logs are also available through Azure Diagnostic Logs in Azure Monitor logs, Event Hubs, and Storage Account. 若要详细了解日志记录,请访问审核日志和慢查询日志这两篇文章。To learn more about logging, visit the audit logs and slow query logs articles.

查询存储Query Store

查询存储是一项跟踪一段时间内查询性能(包括查询运行时统计信息和等待事件)的功能。Query Store is a feature that keeps track of query performance over time including query runtime statistics and wait events. 此功能将查询运行时性能信息保留在 mysql 架构中。The feature persists query runtime performance information in the mysql schema. 你可以通过各种配置旋钮控制数据的收集和存储。You can control the collection and storage of data via various configuration knobs.

Query Performance InsightQuery Performance Insight

Query Performance Insight 与查询存储协同工作以提供可以从 Azure 门户访问的可视化效果。Query Performance Insight works in conjunction with Query Store to provide visualizations accessible from the Azure portal. 这些图表使你能够识别对性能造成影响的关键查询。These charts enable you to identify key queries that impact performance. 可以在 Azure Database for MySQL 服务器门户页的“智能性能”部分中访问 Query Performance Insight。Query Performance Insight is accessible in the Intelligent Performance section of your Azure Database for MySQL server's portal page.

性能建议Performance Recommendations

性能建议功能可以确定提高工作负荷性能的机会。The Performance Recommendations feature identifies opportunities to improve workload performance. 性能建议为你提供了有关创建新索引的建议,这些索引可能会提高工作负荷的性能。Performance Recommendations provides you with recommendations for creating new indexes that have the potential to improve the performance of your workloads. 若要生成索引建议,该功能会考虑各种数据库特征,包括其架构以及如“查询存储”报告的工作负载。To produce index recommendations, the feature takes into consideration various database characteristics, including its schema and the workload as reported by Query Store. 实施任何性能建议后,客户应测试性能以评估这些更改的影响。After implementing any performance recommendation, customers should test performance to evaluate the impact of those changes.

计划内维护通知Planned maintenance notification

“计划内维护通知”允许你接收有关 Azure Database for MySQL 即将进行的计划内维护的警报。Planned maintenance notifications allow you to receive alerts for upcoming planned maintenance to your Azure Database for MySQL. 这些通知与服务运行状况计划内维护集成,允许你在同一位置查看你的订阅的所有计划内维护。These notifications are integrated with Service Health's planned maintenance and allow you to view all scheduled maintenance for your subscriptions in one place. 它还有助于将通知扩展到不同资源组的适当受众,因为你可能有不同的联系人负责不同的资源。It also helps to scale the notification to the right audiences for different resource groups, as you may have different contacts responsible for different resources. 你将在事件发生前的 72 小时收到有关即将进行的维护的通知。You will receive the notification about the upcoming maintenance 72 hours before the event.

详细了解如何设置 计划内维护通知 文档中的通知。Learn more about how to set up notifications in the planned maintenance notifications document.

后续步骤Next steps

有关如何基于指标创建警报的指南,请参阅如何设置警报。See How to set up alerts for guidance on creating an alert on a metric.

若要深入了解如何使用 Azure 门户、REST API 或 CLI 访问和导出指标,请参阅 Azure 指标概述。For more information on how to access and export metrics using the Azure portal, REST API, or CLI, see the Azure Metrics Overview.

详细了解 Azure Database for MySQL-单服务器中的计划内维护通知Learn more about planned maintenance notifications in Azure Database for MySQL - Single Server

很抱歉,我似乎没有完全理解你的问题。你是想了解如何使用 Studio 3T 连接到 Azure Cosmos DB 的 API for MongoDB 吗?如果是的话,可以参考 Microsoft Docs 上的以下步骤: 1. 登录 Azure 门户,打开 Cosmos DB 资源,选择“连接字符串”选项卡,并复制“Primary Connection String”值。 2. 打开 Studio 3T,单击“Connect”按钮,然后选择“New Connection”。 3. 在“Connection Manager”窗口中,选择“MongoDB”作为“Connection Type”。 4. 在“Connection”选项卡中,将“Connection Name”设置为所需的名称,并将“Server Address”设置为 Cosmos DB 的主机名和端口号(格式为“<hostname>:<port>”)。 5. 在“Authentication”选项卡中,选择“Username/Password”作为身份验证方法,并输入 Cosmos DB 资源的用户名和密码。 6. 在“SSL”选项卡中,选择“Use SSL/TLS”选项,并将“SSL/TLS Protocol”设置为“TLSv1.2”。 7. 在“Advanced”选项卡中,将“Database”设置为 Cosmos DB 资源的数据库名称,并将“Authentication Database”设置为“admin”。 8. 最后,在“Connection String”选项卡中,将复制的“Primary Connection String”值粘贴到“Connection String”字段中,并将其中的“{username}”和“{password}”分别替换为 Cosmos DB 资源的用户名和密码。 9. 单击“Test”按钮测试连接,如果一切正常,单击“Save”按钮保存连接设置。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值