How to Monitor the Performance of MySQL and MariaDB Databases – Part 1

by Oct 4, 2018

Categories

Tags

Administration agent-based monitoring Agentless Monitoring alert responses alert thresholds alerting Alerts Amazon Aurora Amazon EC2 Amazon RDS Amazon RDS / Aurora Amazon RDS for SQL Server Amazon Redshift Amazon S3 Amazon Web Services (AWS) Analytics application monitoring Aqua Data Studio automation availability Azure Azure SQL Database azure sql managed instance Azure VM backup Backup and recovery backup and restore backup compression backup status Backup Strategy backups big data Blocking bug fixes business architecture business data objects business intelligence business process modeling business process models capacity planning change management cloud cloud database cloud database monitoring cloud infrastructure cloud migration cloud providers Cloud Readiness Cloud Services cloud storage cloud virtual machine cloud VM clusters code completion collaboration compliance compliance audit compliance audits compliance manager compliance reporting conference configuration connect to database cpu Cross Platform custom counters Custom Views customer survey customer testimonials Dark Theme dashboards data analysis Data Analytics data architect data architecture data breaches Data Collector data governance data lakes data lineage data management data model data modeler data modeling data models data privacy data protection data security data security measures data sources data visualization data warehouse database database administration database administrator database automation database backup database backups database capacity database changes database community database connection database design database developer database developers database development database diversity Database Engine Tuning Advisor database fragmentation database GUI database IDE database indexes database inventory management database locks database management database migration database monitoring database navigation database optimization database performance Database Permissions database platforms database profiling database queries database recovery database replication database restore database schema database security database support database synchronization database tools database transactions database tuning database-as-a-service databases DB Change Manager DB Optimizer DB PowerStudio DB2 DBA DBaaS DBArtisan dBase DBMS DDL Debugging defragmentation Demo diagnostic manager diagnostics dimensional modeling disaster recovery Download drills embedded database Encryption End-user Experience entity-relationship model ER/Studio ER/Studio Data Architect ER/Studio Enterprise Team Edition events execution plans free tools galera cluster GDPR Getting Started Git GitHub Google Cloud Hadoop Healthcare high availability HIPAA Hive hybrid clouds Hyper-V IDERA IDERA ACE Index Analyzer index optimization infrastructure as a service (IaaS) infrastructure monitoring installation Integrated Development Environment interbase Inventory Manager IT infrastructure Java JD Edwards JSON licensing load test load testing logical data model macOS macros managed cloud database managed cloud databases MariaDB memory memorystorage memoryusage metadata metric baselines metric thresholds Microsoft Azure Microsoft Azure SQL Database Microsoft PowerShell Microsoft SQL Server Microsoft Windows MongoDB monitoring Monitoring Tools Monyog multiple platforms MySQL news newsletter NoSQL Notifications odbc optimization Oracle PeopleSoft performance Performance Dashboards performance metrics performance monitoring performance schema performance tuning personally identifiable information physical data model Platform platform as a service (PaaS) PostgreSQL Precise Precise for Databases Precise for Oracle Precise for SQL Server Precise Management Database (PMDB) product updates Project Migration public clouds Query Analyzer query builder query monitor query optimization query performance Query Store query tool query tuning query-level waits Rapid SQL rdbms real time monitoring Real User Monitoring recovery regulations relational databases Releases Reporting Reports repository Restore reverse engineering Roadmap sample SAP Scalability Security Policy Security Practices server monitoring Server performance server-level waits Service Level Agreement SkySQL slow query SNMP snowflake source control SQL SQL Admin Toolset SQL CM SQL code SQL coding SQL Compliance Manager SQL Defrag Manager sql development SQL Diagnostic Manager SQL Diagnostic Manager for MySQL SQL Diagnostic Manager for SQL Server SQL Diagnostic Manager Pro SQL DM SQL Doctor SQL Enterprise Job Manager SQl IM SQL Inventory Manager SQL Management Suite SQL Monitoring SQL Performance SQL Quality SQL query SQL Query Tuner SQL Safe Backup SQL script SQL Secure SQL Security Suite SQL Server sql server alert SQL Server Migration SQL Server Performance SQL Server Recommendations SQL Server Security SQL statement history SQL tuning SQL Virtual Database sqlmemory sqlserver SQLyog Storage Storage Performance structured data Subversion Support tempdb tempdb data temporal data Tips and Tricks troubleshooting universal data models universal mapping unstructured data Uptime Infrastructure Monitor user experience user permissions Virtual Machine (VM) web services webinar What-if analysis WindowsPowerShell

This is the first part of a three-part series of blog posts. Click here to view the second part.

 

Overview

SQL Diagnostic Manager for MySQL is an IDERA product that allows you to monitor MySQL and MariaDB databases. The product is a low-overhead, low-maintenance tool that is easy to install and easy to use. The product is robust and flexible and helps you pinpoint the servers, database, tables, and other activity in your environment that needs your attention. Some customers monitor up to 1,200 instances.

Architecture

SQL Diagnostic Manager for MySQL is a Linux and Microsoft Windows application that runs on a server. The product is entirely self-contained. As such, the product does not require any client agents, web servers, and any other software installed. The product connects to your MySQL instances across the network and uses low-overhead and well-documented commands to gather information about the sessions, activity, and SQL statements that MySQL is executing, as well as server configuration and various logs.

The product stores the gathered information in an internal SQLite database. SQLite is a low-maintenance database that grows to roughly 3 GB to 5 GB of size per instance monitored. The size of SQLite depends on the amount of activity on the monitored server. The documentation details the schema. Moreover, both web-based and command-line utilities are available for SQLite when you choose to access the data directly. Most users, however, view pages, graphs, and other information through the web-based component of the product. Users connect to the host via any standard web browser.

Get Set Up

Download

SQL Diagnostic Manager for MySQL is available for a free, 14-day, fully-functional trial. The trial is limited to monitoring ten instances. Download the trial from https://www.idera.com/productssolutions/sql-diagnostic-manager-for-mysql/freetrialsubscriptionform.

Documentation

The documentation is extensive and well written. The documentation is an excellent resource for learning how to navigate and use the various pages in the Graphical User Interface (GUI).

The documentation is available from within SQL Diagnostic Manager for MySQL from the Documentation link in the lower right.

You can also access the documentation from any web browser at http://wiki.idera.com/display/SQLDMYSQL.

Expand the “Navigate SQL DM for MySQL” link.

After expansion of the “Navigate SQL DM for MySQL” link, the documentation mimics the layout of the Graphical User Interface (GUI).

Install

The installation process for SQL Diagnostic Manager for MySQL on Microsoft Windows and Linux is straightforward, wizard-driven, and generally takes only a few minutes.

Microsoft Windows

For Microsoft Windows, a series of Setup wizard screens drive you through the installation process. The product installs as a service in the Microsoft Windows operating system.

Linux

The product can also run on a Linux client. Installation is performed either as a package or as a Tarball. The Linux installation process which is also quite simple. The documentation describes in detail the Linux installation process at http://wiki.idera.com/display/SQLDMYSQL/Linux.

Install The product as an RPM Package Manager (RPM) package on Linux. The installation supports the RPM package managers DNF, yum, and YaST. Alternatively, install The product as Tarball on non-RPM Linux.

Access

Access SQL Diagnostic Manager for MySQL via a web browser. Merely enter the hostname and the installed port number. The detail port number is 5555. For example, enter http://localhost:5555.

Login

Gain access to the product by entering a username and password. The product encrypts and maintains the usernames and passwords.

Navigate General Layout

The general layout of SQL Diagnostic Manager for MySQL has menus available on the left and details for the selected menu item on the right. Dropdown list boxes are usually at the top of the page to allow the user to change the central area displays. The Overview page is available by selecting the logo in the upper left. You have the option of having either icons or descriptions for the main menu items on the left.

Manage Servers

After installing, define servers. The SERVER page shows you the previously registered servers, as well as the number of critical and warning messages for each server.

Select the red and yellow highlights to get more information about what is causing the vital and warning behavior.

The single server view shows all of the essential messages for a single server. Select an individual notification to get more information.

The EVENT DETAILS view shows what the condition is, what the last measurement for that condition was. The view also displays advice on how to handle the situation.

SQL Diagnostic Manager for MySQL has over 600 out-of-the-box monitors. These monitors help you to identify poor performance in your database and application, often before poor performance becomes critical.

Define New Servers

After the initial installation of SQL Diagnostic Manager for MySQL, the first task is to register database connections. Database connections require minimal information: host, port, and user. The MySQL or MariaDB database host can be either Microsoft Windows or Linux. The product supports encrypted communication via SSH tunneling, as well as Secure Socket Layer (SSL) socket connections for additional security. Adding new servers is performed by selecting the ADD NEW SERVER field.

Config

Enter the connection information in the CONFIG tab. The connection information includes the hostname, port number, connection information. The connection information also consists of the connection type, which is either direct, Secure Shell (SSH) tunnel, or Secure Sockets Layer (SSL) encryption.

Tag

The additional steps allow you to enter TAGS for this server. Tags are merely a free-form series of names and group names for this server. For example, the tag can be either PROD or QA. Alternatively, base the label on the product, geographic, and any other grouping that makes sense for organizing your MySQL instances.

Notifications

The NOTIFICATIONS tab specified the settings for sending notifications when alerts based on monitors occur.

Advanced

The ADVANCED tab allows you to turn data collectors on and off, change data retention times, and so on for either a single or more servers.

Edit Servers

The SERVERS page can also be used to edit an existing server. Right select the ellipsis (…) next to each server and select Edit Server. Change the connection credentials, tags, and any other information related to that server.

 

This is the first part of a three-part series of blog posts. Click here to view the second part.

 

For SQL Diagnostic Manager for MySQL, view the product pages, browse the datasheet, read a case studydownload the free trial, request a live product demonstration, request a price quotation, and purchase in the online store.