Deploying Percona Monitoring and Management (PMM) through the Linode Marketplace
Traducciones al EspañolEstamos traduciendo nuestros guías y tutoriales al Español. Es posible que usted esté viendo una traducción generada automáticamente. Estamos trabajando con traductores profesionales para verificar las traducciones de nuestro sitio web. Este proyecto es un trabajo en curso.
Percona Monitoring and Management (PMM) is an open-source tool which provides a GUI powered by Grafana for monitoring and managing MySQL, MariaDB, PostgreSQL, and MongoDB databases. You can use PMM to easily observe important metrics, logging, and statistics related to your databases and the hosts they run on. Additionally, it includes a number of tools which can help to optimize your database’s performance, manage all database instances, and track and identify potential security threats. Linode’s Percona (PMM) Marketplace App deploys a Linode with PMM installed and ready for you to begin monitoring your databases.
PMM Architecture Overview
The PMM tool uses a client-server model which makes it easy to scale monitoring across several databases hosted on various remote hosts. See the table below to better understand how each PMM component fits into the context of Linode’s Percona (PMM) Marketplace App.
|PMM Server||The Percona (PMM) Marketplace App deploys an instance of the PMM Server, which includes the Grafana web interface to visualize all the data collected from the databases it monitors.|
|PMM Client||You will need to install the PMM Client on any Linode that hosts a database that you would like to monitor. The PMM Client will help you connect to the PMM Server and relay host and database performance metrics to the PMM Server.|
NoteFor a more detailed information on PMM’s architecture see Percona’s official documentation.
Deploying the Percona (PMM) Marketplace App
The Linode Marketplace allows you to easily deploy software on a Linode using the Linode Cloud Manager.
Log in to the Cloud Manager and select the Marketplace link from the left navigation menu. This displays the Linode Compute Create page with the Marketplace tab pre-selected.
Under the Select App section, select the app you would like to deploy.
Fill out all required Options for the selected app as well as any desired Advanced Options (which are optional). See the Configuration Options section for details.
Complete the rest of the form as discussed within the Getting Started > Create a Linode.
Click the Create Linode button. Once the Linode has provisioned and has fully powered on, wait for the software installation to complete. If the Linode is powered off or restarted before this time, the software installation will likely fail. To determine if the installation has completed, open the Linode’s Lish console and wait for the system login prompt to appear.
Follow the instructions within the Getting Started After Deployment section.
Software installation should complete within 1-5 minutes after the Linode has finished provisioning.
Percona (PMM) Options
|Admin Password||The password you will use to log in to the monitoring dashboard. Required.|
For advice on filling out the remaining options on the Create a Linode form, see Getting Started > Create a Linode. That said, some options may be limited or recommended based on this Marketplace App:
- Supported distributions: Debian 10
- Recommended minimum plan: All plan types and sizes can be used. Percona recommends roughly 1 GB of storage on your PMM Server for each database node you would like to monitor. For more information on Percona’s system requirements see their official documentation.
Getting Started after Deployment
Access your PMM Server’s Grafana Dashboard
PMM Server has finished installing, you will be able to access its Grafana dashboard over
http:// and your Linode’s IPv4 address. To find your Linode’s IPv4 address:
Click on the Linodes link in the sidebar. You will see a list of all your Linodes.
Find the Linode you just created when deploying your app and select it.
Navigate to the Networking tab.
Your IPv4 address will be listed under the Address column in the IPv4 table.
Copy and paste the IPv4 address into a browser window. Ensure you are using
You will see the Grafana login screen:
Enter the following default values for username and password, then click the Log In button:
Entry Default Value Username admin Password The admin password you selected when you create the app.
You will then see the PMM Home Dashboard actively monitoring your server:
Installing the PMM Client
To begin monitoring a database node, you will need to install the PMM Client on the Linode that hosts your database and connect the node to the PMM Server. For instructions on setting up a database on Linode that you can connect to your PMM Server, see our guides on:
- Deploying MySQL/MariaDB with Marketplace Apps
- Deploying PostgreSQL with Marketplace Apps
- Deploying MongoDB with Marketplace Apps
NoteThe PMM Server deployed with Linode’s Percona (PMM) Marketplace App is compatible with PMM Client version 2.
Connect to your database Linode via SSH.
Update your system’s software.
Debian or Ubuntu:
sudo apt-get update && apt-get upgrade
sudo yum update
Configure Percona repositories using the percona-release tool. First you’ll need to download and install the official
percona-releasepackage from Percona::
Debian or Ubuntu:
wget https://repo.percona.com/apt/percona-release_latest.generic_all.deb sudo dpkg -i percona-release_latest.generic_all.deb
sudo yum install https://repo.percona.com/yum/percona-release-latest.noarch.rpm
If you have previously enabled the experimental or testing Percona repository, don’t forget to disable them and enable the release component of the original repository as follows:
sudo percona-release disable all sudo percona-release enable original release
Install the PMM Client (version 2):
Debian or Ubuntu:
sudo apt-get update sudo apt-get install pmm2-client
sudo yum install pmm2-client
Connect your database node to the PMM Server. Replace
admin_passwordwith your PMM Server’s Grafana password, and
192.0.2.0with your PMM Server’s IPv4 address.
NoteFollow the steps in Find Your Linode’s IP Address to retrieve your PMM Server’s IPv4 address.
pmm-admin \ config \ --server-insecure-tls \ --server-url=https://admin:[email protected]:443
Once complete, you should see a similar output:
Checking local pmm-agent status... pmm-agent is running. Registering pmm-agent on PMM Server... Registered. Configuration file /usr/local/percona/pmm2/config/pmm-agent.yaml updated. Reloading pmm-agent configuration... Configuration reloaded. Checking local pmm-agent status... pmm-agent is running.
Monitor a Database Instance
Once your database node and your PMM Server are communicating, the final step is to add your database instance to be monitored by your PMM Server. These steps are completed on your database node.
Connect to your Linode via SSH.
Add your database instance to be monitored by your PMM Server. This command will add a MySQL database instance to be monitored. Replace
db_userwith your database’s user name, and
db_user_passwordwith that user’s password. You can also replace
mysqlwith the database type that your node is hosting (i.e.
mongodb). See Percona’s Using PMM Client documentation for details.
pmm-admin \ add mysql \ --username=db_user \ --password=db_user_password
Your Percona dashboard should now be monitoring your MySQL service.
NoteYou can also add a database remote instance node using the Grafana interface. In order to do this, your node must be configured with a public DNS name. This method of adding a remote database instance will not provide host-level metrics.
The Percona (PMM) Marketplace App installs the following required software on your Linode:
|Docker||Docker is used to containerize PMM.|
|PMM Server||PMM Server is the central part of PMM that aggregates collected data and presents it in the form of tables, dashboards, and graphs in a web interface.|
|Grafana||Grafana is the visualization tool used by PMM to provides charts, graphs, and alerts for the databases that are being monitored.|
NoteCurrently, Linode does not manage software and systems updates for Marketplace Apps. It is up to the user to perform routine maintenance on software deployed in this fashion.
The Percona Monitoring Management Tool is very powerful and can be configured to monitor and display various pieces of your database instances. Once you have completed the basic configurations outlined in this guide, you should review Percona’s documentation to learn more about the PMM tool. Here are some suggested topics:
This page was originally published on