What’s New in PMM2?Michael Coburn and Rachel Pescador
Percona
Michael Coburn
● Product Manager for PMM (and Percona Toolkit)
● At Percona for seven years across multiple MySQL roles○ Principal Architect, Managing Consultant, Technical Account Manager
Rachel Pescador
● Product Marketing Manager at Percona
● Joined Percona in January 2019 from a professional services background ○ Focus on the promotion and messaging of PMM2, Percona Server and Percona Backup
for MongoDB and our support, consulting, and managed services offerings.
What is PMM and What Does it Do?
● PMM - Percona Monitoring and Management.
● PMM is a free, open source platform.
4
● PMM supports MySQL, MariaDB, MongoDB and PostgreSQL environments.
● PMM provides detailed time-based analysis.
● With PMM you can embrace multiple platform options.
● PMM can be used on-premises, and in the cloud, and it’s compatible with the major cloud providers.
The Evolution of PMM
● PMM was launched in 2016
● PMM2 launched 19th September 2019.
● Introducing a brand-new platform.
● A major upgrade, providing much greater Query Analytics performance and usability.
5
What’s New in PMM2?
● New performance and usability query improvements.● New query analytics for PostgreSQL. ● New ability to tag queries. ● New administrative API. ● New service-level dashboards.● Enhanced security protocols to ensure your data is safe.
6
Why You Should Upgrade to PMM2
● Still (and always) free and open source.● A single pane of glass.● An enhanced version of our award-winning database monitoring tool. ● Keeps your revenue engine up and running. ● Spend less time managing complex environments. ● Speed up development. ● Improve the quality of your releases and applications. ● Enterprise-ready.
7
8
Here’s….. Michael!
PMM Architecture
● pmm2-client (eg. MySQL host)○ mysqld_exporter - MySQL metrics○ node_exporter - Linux/OS metrics○ qan-agent - Query Analytics
● PMM Server○ Query Analytics○ Metrics Monitor
■ Prometheus■ Grafana
Query AnalyticsExamining queries in depth
Query Analytics
● Speed up development - PMM creates a common language between DBA’s, developers, and sysadmins to help speed development and release cycles
● Identify the queries consuming the most amount of time● Default is grouped by the query abstract
○ Query Abstract - WHERE clause removed (replaced by '?')● Answers:
○ Which queries are causing the most amount of load in my Environment?○ How often do these queries run?○ How long do these queries take to execute?○ What other query characteristics exist to display and sort?
Query Analytics Dashboard
Query Analytics Enhancements
● Add additional fields○ Any field collected can be displayed
● Sort○ By clicking the header you can sort ascending or descending
● Filters○ Select from left side filters, or via the Filter By box
● Group By○ Query, Service Name, Database, Schema, User Name, Client Host○ "Which users cause the most activity"○ "What is my busiest schema"
Query Analytics Filters
● Brand new feature in PMM2 that shows the distribution of matching queries against selected filters
● Two methods of selection:○ Filter by... box○ Left filter system
● Available categories (not exhaustive)○ Environment○ Cluster○ Replication Set○ Database○ Schema○ Node Name○ Service Name○ Client Host○ ...
PostgreSQL Query Detail
API
API
● Add/remove instances and services● Configuration management possibilities
● pmmdemo.percona.com/swagger
API - swagger
19
Security Improvements
Security changes
● Encrypted by default on the wire (TLS) ● Password protected exporters
Navigational Concepts
Navigation System Concepts
● Home dashboard - environmental overview● Instances Overview - grouping of like services (all MySQL servers)● Compare - put similar servers side by side● Summary - single instance, high level characteristics● Details - drill down at the instance level
Instances Overview Dashboards
Compare Dashboard
Summary Dashboard
Details Dashboard
27
PMM Demo
PMM and Kubernetes Operators
● Percona released Kubernetes Operator for PXC and MongoDB
● Watch how using PMM you can identify a high CPU + high QPS/node
● Scaling the cluster via the Operator allows for distribution of the workload
How you can help?
● Do you have any areas or benchmarks you want Percona to talk about in
blogs together?
● Any bugs to report? Use our JIRA system
● Any features or tools you think we should focus on? Please let us know!
● Thank you very much!
● Questions?
Rate My Session
30
We’re Hiring!
31
Percona’s open source database experts are true superheroes, improving database performance for customers across the globe.
Our staff live in nearly 30 different countries around the world, and most work remotely from home.
Discover what it means to have a Percona career with the smartest people in the database performance industries, solving the most challenging problems our customers come across.