Running PMM in Production at Tessi
Valentin Traen, Jonathan Gourdon, Michael Coburn Tessi, Percona
Running PMM in Production at Tessi Valentin Traen, Jonathan Gourdon, - - PowerPoint PPT Presentation
Running PMM in Production at Tessi Valentin Traen, Jonathan Gourdon, Michael Coburn Tessi, Percona Whats New in PMM2? New performance and usability query improvements. New query analytics for PostgreSQL. New labeling with
Running PMM in Production at Tessi
Valentin Traen, Jonathan Gourdon, Michael Coburn Tessi, Percona
What’s New in PMM2?
Why You Should Upgrade to PMM2
4
ABOUT THE PRESENTATION
ABOUT TESSI CUSTOMIZATION AUTOMATED DEPLOYMENT REASON TO MIGRATE TO PMM
5
6
Tessi, Business Process Services
7
PROCESS
8
MIGRATE TO PMM
Improve MySQL monitoring 6 Months project 3 Members Production Ready
300+ Instances POC Acceptance test Customization Deployment Automated Deployment
9
MIGRATE TO PMM
Symptom Oriented Don’t know how application works / Hard to debug Focuses on availability & response time Does not expose Application-level metrics WHAT WE HAD
REASON TO MIGRATE TO PMM
10
MIGRATE TO PMM
Combine Server & Application metrics Capacity Planning / Find under & over resource utilization Detect Both Hardware & Software Potential Problems Database Queries monitoring WHAT WE WANT
REASON TO MIGRATE TO PMM
11
MIGRATE TO PMM
PROMETHEUS GRAFANA OPEN SOURCE STACK MULTIPLE DATABASES TECHNOLOGIES HIGHLY CUSTOMIZABLE NOT CLOUD BASED EASY TO SETUP OBSERVABILITY COMBINE SERVERS & DB METRICS DETECT SATURATION / ERRORS SPEEDS UP TROUBLESHOOTING & QAN WHAT WE GOT
LIMITATIONS
12
MIGRATE TO PMM
Single Docker Container Scalabily & Flexibility Requires an Agent
13
CUSTOMIZATION OF HOME DASHBOARD : ALL YOU NEED TO KNOW ON YOUR SCREEN
14
PMM
Dashboard id : 10583
Features :
state
usage
instances
instances/clusters
USE VARIABLES TO GROUP YOUR INSTANCES
15
PMM
database name
DON’T FORGET TO PERSONNALIZE YOUR QUERIES-MYSQLD.YML
16
PMM
mysql_custom_metric_get_schema_name: query: "SELECT SCHEMA_NAME,0 AS VALUE FROM information_schema.SCHEMATA;" metrics:
usage: "LABEL" description: "The name of the MySQL schema"
usage: "GAUGE" description: "Fixed value"
valentinmysql (repository : MYSQL_PMM-Custom-YAML)
THE COMMUNITY IS NECESSARY
17
PMM
Status Dot by btplc
GROUP REPLICATION DASHBOARD
18
PMM
Dashboard id : 10006
Features :
enrolment
name
TAG : A POWERFUL FEATURE
19
PMM
CHECK YOUR RAM USAGE ADJUST YOUR SERVER RESOURCES
20
PMM
Dashboard id : 10654
Based on https://www.abhinavbit.com/p/mysql-memory-calculator.htmlCHECK YOUR RAM USAGE ADJUST YOUR SERVER RESOURCES
21
PMM
Dashboard id : 10654
LET YOUR DBA CHANGE THE CONFIGURATION OF YOUR INSTANCE …
22
PMM
LET YOUR DBA CHANGE THE CONFIGURATION OF YOUR INSTANCE …
23
PMM
24
25
AWX
DYNAMIC INVENTORY
ANSIBLE
PULL CUSTOMIZATION FROM GIT GIT PROJECT DEPLOYMENT
AUTOMATION
PMM Server MySQL Servers
26
RELEASE IRM TEST DEPLOY OPERATE
CONTINUOUS INTEGRATION & DEPLOYMENT
AUTOMATION
Include PMM to our CI/CD workflow
27
uri: url: "https://{{ pmm_server_url }}/{{ pmm_qan_api.instances }}" method: GET status_code: 200 body_format: json return_content: yes register: instances_list
set_fact: server_instances: "{{ instances_list.json | json_query(query) }}" vars: query: "[?Name=='{{ ansible_hostname }}'].Name" QAN INTEGRATION EXAMPLE
AUTOMATION
BEST PRACTICES
28
AUTOMATION
CREATE ATOMIC ROLES NAME ALL TASKS, NAME IT RIGHT ! DO NOT EDIT CONFIGURATION FILES, MANAGE THEM THROUGH TEMPLATES IDEMPOTENCY CREATE TESTING LIFECYLCE & STAGE ENVIRONMENTS
29
CREATE DOCUMENTATION FOR EACH ROLE
AUTOMATION
30
WHAT’S NEXT ?
31
PMM
Upgrade to PMM 2.0 Explore PMM Plugins Improve Alert Manager
Follow Us
Rate My Session
33We’re Hiring!
34Percona’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.