SlideShare a Scribd company logo
2© The Pythian Group Inc., 2018
November 6, 2018
Open Source Monitoring Conference
Nuremberg, Germany
Why we recommend
PMM to our clients
Matthias Crauwels
© The Pythian Group Inc., 2018 3
Who am I ?
© The Pythian Group Inc., 2018 44© The Pythian Group Inc., 2017
Matthias Crauwels
● Living in Ghent, Belgium
● Bachelor Computer Science
● ~20 years Linux user / admin
● 10+ years PHP developer
● 5+ years MySQL DBA
● 1+ year at Pythian as MySQL
Database Consultant
● Recently promoted to Lead
Database Consultant
● Father of Leander
© The Pythian Group Inc., 2018 5© The Pythian Group Inc., 2018 5
PYTHIAN
Pythian excels at helping businesses around the world use data and the cloud to transform
how they compete and win in the data economy. From cloud automation to machine
learning, Pythian leads the industry with proven innovative technologies and deep data
expertise. For more than 20 years Pythian has built its reputation by delivering solutions to
the toughest data challenges faster and better than anyone else.
6© 2018 Pythian. Confidential
AI / ML / BLOCKCHAIN
Intelligent analytics
and decision making
Software autonomy
Disruptive data technologies
CLOUD MIGRATION
& OPERATIONS
Plan, Migrate, Manage,
Optimize, Innovate
Multi-cloud, Hybrid-Cloud,
Cloud Native
ANALYTIC DATA SYSTEMS
Kick AaaS cloud-native, pre-packaged
analytics platform
Custom analytics platform design, implementation
and support services–for on-premises and cloud
Data science consulting and implementation services
OPERATIONAL DATA SYSTEMS
Database services–architecture
to ongoing management
On prem and in the cloud
Oracle, MS SQL, MySQL, Cassandra, MongoDB,
Hadoop, AWS/Azure/Google DBaaS
7© The Pythian Group Inc., 2018
AGENDA
7
● Introduction
● What is PMM?
● Components & Architecture
● Installing & Tuning PMM
● Why PMM?
8© The Pythian Group Inc., 2018
Let’s get started!
9© The Pythian Group Inc., 2018© The Pythian Group Inc., 2018 9
PMM is acronym for Percona Monitoring and Management
"Percona Monitoring and Management (PMM) is an open-source platform for
managing and monitoring MySQL and MongoDB performance. It is developed by
Percona in collaboration with experts in the field of managed database services,
support and consulting."
Current version v.1.15.0
What is PMM?
10© The Pythian Group Inc., 2018© The Pythian Group Inc., 2018 10
● Prometheus (v2 as of PMM v1.13.0)
Primary data store for time series data
● Grafana (v5.1 as of PMM v1.12.0)
Visualisation, primary web interface
● QAN (Query Analytics)
Collect query metrics to analyse query performance over time
● Consul
Service discovery
● Orchestrator
Topology management and visualization (not enabled by default since 1.3.0)
Components and Architecture (server side)
11© The Pythian Group Inc., 2018© The Pythian Group Inc., 2018 11
● Pull based (PMM server pulls from the PMM client)
● node_exporter
Linux system metrics
● mysqld_exporter
MySQL and InnoDB metrics
● mongodb_exporter
MongoDB metrics
● proxysql_exporter
ProxySQL metrics
● Push based (PMM client pushes to the PMM server)
● pmm-mysql-queries
Pushes MySQL query statistics to QAN
● pmm-mongo-queries
Pushes MongoDB query statistics to QAN
Components and Architecture (client side)
12© The Pythian Group Inc., 2018© The Pythian Group Inc., 2018 12
13© The Pythian Group Inc., 2018© The Pythian Group Inc., 2018 13
pmm-admin tool for managing the PMM client installation
Tool written in Go to configure the connection between PMM client and
the PMM server.
This is the tool that will update the consul service discovery data.
Note: Even with the consul web-endpoint (/consul/) available on the
server it is not recommended to make changes to that interface without
using the pmm-admin tool.
Components and Architecture (client side)
14© The Pythian Group Inc., 2018© The Pythian Group Inc., 2018 14
# pmm-admin list
...
PMM Server | 192.168.100.1
Client Name | ubuntu-amd64
Client Address | 192.168.200.1
Service manager | linux-systemd
---------------- ----------- ----------- -------- ---------------- --------
SERVICE TYPE NAME LOCAL PORT RUNNING DATA SOURCE OPTIONS
---------------- ----------- ----------- -------- ---------------- --------
linux:metrics mongo-main 42000 YES -
mongodb:metrics mongo-main 42003 YES localhost:27017
pmm-admin samples
15© The Pythian Group Inc., 2018© The Pythian Group Inc., 2018 15
# pmm-admin check-network
PMM Network Status
Server Address | 192.168.100.1
Client Address | 192.168.200.1
* System Time
NTP Server (0.pool.ntp.org) | 2017-05-03 12:05:38 -0400 EDT
PMM Server | 2017-05-03 16:05:38 +0000 GMT
PMM Client | 2017-05-03 12:05:38 -0400 EDT
PMM Server Time Drift | OK
PMM Client Time Drift | OK
PMM Client to PMM Server Time Drift | OK
...
pmm-admin samples
16© The Pythian Group Inc., 2018© The Pythian Group Inc., 2018 16
# pmm-admin check-network
PMM Network Status
Server Address | 192.168.100.1
Client Address | 192.168.200.1
...
* Connection: Client --> Server
-------------------- -------------
SERVER SERVICE STATUS
-------------------- -------------
Consul API OK
Prometheus API OK
Query Analytics API OK
Connection duration | 166.689µs
Request duration | 364.527µs
Full round trip | 531.216µs
...
pmm-admin samples
17© The Pythian Group Inc., 2018© The Pythian Group Inc., 2018 17
# pmm-admin check-network
PMM Network Status
Server Address | 192.168.100.1
Client Address | 192.168.200.1
...
* Connection: Client <-- Server
---------------- ----------- -------------------- -------- ---------- ---------
SERVICE TYPE NAME REMOTE ENDPOINT STATUS HTTPS/TLS PASSWORD
---------------- ----------- -------------------- -------- ---------- ---------
linux:metrics mongo-main 192.168.200.1:42000 OK YES -
mongodb:metrics mongo-main 192.168.200.1:42003 PROBLEM YES -
pmm-admin samples
18© The Pythian Group Inc., 2018© The Pythian Group Inc., 2018 18
3 distribution methods are available
● Docker image
● OVA package (virtual appliance)
● AWS marketplace
Most popular in my experience is the Docker approach.
Installing PMM server (1)
19© The Pythian Group Inc., 2018© The Pythian Group Inc., 2018 19
Recommended to have 4 data volumes
● Prometheus: /opt/prometheus/data
● Consul: /opt/consul-data
● MySQL: /var/lib/mysql
● Grafana: /var/lib/grafana
At first run PMM will initialize the data directories. It will also set the
privileges right at this time. You'll need to run without the volume
mappings at this time, then stop the container/appliance and move the
data to the appropriate volumes.
Installing PMM server (2)
20© The Pythian Group Inc., 2018© The Pythian Group Inc., 2018 20
By default, a docker container could access as much memory as the
host’s kernel scheduler allows. In an environment where the host is
shared with other containers or processes, you may want to limit the
amount of memory PMM container can allocate. To do so in a standalone
docker environment:
$ sudo docker run --memory=4G ..
Also by default, prometheus will allocate all memory available to the
container for storing the most recently used data chunks. If the memory
available to the container is limited, restrict prometheus memory usage
for data chunks so it leaves enough memory for MySQL, consul and
grafana. In the example below we are setting a limit of 2Gb.
$ sudo docker run -e METRICS_MEMORY=2097152 ..
Tuning PMM server (1)
21© The Pythian Group Inc., 2018© The Pythian Group Inc., 2018 21
By default, prometheus stores time-series data for 30 days, and QAN
stores query data for 8 days. To change this defaults use the following
variables (in hours):
$ sudo docker run -e METRICS_RETENTION=4400h -e
QUERIES_RETENTION=4400h ..
Of course, total space usage depends on the amount of monitored hosts,
the retention period and even the metrics resolution. The default sample
rate is 1 second. You could consider increasing
METRICS_RESOLUTION (in seconds) to reduce the storage footprint:
$ sudo docker run -e METRICS_RESOLUTION=5s
Tuning PMM server (2)
22© The Pythian Group Inc., 2018
Why PMM?
23© The Pythian Group Inc., 2018 23
How Metrics Monitor is helpful
24© The Pythian Group Inc., 2018© The Pythian Group Inc., 2018 24
Historical Monitoring
25© The Pythian Group Inc., 2018© The Pythian Group Inc., 2018 25
There are a number of commercial tools available that can offer similar
kind of monitoring solution. Usually Software-as-a-Service (SaaS)
solutions.
● Expensive (mostly pay per server solutions)
● Data shipped off-site
● Dependent on your internet uplink from your backend servers
● Not so customizable
● ...
Open Source
26© The Pythian Group Inc., 2018 26
Security
● Inside our network
● SSL communication
● Docker / Appliance
● HTTPs Authentication
● Custom setup
27© The Pythian Group Inc., 2018© The Pythian Group Inc., 2018 27
● Multiple options for installation
● PMM Client packages availability
● Open Source
● Custom dashboards
● Possibility to monitor other services too
Flexibility
28© The Pythian Group Inc., 2018 28
Easy to set up
29© The Pythian Group Inc., 2018© The Pythian Group Inc., 2018 29
Since Grafana v4.0 there is the option configure alerting in Grafana.
Grafana is a core component for PMM
PMM has all the metrics
let's configure thresholds and push out alerts
Alerting
30© The Pythian Group Inc., 2018
Questions?
31© The Pythian Group Inc., 2018
Trivia time
32© The Pythian Group Inc., 2018 32
33© The Pythian Group Inc., 2018 33
34© The Pythian Group Inc., 2018 34
35© The Pythian Group Inc., 2018 35
36© The Pythian Group Inc., 2018
Thank you!
Contact
Matthias Crauwels
crauwels@pythian.com
+1 (613) 565-8696 ext. 1215
We are hiring!
http://pythian.com/careers

More Related Content

What's hot

Flink Forward Berlin 2017: Jörg Schad, Till Rohrmann - Apache Flink meets Apa...
Flink Forward Berlin 2017: Jörg Schad, Till Rohrmann - Apache Flink meets Apa...Flink Forward Berlin 2017: Jörg Schad, Till Rohrmann - Apache Flink meets Apa...
Flink Forward Berlin 2017: Jörg Schad, Till Rohrmann - Apache Flink meets Apa...
Flink Forward
 
Performance is not an Option - gRPC and Cassandra
Performance is not an Option - gRPC and CassandraPerformance is not an Option - gRPC and Cassandra
Performance is not an Option - gRPC and Cassandra
Dave Bechberger
 
Kong in 1.x Territory
Kong in 1.x TerritoryKong in 1.x Territory
Kong in 1.x Territory
Thibault Charbonnier
 
War Stories: DIY Kafka
War Stories: DIY KafkaWar Stories: DIY Kafka
War Stories: DIY Kafka
confluent
 
InterPlanetary File System (IPFS)
InterPlanetary File System (IPFS)InterPlanetary File System (IPFS)
InterPlanetary File System (IPFS)
Gene Leybzon
 
ChronoLogic ERC20 Transfers 4/17/18
ChronoLogic ERC20 Transfers 4/17/18 ChronoLogic ERC20 Transfers 4/17/18
ChronoLogic ERC20 Transfers 4/17/18
ChronoLogic
 
Kafka’s New Control Plane: The Quorum Controller | Colin McCabe, Confluent
Kafka’s New Control Plane: The Quorum Controller | Colin McCabe, ConfluentKafka’s New Control Plane: The Quorum Controller | Colin McCabe, Confluent
Kafka’s New Control Plane: The Quorum Controller | Colin McCabe, Confluent
HostedbyConfluent
 
Orchestrating Shared Networks, Physical LB and DNS on Cloudstack
Orchestrating Shared Networks, Physical LB and DNS on CloudstackOrchestrating Shared Networks, Physical LB and DNS on Cloudstack
Orchestrating Shared Networks, Physical LB and DNS on Cloudstack
Marcus Vinicius Cesário
 
Automated monitoring using grafana - DevOpsBKK 2018
Automated monitoring using grafana  - DevOpsBKK 2018Automated monitoring using grafana  - DevOpsBKK 2018
Automated monitoring using grafana - DevOpsBKK 2018
Eakkapan Sinlapachipwilai
 
Akamai Edge: Tracking the Performance of the Web with HTTP Archive
Akamai Edge: Tracking the Performance of the Web with HTTP ArchiveAkamai Edge: Tracking the Performance of the Web with HTTP Archive
Akamai Edge: Tracking the Performance of the Web with HTTP Archive
Rick Viscomi
 
Microservices summit talk 1/31
Microservices summit talk   1/31Microservices summit talk   1/31
Microservices summit talk 1/31
Varun Talwar
 
G rpc talk with intel (3)
G rpc talk with intel (3)G rpc talk with intel (3)
G rpc talk with intel (3)
Intel
 
Apache Deep Learning 201 - Philly Open Source
Apache Deep Learning 201 - Philly Open SourceApache Deep Learning 201 - Philly Open Source
Apache Deep Learning 201 - Philly Open Source
Timothy Spann
 
Prometheus grafana workshop
Prometheus grafana workshopPrometheus grafana workshop
Prometheus grafana workshop
Demis Rizzotto
 
Tracking the Performance of the Web with HTTP Archive
Tracking the Performance of the Web with HTTP ArchiveTracking the Performance of the Web with HTTP Archive
Tracking the Performance of the Web with HTTP Archive
Rick Viscomi
 
Flink Forward San Francisco 2018: Steven Wu - "Scaling Flink in Cloud"
Flink Forward San Francisco 2018: Steven Wu - "Scaling Flink in Cloud" Flink Forward San Francisco 2018: Steven Wu - "Scaling Flink in Cloud"
Flink Forward San Francisco 2018: Steven Wu - "Scaling Flink in Cloud"
Flink Forward
 
Influx/Days 2017 San Francisco | Dan Cech
Influx/Days 2017 San Francisco | Dan Cech Influx/Days 2017 San Francisco | Dan Cech
Influx/Days 2017 San Francisco | Dan Cech
InfluxData
 
What's the time? ...and why? (Mattias Sax, Confluent) Kafka Summit SF 2019
What's the time? ...and why? (Mattias Sax, Confluent) Kafka Summit SF 2019What's the time? ...and why? (Mattias Sax, Confluent) Kafka Summit SF 2019
What's the time? ...and why? (Mattias Sax, Confluent) Kafka Summit SF 2019
confluent
 
Time Series Database and Tick Stack
Time Series Database and Tick StackTime Series Database and Tick Stack
Time Series Database and Tick Stack
Gianluca Arbezzano
 
Wayfair Storefront Performance Monitoring with InfluxEnterprise by Richard La...
Wayfair Storefront Performance Monitoring with InfluxEnterprise by Richard La...Wayfair Storefront Performance Monitoring with InfluxEnterprise by Richard La...
Wayfair Storefront Performance Monitoring with InfluxEnterprise by Richard La...
InfluxData
 

What's hot (20)

Flink Forward Berlin 2017: Jörg Schad, Till Rohrmann - Apache Flink meets Apa...
Flink Forward Berlin 2017: Jörg Schad, Till Rohrmann - Apache Flink meets Apa...Flink Forward Berlin 2017: Jörg Schad, Till Rohrmann - Apache Flink meets Apa...
Flink Forward Berlin 2017: Jörg Schad, Till Rohrmann - Apache Flink meets Apa...
 
Performance is not an Option - gRPC and Cassandra
Performance is not an Option - gRPC and CassandraPerformance is not an Option - gRPC and Cassandra
Performance is not an Option - gRPC and Cassandra
 
Kong in 1.x Territory
Kong in 1.x TerritoryKong in 1.x Territory
Kong in 1.x Territory
 
War Stories: DIY Kafka
War Stories: DIY KafkaWar Stories: DIY Kafka
War Stories: DIY Kafka
 
InterPlanetary File System (IPFS)
InterPlanetary File System (IPFS)InterPlanetary File System (IPFS)
InterPlanetary File System (IPFS)
 
ChronoLogic ERC20 Transfers 4/17/18
ChronoLogic ERC20 Transfers 4/17/18 ChronoLogic ERC20 Transfers 4/17/18
ChronoLogic ERC20 Transfers 4/17/18
 
Kafka’s New Control Plane: The Quorum Controller | Colin McCabe, Confluent
Kafka’s New Control Plane: The Quorum Controller | Colin McCabe, ConfluentKafka’s New Control Plane: The Quorum Controller | Colin McCabe, Confluent
Kafka’s New Control Plane: The Quorum Controller | Colin McCabe, Confluent
 
Orchestrating Shared Networks, Physical LB and DNS on Cloudstack
Orchestrating Shared Networks, Physical LB and DNS on CloudstackOrchestrating Shared Networks, Physical LB and DNS on Cloudstack
Orchestrating Shared Networks, Physical LB and DNS on Cloudstack
 
Automated monitoring using grafana - DevOpsBKK 2018
Automated monitoring using grafana  - DevOpsBKK 2018Automated monitoring using grafana  - DevOpsBKK 2018
Automated monitoring using grafana - DevOpsBKK 2018
 
Akamai Edge: Tracking the Performance of the Web with HTTP Archive
Akamai Edge: Tracking the Performance of the Web with HTTP ArchiveAkamai Edge: Tracking the Performance of the Web with HTTP Archive
Akamai Edge: Tracking the Performance of the Web with HTTP Archive
 
Microservices summit talk 1/31
Microservices summit talk   1/31Microservices summit talk   1/31
Microservices summit talk 1/31
 
G rpc talk with intel (3)
G rpc talk with intel (3)G rpc talk with intel (3)
G rpc talk with intel (3)
 
Apache Deep Learning 201 - Philly Open Source
Apache Deep Learning 201 - Philly Open SourceApache Deep Learning 201 - Philly Open Source
Apache Deep Learning 201 - Philly Open Source
 
Prometheus grafana workshop
Prometheus grafana workshopPrometheus grafana workshop
Prometheus grafana workshop
 
Tracking the Performance of the Web with HTTP Archive
Tracking the Performance of the Web with HTTP ArchiveTracking the Performance of the Web with HTTP Archive
Tracking the Performance of the Web with HTTP Archive
 
Flink Forward San Francisco 2018: Steven Wu - "Scaling Flink in Cloud"
Flink Forward San Francisco 2018: Steven Wu - "Scaling Flink in Cloud" Flink Forward San Francisco 2018: Steven Wu - "Scaling Flink in Cloud"
Flink Forward San Francisco 2018: Steven Wu - "Scaling Flink in Cloud"
 
Influx/Days 2017 San Francisco | Dan Cech
Influx/Days 2017 San Francisco | Dan Cech Influx/Days 2017 San Francisco | Dan Cech
Influx/Days 2017 San Francisco | Dan Cech
 
What's the time? ...and why? (Mattias Sax, Confluent) Kafka Summit SF 2019
What's the time? ...and why? (Mattias Sax, Confluent) Kafka Summit SF 2019What's the time? ...and why? (Mattias Sax, Confluent) Kafka Summit SF 2019
What's the time? ...and why? (Mattias Sax, Confluent) Kafka Summit SF 2019
 
Time Series Database and Tick Stack
Time Series Database and Tick StackTime Series Database and Tick Stack
Time Series Database and Tick Stack
 
Wayfair Storefront Performance Monitoring with InfluxEnterprise by Richard La...
Wayfair Storefront Performance Monitoring with InfluxEnterprise by Richard La...Wayfair Storefront Performance Monitoring with InfluxEnterprise by Richard La...
Wayfair Storefront Performance Monitoring with InfluxEnterprise by Richard La...
 

Similar to OSMC 2018 | Why we recommend PMM to our clients by Matthias Crauwels

Deploying MariaDB for HA on Google Cloud Platform
Deploying MariaDB for HA on Google Cloud PlatformDeploying MariaDB for HA on Google Cloud Platform
Deploying MariaDB for HA on Google Cloud Platform
MariaDB plc
 
Implementing MySQL Database-as-a-Service using open source tools
Implementing MySQL Database-as-a-Service using open source toolsImplementing MySQL Database-as-a-Service using open source tools
Implementing MySQL Database-as-a-Service using open source tools
All Things Open
 
Poc exadata 2018
Poc exadata 2018Poc exadata 2018
Poc exadata 2018
Jacques Kostic
 
P4 Introduction
P4 Introduction P4 Introduction
P4 Introduction
Netronome
 
UI5 with Akamai - Introduction to the Content Delivery Network
UI5 with Akamai - Introduction to the Content Delivery NetworkUI5 with Akamai - Introduction to the Content Delivery Network
UI5 with Akamai - Introduction to the Content Delivery Network
Gokul Anand E, PMP®
 
Cloud Native with Kyma
Cloud Native with KymaCloud Native with Kyma
Cloud Native with Kyma
Piotr Kopczynski
 
QCon 2018 | Gimel | PayPal's Analytic Platform
QCon 2018 | Gimel | PayPal's Analytic PlatformQCon 2018 | Gimel | PayPal's Analytic Platform
QCon 2018 | Gimel | PayPal's Analytic Platform
Deepak Chandramouli
 
Motadata - Unified Product Suite for IT Operations and Big Data Analytics
Motadata - Unified Product Suite for IT Operations and Big Data AnalyticsMotadata - Unified Product Suite for IT Operations and Big Data Analytics
Motadata - Unified Product Suite for IT Operations and Big Data Analytics
novsela
 
Gimel at Dataworks Summit San Jose 2018
Gimel at Dataworks Summit San Jose 2018Gimel at Dataworks Summit San Jose 2018
Gimel at Dataworks Summit San Jose 2018
Romit Mehta
 
Dataworks | 2018-06-20 | Gimel data platform
Dataworks | 2018-06-20 | Gimel data platformDataworks | 2018-06-20 | Gimel data platform
Dataworks | 2018-06-20 | Gimel data platform
Deepak Chandramouli
 
Challenges for Implementing PMEM Aware Application with PMDK
Challenges for Implementing PMEM Aware Application with PMDKChallenges for Implementing PMEM Aware Application with PMDK
Challenges for Implementing PMEM Aware Application with PMDK
NTT Software Innovation Center
 
Poc Exadata X7-2 OVM
Poc Exadata X7-2 OVMPoc Exadata X7-2 OVM
Poc Exadata X7-2 OVM
Emiliano Fusaglia
 
Big data processing with PubSub, Dataflow, and BigQuery
Big data processing with PubSub, Dataflow, and BigQueryBig data processing with PubSub, Dataflow, and BigQuery
Big data processing with PubSub, Dataflow, and BigQuery
Thuyen Ho
 
Why You Need Manageability Now More than Ever and How to Get It
Why You Need Manageability Now More than Ever and How to Get ItWhy You Need Manageability Now More than Ever and How to Get It
Why You Need Manageability Now More than Ever and How to Get It
Gustavo Rene Antunez
 
DEM07 Best Practices for Monitoring Amazon ECS Containers Launched with Fargate
DEM07 Best Practices for Monitoring Amazon ECS Containers Launched with FargateDEM07 Best Practices for Monitoring Amazon ECS Containers Launched with Fargate
DEM07 Best Practices for Monitoring Amazon ECS Containers Launched with Fargate
Amazon Web Services
 
Make your data fly - Building data platform in AWS
Make your data fly - Building data platform in AWSMake your data fly - Building data platform in AWS
Make your data fly - Building data platform in AWS
Kimmo Kantojärvi
 
Танки в облаках
Танки в облакахТанки в облаках
Танки в облаках
OpenStackRussia
 
Immutable Deployment Hands-On Lab Interop ITX
Immutable Deployment Hands-On Lab Interop ITXImmutable Deployment Hands-On Lab Interop ITX
Immutable Deployment Hands-On Lab Interop ITX
RackN
 
TechEvent Exdata X7-2 POC with OVM
TechEvent Exdata X7-2 POC with OVMTechEvent Exdata X7-2 POC with OVM
TechEvent Exdata X7-2 POC with OVM
Trivadis
 
How Reddit Scales to 1B+ Video Views a Month Using AWS (CTD320) - AWS re:Inve...
How Reddit Scales to 1B+ Video Views a Month Using AWS (CTD320) - AWS re:Inve...How Reddit Scales to 1B+ Video Views a Month Using AWS (CTD320) - AWS re:Inve...
How Reddit Scales to 1B+ Video Views a Month Using AWS (CTD320) - AWS re:Inve...
Amazon Web Services
 

Similar to OSMC 2018 | Why we recommend PMM to our clients by Matthias Crauwels (20)

Deploying MariaDB for HA on Google Cloud Platform
Deploying MariaDB for HA on Google Cloud PlatformDeploying MariaDB for HA on Google Cloud Platform
Deploying MariaDB for HA on Google Cloud Platform
 
Implementing MySQL Database-as-a-Service using open source tools
Implementing MySQL Database-as-a-Service using open source toolsImplementing MySQL Database-as-a-Service using open source tools
Implementing MySQL Database-as-a-Service using open source tools
 
Poc exadata 2018
Poc exadata 2018Poc exadata 2018
Poc exadata 2018
 
P4 Introduction
P4 Introduction P4 Introduction
P4 Introduction
 
UI5 with Akamai - Introduction to the Content Delivery Network
UI5 with Akamai - Introduction to the Content Delivery NetworkUI5 with Akamai - Introduction to the Content Delivery Network
UI5 with Akamai - Introduction to the Content Delivery Network
 
Cloud Native with Kyma
Cloud Native with KymaCloud Native with Kyma
Cloud Native with Kyma
 
QCon 2018 | Gimel | PayPal's Analytic Platform
QCon 2018 | Gimel | PayPal's Analytic PlatformQCon 2018 | Gimel | PayPal's Analytic Platform
QCon 2018 | Gimel | PayPal's Analytic Platform
 
Motadata - Unified Product Suite for IT Operations and Big Data Analytics
Motadata - Unified Product Suite for IT Operations and Big Data AnalyticsMotadata - Unified Product Suite for IT Operations and Big Data Analytics
Motadata - Unified Product Suite for IT Operations and Big Data Analytics
 
Gimel at Dataworks Summit San Jose 2018
Gimel at Dataworks Summit San Jose 2018Gimel at Dataworks Summit San Jose 2018
Gimel at Dataworks Summit San Jose 2018
 
Dataworks | 2018-06-20 | Gimel data platform
Dataworks | 2018-06-20 | Gimel data platformDataworks | 2018-06-20 | Gimel data platform
Dataworks | 2018-06-20 | Gimel data platform
 
Challenges for Implementing PMEM Aware Application with PMDK
Challenges for Implementing PMEM Aware Application with PMDKChallenges for Implementing PMEM Aware Application with PMDK
Challenges for Implementing PMEM Aware Application with PMDK
 
Poc Exadata X7-2 OVM
Poc Exadata X7-2 OVMPoc Exadata X7-2 OVM
Poc Exadata X7-2 OVM
 
Big data processing with PubSub, Dataflow, and BigQuery
Big data processing with PubSub, Dataflow, and BigQueryBig data processing with PubSub, Dataflow, and BigQuery
Big data processing with PubSub, Dataflow, and BigQuery
 
Why You Need Manageability Now More than Ever and How to Get It
Why You Need Manageability Now More than Ever and How to Get ItWhy You Need Manageability Now More than Ever and How to Get It
Why You Need Manageability Now More than Ever and How to Get It
 
DEM07 Best Practices for Monitoring Amazon ECS Containers Launched with Fargate
DEM07 Best Practices for Monitoring Amazon ECS Containers Launched with FargateDEM07 Best Practices for Monitoring Amazon ECS Containers Launched with Fargate
DEM07 Best Practices for Monitoring Amazon ECS Containers Launched with Fargate
 
Make your data fly - Building data platform in AWS
Make your data fly - Building data platform in AWSMake your data fly - Building data platform in AWS
Make your data fly - Building data platform in AWS
 
Танки в облаках
Танки в облакахТанки в облаках
Танки в облаках
 
Immutable Deployment Hands-On Lab Interop ITX
Immutable Deployment Hands-On Lab Interop ITXImmutable Deployment Hands-On Lab Interop ITX
Immutable Deployment Hands-On Lab Interop ITX
 
TechEvent Exdata X7-2 POC with OVM
TechEvent Exdata X7-2 POC with OVMTechEvent Exdata X7-2 POC with OVM
TechEvent Exdata X7-2 POC with OVM
 
How Reddit Scales to 1B+ Video Views a Month Using AWS (CTD320) - AWS re:Inve...
How Reddit Scales to 1B+ Video Views a Month Using AWS (CTD320) - AWS re:Inve...How Reddit Scales to 1B+ Video Views a Month Using AWS (CTD320) - AWS re:Inve...
How Reddit Scales to 1B+ Video Views a Month Using AWS (CTD320) - AWS re:Inve...
 

Recently uploaded

SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024
Hironori Washizaki
 
Using Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional SafetyUsing Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional Safety
Ayan Halder
 
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Neo4j
 
GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
Neo4j
 
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppAI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
Google
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
Octavian Nadolu
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
Adele Miller
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
Deuglo Infosystem Pvt Ltd
 
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
Alina Yurenko
 
What is Augmented Reality Image Tracking
What is Augmented Reality Image TrackingWhat is Augmented Reality Image Tracking
What is Augmented Reality Image Tracking
pavan998932
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
timtebeek1
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
TheSMSPoint
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
Philip Schwarz
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke
 
Hand Rolled Applicative User Validation Code Kata
Hand Rolled Applicative User ValidationCode KataHand Rolled Applicative User ValidationCode Kata
Hand Rolled Applicative User Validation Code Kata
Philip Schwarz
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
Max Andersen
 
Graspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code AnalysisGraspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code Analysis
Aftab Hussain
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
Google
 
APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)
Boni García
 

Recently uploaded (20)

SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024
 
Using Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional SafetyUsing Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional Safety
 
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
 
GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
 
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppAI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
 
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
 
What is Augmented Reality Image Tracking
What is Augmented Reality Image TrackingWhat is Augmented Reality Image Tracking
What is Augmented Reality Image Tracking
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
 
Hand Rolled Applicative User Validation Code Kata
Hand Rolled Applicative User ValidationCode KataHand Rolled Applicative User ValidationCode Kata
Hand Rolled Applicative User Validation Code Kata
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
 
Graspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code AnalysisGraspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code Analysis
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
 
APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)
 

OSMC 2018 | Why we recommend PMM to our clients by Matthias Crauwels

  • 1. 2© The Pythian Group Inc., 2018 November 6, 2018 Open Source Monitoring Conference Nuremberg, Germany Why we recommend PMM to our clients Matthias Crauwels
  • 2. © The Pythian Group Inc., 2018 3 Who am I ?
  • 3. © The Pythian Group Inc., 2018 44© The Pythian Group Inc., 2017 Matthias Crauwels ● Living in Ghent, Belgium ● Bachelor Computer Science ● ~20 years Linux user / admin ● 10+ years PHP developer ● 5+ years MySQL DBA ● 1+ year at Pythian as MySQL Database Consultant ● Recently promoted to Lead Database Consultant ● Father of Leander
  • 4. © The Pythian Group Inc., 2018 5© The Pythian Group Inc., 2018 5 PYTHIAN Pythian excels at helping businesses around the world use data and the cloud to transform how they compete and win in the data economy. From cloud automation to machine learning, Pythian leads the industry with proven innovative technologies and deep data expertise. For more than 20 years Pythian has built its reputation by delivering solutions to the toughest data challenges faster and better than anyone else.
  • 5. 6© 2018 Pythian. Confidential AI / ML / BLOCKCHAIN Intelligent analytics and decision making Software autonomy Disruptive data technologies CLOUD MIGRATION & OPERATIONS Plan, Migrate, Manage, Optimize, Innovate Multi-cloud, Hybrid-Cloud, Cloud Native ANALYTIC DATA SYSTEMS Kick AaaS cloud-native, pre-packaged analytics platform Custom analytics platform design, implementation and support services–for on-premises and cloud Data science consulting and implementation services OPERATIONAL DATA SYSTEMS Database services–architecture to ongoing management On prem and in the cloud Oracle, MS SQL, MySQL, Cassandra, MongoDB, Hadoop, AWS/Azure/Google DBaaS
  • 6. 7© The Pythian Group Inc., 2018 AGENDA 7 ● Introduction ● What is PMM? ● Components & Architecture ● Installing & Tuning PMM ● Why PMM?
  • 7. 8© The Pythian Group Inc., 2018 Let’s get started!
  • 8. 9© The Pythian Group Inc., 2018© The Pythian Group Inc., 2018 9 PMM is acronym for Percona Monitoring and Management "Percona Monitoring and Management (PMM) is an open-source platform for managing and monitoring MySQL and MongoDB performance. It is developed by Percona in collaboration with experts in the field of managed database services, support and consulting." Current version v.1.15.0 What is PMM?
  • 9. 10© The Pythian Group Inc., 2018© The Pythian Group Inc., 2018 10 ● Prometheus (v2 as of PMM v1.13.0) Primary data store for time series data ● Grafana (v5.1 as of PMM v1.12.0) Visualisation, primary web interface ● QAN (Query Analytics) Collect query metrics to analyse query performance over time ● Consul Service discovery ● Orchestrator Topology management and visualization (not enabled by default since 1.3.0) Components and Architecture (server side)
  • 10. 11© The Pythian Group Inc., 2018© The Pythian Group Inc., 2018 11 ● Pull based (PMM server pulls from the PMM client) ● node_exporter Linux system metrics ● mysqld_exporter MySQL and InnoDB metrics ● mongodb_exporter MongoDB metrics ● proxysql_exporter ProxySQL metrics ● Push based (PMM client pushes to the PMM server) ● pmm-mysql-queries Pushes MySQL query statistics to QAN ● pmm-mongo-queries Pushes MongoDB query statistics to QAN Components and Architecture (client side)
  • 11. 12© The Pythian Group Inc., 2018© The Pythian Group Inc., 2018 12
  • 12. 13© The Pythian Group Inc., 2018© The Pythian Group Inc., 2018 13 pmm-admin tool for managing the PMM client installation Tool written in Go to configure the connection between PMM client and the PMM server. This is the tool that will update the consul service discovery data. Note: Even with the consul web-endpoint (/consul/) available on the server it is not recommended to make changes to that interface without using the pmm-admin tool. Components and Architecture (client side)
  • 13. 14© The Pythian Group Inc., 2018© The Pythian Group Inc., 2018 14 # pmm-admin list ... PMM Server | 192.168.100.1 Client Name | ubuntu-amd64 Client Address | 192.168.200.1 Service manager | linux-systemd ---------------- ----------- ----------- -------- ---------------- -------- SERVICE TYPE NAME LOCAL PORT RUNNING DATA SOURCE OPTIONS ---------------- ----------- ----------- -------- ---------------- -------- linux:metrics mongo-main 42000 YES - mongodb:metrics mongo-main 42003 YES localhost:27017 pmm-admin samples
  • 14. 15© The Pythian Group Inc., 2018© The Pythian Group Inc., 2018 15 # pmm-admin check-network PMM Network Status Server Address | 192.168.100.1 Client Address | 192.168.200.1 * System Time NTP Server (0.pool.ntp.org) | 2017-05-03 12:05:38 -0400 EDT PMM Server | 2017-05-03 16:05:38 +0000 GMT PMM Client | 2017-05-03 12:05:38 -0400 EDT PMM Server Time Drift | OK PMM Client Time Drift | OK PMM Client to PMM Server Time Drift | OK ... pmm-admin samples
  • 15. 16© The Pythian Group Inc., 2018© The Pythian Group Inc., 2018 16 # pmm-admin check-network PMM Network Status Server Address | 192.168.100.1 Client Address | 192.168.200.1 ... * Connection: Client --> Server -------------------- ------------- SERVER SERVICE STATUS -------------------- ------------- Consul API OK Prometheus API OK Query Analytics API OK Connection duration | 166.689µs Request duration | 364.527µs Full round trip | 531.216µs ... pmm-admin samples
  • 16. 17© The Pythian Group Inc., 2018© The Pythian Group Inc., 2018 17 # pmm-admin check-network PMM Network Status Server Address | 192.168.100.1 Client Address | 192.168.200.1 ... * Connection: Client <-- Server ---------------- ----------- -------------------- -------- ---------- --------- SERVICE TYPE NAME REMOTE ENDPOINT STATUS HTTPS/TLS PASSWORD ---------------- ----------- -------------------- -------- ---------- --------- linux:metrics mongo-main 192.168.200.1:42000 OK YES - mongodb:metrics mongo-main 192.168.200.1:42003 PROBLEM YES - pmm-admin samples
  • 17. 18© The Pythian Group Inc., 2018© The Pythian Group Inc., 2018 18 3 distribution methods are available ● Docker image ● OVA package (virtual appliance) ● AWS marketplace Most popular in my experience is the Docker approach. Installing PMM server (1)
  • 18. 19© The Pythian Group Inc., 2018© The Pythian Group Inc., 2018 19 Recommended to have 4 data volumes ● Prometheus: /opt/prometheus/data ● Consul: /opt/consul-data ● MySQL: /var/lib/mysql ● Grafana: /var/lib/grafana At first run PMM will initialize the data directories. It will also set the privileges right at this time. You'll need to run without the volume mappings at this time, then stop the container/appliance and move the data to the appropriate volumes. Installing PMM server (2)
  • 19. 20© The Pythian Group Inc., 2018© The Pythian Group Inc., 2018 20 By default, a docker container could access as much memory as the host’s kernel scheduler allows. In an environment where the host is shared with other containers or processes, you may want to limit the amount of memory PMM container can allocate. To do so in a standalone docker environment: $ sudo docker run --memory=4G .. Also by default, prometheus will allocate all memory available to the container for storing the most recently used data chunks. If the memory available to the container is limited, restrict prometheus memory usage for data chunks so it leaves enough memory for MySQL, consul and grafana. In the example below we are setting a limit of 2Gb. $ sudo docker run -e METRICS_MEMORY=2097152 .. Tuning PMM server (1)
  • 20. 21© The Pythian Group Inc., 2018© The Pythian Group Inc., 2018 21 By default, prometheus stores time-series data for 30 days, and QAN stores query data for 8 days. To change this defaults use the following variables (in hours): $ sudo docker run -e METRICS_RETENTION=4400h -e QUERIES_RETENTION=4400h .. Of course, total space usage depends on the amount of monitored hosts, the retention period and even the metrics resolution. The default sample rate is 1 second. You could consider increasing METRICS_RESOLUTION (in seconds) to reduce the storage footprint: $ sudo docker run -e METRICS_RESOLUTION=5s Tuning PMM server (2)
  • 21. 22© The Pythian Group Inc., 2018 Why PMM?
  • 22. 23© The Pythian Group Inc., 2018 23 How Metrics Monitor is helpful
  • 23. 24© The Pythian Group Inc., 2018© The Pythian Group Inc., 2018 24 Historical Monitoring
  • 24. 25© The Pythian Group Inc., 2018© The Pythian Group Inc., 2018 25 There are a number of commercial tools available that can offer similar kind of monitoring solution. Usually Software-as-a-Service (SaaS) solutions. ● Expensive (mostly pay per server solutions) ● Data shipped off-site ● Dependent on your internet uplink from your backend servers ● Not so customizable ● ... Open Source
  • 25. 26© The Pythian Group Inc., 2018 26 Security ● Inside our network ● SSL communication ● Docker / Appliance ● HTTPs Authentication ● Custom setup
  • 26. 27© The Pythian Group Inc., 2018© The Pythian Group Inc., 2018 27 ● Multiple options for installation ● PMM Client packages availability ● Open Source ● Custom dashboards ● Possibility to monitor other services too Flexibility
  • 27. 28© The Pythian Group Inc., 2018 28 Easy to set up
  • 28. 29© The Pythian Group Inc., 2018© The Pythian Group Inc., 2018 29 Since Grafana v4.0 there is the option configure alerting in Grafana. Grafana is a core component for PMM PMM has all the metrics let's configure thresholds and push out alerts Alerting
  • 29. 30© The Pythian Group Inc., 2018 Questions?
  • 30. 31© The Pythian Group Inc., 2018 Trivia time
  • 31. 32© The Pythian Group Inc., 2018 32
  • 32. 33© The Pythian Group Inc., 2018 33
  • 33. 34© The Pythian Group Inc., 2018 34
  • 34. 35© The Pythian Group Inc., 2018 35
  • 35. 36© The Pythian Group Inc., 2018 Thank you!
  • 36. Contact Matthias Crauwels crauwels@pythian.com +1 (613) 565-8696 ext. 1215 We are hiring! http://pythian.com/careers