Top Banner
© 2018 Percona. 1 Dimitri Vanoverbeke What We Learned Integrating Grafana and With Prometheus While Building Percona Monitoring and Management March 2 nd , 2018 Grafanacon EU 2018
32

What We Learned Integrating Grafana and With Prometheus · 2020-05-29 · © 2018 Percona. 1 Dimitri Vanoverbeke What We Learned Integrating Grafana and With Prometheus While Building

Jul 18, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: What We Learned Integrating Grafana and With Prometheus · 2020-05-29 · © 2018 Percona. 1 Dimitri Vanoverbeke What We Learned Integrating Grafana and With Prometheus While Building

©2018Percona.

1

DimitriVanoverbeke

What We Learned Integrating Grafana and With PrometheusWhileBuildingPerconaMonitoringandManagement

March2nd,2018GrafanaconEU2018

Page 2: What We Learned Integrating Grafana and With Prometheus · 2020-05-29 · © 2018 Percona. 1 Dimitri Vanoverbeke What We Learned Integrating Grafana and With Prometheus While Building

©2018Percona.

2

Apologiesupfront

Page 3: What We Learned Integrating Grafana and With Prometheus · 2020-05-29 · © 2018 Percona. 1 Dimitri Vanoverbeke What We Learned Integrating Grafana and With Prometheus While Building

©2018Percona.

3

Percona’sPurpose

ToChampionUnbiasedOpenSourceDatabase

SoluDons

Page 4: What We Learned Integrating Grafana and With Prometheus · 2020-05-29 · © 2018 Percona. 1 Dimitri Vanoverbeke What We Learned Integrating Grafana and With Prometheus While Building

©2018Percona.

4

Percona

Wearenotweatherexperts

Page 5: What We Learned Integrating Grafana and With Prometheus · 2020-05-29 · © 2018 Percona. 1 Dimitri Vanoverbeke What We Learned Integrating Grafana and With Prometheus While Building

©2018Percona.

5

Meaning•  WeProvideSoluDons(Support,ConsulDng,Training,Remote

DBA)forOpenSourceDatabases•  AllSoLwareWeReleaseis100%FreeandOpenSource•  HelpingCustomerstoAvoidSoLwareVendorLock-In•  ProvidingOpenSourceAlternaDvestothe“Enterprise”

SoLwareediDons

Page 6: What We Learned Integrating Grafana and With Prometheus · 2020-05-29 · © 2018 Percona. 1 Dimitri Vanoverbeke What We Learned Integrating Grafana and With Prometheus While Building

©2018Percona.

6

•  Commercial•  CloudOnly•  DoItYourself

•  MySQLEnterpriseMonitor•  MongoDBOpsManager

StateofOpenSourceDatabaseMonitoring

Page 7: What We Learned Integrating Grafana and With Prometheus · 2020-05-29 · © 2018 Percona. 1 Dimitri Vanoverbeke What We Learned Integrating Grafana and With Prometheus While Building

©2018Percona.

7

•  100%FreeandOpenSource•  WorksInandoutofthe

Cloud•  Deployin15minutes•  PurposeBuiltforOpen

SourceDatabaseMonitoring•  ForDevelopersandDBAs

PerconaMonitoringandManagement

Page 8: What We Learned Integrating Grafana and With Prometheus · 2020-05-29 · © 2018 Percona. 1 Dimitri Vanoverbeke What We Learned Integrating Grafana and With Prometheus While Building

©2018Percona.

8

TheMainQuesDonHowtobuildGreatSoLwarewithSmallTeam?

Page 9: What We Learned Integrating Grafana and With Prometheus · 2020-05-29 · © 2018 Percona. 1 Dimitri Vanoverbeke What We Learned Integrating Grafana and With Prometheus While Building

©2018Percona.

9

Youcandoit!•  WorkingtogetherwithOpenSourceCommunity

Page 10: What We Learned Integrating Grafana and With Prometheus · 2020-05-29 · © 2018 Percona. 1 Dimitri Vanoverbeke What We Learned Integrating Grafana and With Prometheus While Building

©2018Percona.

10

Wechose

Page 11: What We Learned Integrating Grafana and With Prometheus · 2020-05-29 · © 2018 Percona. 1 Dimitri Vanoverbeke What We Learned Integrating Grafana and With Prometheus While Building

©2018Percona.

11

Reasons•  LargeCommunity•  DesignedasanExtensiblePlacorm•  VeryResponsiveDevelopmentTeam•  PermissiveLicense•  MembersofCloudNaDveCompuDngFoundaDon•  ModernTechnologySupport

Page 12: What We Learned Integrating Grafana and With Prometheus · 2020-05-29 · © 2018 Percona. 1 Dimitri Vanoverbeke What We Learned Integrating Grafana and With Prometheus While Building

©2018Percona.

12

OurInnovaDonFocus•  QueriesarenotonlyMetrics•  SimplifyDeployment(easydeployment)•  PowerfulDashboards

Page 13: What We Learned Integrating Grafana and With Prometheus · 2020-05-29 · © 2018 Percona. 1 Dimitri Vanoverbeke What We Learned Integrating Grafana and With Prometheus While Building

©2018Percona.

13

WhatQueriesareCausingtheLoad

Page 14: What We Learned Integrating Grafana and With Prometheus · 2020-05-29 · © 2018 Percona. 1 Dimitri Vanoverbeke What We Learned Integrating Grafana and With Prometheus While Building

©2018Percona.

14

WhyAretheyCausingthisLoad

Page 15: What We Learned Integrating Grafana and With Prometheus · 2020-05-29 · © 2018 Percona. 1 Dimitri Vanoverbeke What We Learned Integrating Grafana and With Prometheus While Building

©2018Percona.

15

HowtoImprovetheirPerformance

Page 16: What We Learned Integrating Grafana and With Prometheus · 2020-05-29 · © 2018 Percona. 1 Dimitri Vanoverbeke What We Learned Integrating Grafana and With Prometheus While Building

©2018Percona.

16

IntegraDngwithGrafana•  UsingGreatlyDesignedGrafanaDateRangeSelector•  GrafanaHostSelector•  GrafanaCross-DashboardLinks•  IntegraDonDonethroughIFRAME

Page 17: What We Learned Integrating Grafana and With Prometheus · 2020-05-29 · © 2018 Percona. 1 Dimitri Vanoverbeke What We Learned Integrating Grafana and With Prometheus While Building

©2018Percona.

17

SimplifyDeployment•  DeployingMulDplePrometheusExportersisHard•  CustomAgentisusedforQueryFuncDons•  Packageeverythingtosingle“agent”package•  pmm-adminaddmysql

Page 18: What We Learned Integrating Grafana and With Prometheus · 2020-05-29 · © 2018 Percona. 1 Dimitri Vanoverbeke What We Learned Integrating Grafana and With Prometheus While Building

©2018Percona.

18

IntegraDonwithCloud(AWS)•  AutomaDcallySearchandDiscoverSupportedInstances•  AnotherCustomGrafanaPanel

Page 19: What We Learned Integrating Grafana and With Prometheus · 2020-05-29 · © 2018 Percona. 1 Dimitri Vanoverbeke What We Learned Integrating Grafana and With Prometheus While Building

©2018Percona.

19

PowerfulDashboards

Page 20: What We Learned Integrating Grafana and With Prometheus · 2020-05-29 · © 2018 Percona. 1 Dimitri Vanoverbeke What We Learned Integrating Grafana and With Prometheus While Building

©2018Percona.

20

DashboardLearningExperience•  GreatDashboardAPI•  FantasDcsupportforDashboardVersioning•  CanuseIDfordashboardidenDficaDon,notname•  FantasDcTemplaDngEngine•  UsingBothRepeaDngrowsandRepeatedColumns

Page 21: What We Learned Integrating Grafana and With Prometheus · 2020-05-29 · © 2018 Percona. 1 Dimitri Vanoverbeke What We Learned Integrating Grafana and With Prometheus While Building

©2018Percona.

21

UsingRepeatedRows

Page 22: What We Learned Integrating Grafana and With Prometheus · 2020-05-29 · © 2018 Percona. 1 Dimitri Vanoverbeke What We Learned Integrating Grafana and With Prometheus While Building

©2018Percona.

22

UsingRepeatedPanels

Page 23: What We Learned Integrating Grafana and With Prometheus · 2020-05-29 · © 2018 Percona. 1 Dimitri Vanoverbeke What We Learned Integrating Grafana and With Prometheus While Building

©2018Percona.

23

UseTagstobuildoutNavigaDonMenu

Page 24: What We Learned Integrating Grafana and With Prometheus · 2020-05-29 · © 2018 Percona. 1 Dimitri Vanoverbeke What We Learned Integrating Grafana and With Prometheus While Building

©2018Percona.

24

Challenges

Page 25: What We Learned Integrating Grafana and With Prometheus · 2020-05-29 · © 2018 Percona. 1 Dimitri Vanoverbeke What We Learned Integrating Grafana and With Prometheus While Building

©2018Percona.

25

AlerDng•  HowtouseAlerDnginmulD-serverenvironments•  WanttoalertonServiceratherthanindividualserver•  Want“visual”alertsintegratedwithGrafana•  UseGrafanaAlertsorbuildappforPrometheusAlerts?

Page 26: What We Learned Integrating Grafana and With Prometheus · 2020-05-29 · © 2018 Percona. 1 Dimitri Vanoverbeke What We Learned Integrating Grafana and With Prometheus While Building

©2018Percona.

26

AnnotaDons•  WantannotaDonstobeenteredbyuser•  Butwantthemtoappearonthe“similar”panelseverywhere•  Howtodefinesuch“similar”panels?

Page 27: What We Learned Integrating Grafana and With Prometheus · 2020-05-29 · © 2018 Percona. 1 Dimitri Vanoverbeke What We Learned Integrating Grafana and With Prometheus While Building

©2018Percona.

27

SingleStat•  NeedfixedYmaxvalueforSinglestatdashboardtobeher

visualizepercents•  Lookingtocontributepatch

Page 28: What We Learned Integrating Grafana and With Prometheus · 2020-05-29 · © 2018 Percona. 1 Dimitri Vanoverbeke What We Learned Integrating Grafana and With Prometheus While Building

©2018Percona.

28

DynamicResoluDon•  WehavedifferentdatascrapedwithdifferentresoluDon•  Somedatais1secondresoluDon(statusvariables)•  Otheris60secresoluDon(variables,tableinformaDon)•  UsercanchoosetheirownresoluDonbasedonoverhead•  Howtoalignitonthesamegraphs?•  Makedatatotallyzoomable

Page 29: What We Learned Integrating Grafana and With Prometheus · 2020-05-29 · © 2018 Percona. 1 Dimitri Vanoverbeke What We Learned Integrating Grafana and With Prometheus While Building

©2018Percona.

29

DynamicResoluDon•  GrafanaSupports“minimumresoluDon”

•  HardtomanagefordynamicuserconfiguraDon•  PrometheusFuncDonsareverystrict

•  “donotinventanydata•  rate()[1s]WillreturnNULLnotfinding2datapoints

•  Useuglyhacksofar•  Rate()[$interval]orirate()[5m]•  GivesbestavailableresoluDon

Page 30: What We Learned Integrating Grafana and With Prometheus · 2020-05-29 · © 2018 Percona. 1 Dimitri Vanoverbeke What We Learned Integrating Grafana and With Prometheus While Building

©2018Percona.

30

BeherselecDonforAutoInterval•  AutoResoluDoniscomputed•  Intervalselectedmaybe“onedatapointfor2.2minutes”•  Wouldbegreattosetittofixedsetofintervals•  1s;5s;1min;5min;1h…

Page 31: What We Learned Integrating Grafana and With Prometheus · 2020-05-29 · © 2018 Percona. 1 Dimitri Vanoverbeke What We Learned Integrating Grafana and With Prometheus While Building

©2018Percona.

31

SAVE THE DATE!

Learn More about Using PMM in Practice!

www.perconalive.com

April 23-25, 2018 Santa Clara Convention Center

Page 32: What We Learned Integrating Grafana and With Prometheus · 2020-05-29 · © 2018 Percona. 1 Dimitri Vanoverbeke What We Learned Integrating Grafana and With Prometheus While Building

©2018Percona.

32

ThankYou!