PMM for MongoDB troubleshooting and Performance Analyses

用于MongoDB故障排除和性能分析的PMM

展开查看详情

1. PMM for MongoDB Troubleshooting and Performance Analyses Roma Novikov Percona University Kyiv, 2017 1 © 2017 Percona

2.About me Roma Novikov ▪ Positions • Percona - Director of Platform Engineering (since 2017) • TemplateMonster.com (since 2002) - Web developer, Lead/Architect, Manager,CTO ▪ Interests • web, highload, monitoring and observability. 2 © 2017 Percona

3.Why does this talk exist? 3 © 2017 Percona

4.Why does this talk exist? ▪ You made your first service/app. Now you need to understand a basic info about What is essential for MongoDB monitoring and how to do this with PMM 4 © 2017 Percona

5.Agenda ▪ MongoDB basics - What is MongoDB ▪ How to start monitoring MongoDB with PMM ▪ Where to look at PMM? ▪ Bonus ▪ Lunch info 5 © 2017 Percona

6.MongoDB basics What is MongoDB 6 © 2017 Percona

7.MongoDB basics 7 © 2017 Percona

8.MongoDB basics ● MongoDB is a free and open-source cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with schemas. 8 © 2017 Percona

9.MongoDB basics ● MongoDB is a free and open-source cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with schemas. ● Rank ○ #5 Overall ○ #1 Document stores https://db-engines.com/en/system/MongoDB 9 © 2017 Percona

10.How to start monitoring MongoDB with PMM 10 © 2017 Percona

11.How to start monitoring MongoDB with PMM Preparations: ● You have MongoDB 11 © 2017 Percona

12.How to start monitoring MongoDB with PMM Preparations: ● You have MongoDB ● db.setProfilingLevel(2) https://www.percona.com/doc/percona-monitoring-and-management/conf-mongodb.html 12 © 2017 Percona

13.How to start monitoring MongoDB with PMM PMM Server: 13 © 2017 Percona

14.How to start monitoring MongoDB with PMM PMM Server: ● Install pmm server https://www.percona.com/doc/percona-monitoring-and-management/deploy/server/docker.html#run-serv er-docker 14 © 2017 Percona

15.How to start monitoring MongoDB with PMM PMM Server: ● Install pmm server https://www.percona.com/doc/percona-monitoring-and-management/deploy/server/docker.html#run-serv er-docker ● $ docker pull percona/pmm-server:latest ● $ docker create -v /opt/prometheus/data -v /opt/consul-data -v /var/lib/mysql -v /var/lib/grafana --name pmm-data percona/pmm-server:latest /bin/true ● $ docker run -d -p 80:80 --volumes-from pmm-data --name pmm-server --restart always percona/pmm-server:latest 15 © 2017 Percona

16.How to start monitoring MongoDB with PMM PMM Server: 16 © 2017 Percona

17.How to start monitoring MongoDB with PMM Install PMM Client: 17 © 2017 Percona

18.How to start monitoring MongoDB with PMM Install PMM Client: ● Configure Percona repositories https://www.percona.com/doc/percona-repo-config/index.html 18 © 2017 Percona

19.How to start monitoring MongoDB with PMM Install PMM Client: ● Configure Percona repositories https://www.percona.com/doc/percona-repo-config/index.html ● Install the pmm-client package: sudo apt-get install pmm-client 19 © 2017 Percona

20.How to start monitoring MongoDB with PMM Connect PMM Client and PMM Server: 20 © 2017 Percona

21.How to start monitoring MongoDB with PMM Connect PMM Client and PMM Server: 21 © 2017 Percona

22.How to start monitoring MongoDB with PMM Connect PMM Client and PMM Server: 22 © 2017 Percona

23.How to start monitoring MongoDB with PMM What we’ll see: 23 © 2017 Percona

24.How to start monitoring MongoDB with PMM What we’ll see: 24 © 2017 Percona

25.How to start monitoring MongoDB with PMM PMM Demo! 25 © 2017 Percona

26.Where to look at PMM? 26 © 2017 Percona

27.Where to look at PMM? 27 © 2017 Percona

28.Where to look at PMM? 28 © 2017 Percona

29.Where to look at PMM? 29 © 2017 Percona