grafana-dashboard.json 221 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455
  1. {
  2. "__inputs": [
  3. {
  4. "name": "DS_PROMETHEUS",
  5. "label": "Prometheus",
  6. "description": "",
  7. "type": "datasource",
  8. "pluginId": "prometheus",
  9. "pluginName": "Prometheus"
  10. }
  11. ],
  12. "__requires": [
  13. {
  14. "type": "panel",
  15. "id": "gauge",
  16. "name": "Gauge",
  17. "version": ""
  18. },
  19. {
  20. "type": "grafana",
  21. "id": "grafana",
  22. "name": "Grafana",
  23. "version": "8.1.2"
  24. },
  25. {
  26. "type": "panel",
  27. "id": "graph",
  28. "name": "Graph (old)",
  29. "version": ""
  30. },
  31. {
  32. "type": "datasource",
  33. "id": "prometheus",
  34. "name": "Prometheus",
  35. "version": "1.0.0"
  36. },
  37. {
  38. "type": "panel",
  39. "id": "stat",
  40. "name": "Stat",
  41. "version": ""
  42. },
  43. {
  44. "type": "panel",
  45. "id": "table-old",
  46. "name": "Table (old)",
  47. "version": ""
  48. }
  49. ],
  50. "annotations": {
  51. "list": [
  52. {
  53. "builtIn": 1,
  54. "datasource": "-- Grafana --",
  55. "enable": true,
  56. "hide": true,
  57. "iconColor": "rgba(0, 211, 255, 1)",
  58. "name": "Annotations & Alerts",
  59. "target": {
  60. "limit": 100,
  61. "matchAny": false,
  62. "tags": [],
  63. "type": "dashboard"
  64. },
  65. "type": "dashboard"
  66. }
  67. ]
  68. },
  69. "description": "This dashboard works with StackGres",
  70. "editable": true,
  71. "gnetId": null,
  72. "graphTooltip": 0,
  73. "id": null,
  74. "links": [],
  75. "panels": [
  76. {
  77. "collapsed": true,
  78. "datasource": "${DS_PROMETHEUS}",
  79. "fieldConfig": {
  80. "defaults": {},
  81. "overrides": []
  82. },
  83. "gridPos": {
  84. "h": 1,
  85. "w": 24,
  86. "x": 0,
  87. "y": 0
  88. },
  89. "id": 30,
  90. "panels": [
  91. {
  92. "aliasColors": {},
  93. "bars": false,
  94. "dashLength": 10,
  95. "dashes": false,
  96. "datasource": "${DS_PROMETHEUS}",
  97. "decimals": 0,
  98. "fieldConfig": {
  99. "defaults": {
  100. "links": []
  101. },
  102. "overrides": []
  103. },
  104. "fill": 1,
  105. "fillGradient": 0,
  106. "gridPos": {
  107. "h": 7,
  108. "w": 8,
  109. "x": 0,
  110. "y": 1
  111. },
  112. "hiddenSeries": false,
  113. "id": 1,
  114. "legend": {
  115. "alignAsTable": true,
  116. "avg": true,
  117. "current": true,
  118. "max": true,
  119. "min": false,
  120. "rightSide": false,
  121. "show": true,
  122. "sort": "current",
  123. "sortDesc": true,
  124. "total": false,
  125. "values": true
  126. },
  127. "lines": true,
  128. "linewidth": 1,
  129. "links": [],
  130. "nullPointMode": "connected",
  131. "options": {
  132. "alertThreshold": true
  133. },
  134. "percentage": false,
  135. "pluginVersion": "8.1.2",
  136. "pointradius": 2,
  137. "points": false,
  138. "renderer": "flot",
  139. "seriesOverrides": [],
  140. "spaceLength": 10,
  141. "stack": false,
  142. "steppedLine": false,
  143. "targets": [
  144. {
  145. "expr": "pg_stat_activity_count{datname=~\"$datname\", instance=~\"${instance}:9187\", state=\"active\"} !=0",
  146. "format": "time_series",
  147. "interval": "",
  148. "intervalFactor": 2,
  149. "legendFormat": "Database: {{datname}}, State: {{state}}",
  150. "refId": "A",
  151. "step": 2
  152. }
  153. ],
  154. "thresholds": [],
  155. "timeFrom": null,
  156. "timeRegions": [],
  157. "timeShift": null,
  158. "title": "Active sessions",
  159. "tooltip": {
  160. "shared": true,
  161. "sort": 0,
  162. "value_type": "individual"
  163. },
  164. "type": "graph",
  165. "xaxis": {
  166. "buckets": null,
  167. "mode": "time",
  168. "name": null,
  169. "show": true,
  170. "values": []
  171. },
  172. "yaxes": [
  173. {
  174. "decimals": 0,
  175. "format": "short",
  176. "label": null,
  177. "logBase": 1,
  178. "max": null,
  179. "min": null,
  180. "show": true
  181. },
  182. {
  183. "format": "short",
  184. "label": null,
  185. "logBase": 1,
  186. "max": null,
  187. "min": null,
  188. "show": true
  189. }
  190. ],
  191. "yaxis": {
  192. "align": false,
  193. "alignLevel": null
  194. }
  195. },
  196. {
  197. "aliasColors": {},
  198. "bars": false,
  199. "dashLength": 10,
  200. "dashes": false,
  201. "datasource": "${DS_PROMETHEUS}",
  202. "decimals": 0,
  203. "fieldConfig": {
  204. "defaults": {
  205. "links": []
  206. },
  207. "overrides": []
  208. },
  209. "fill": 1,
  210. "fillGradient": 0,
  211. "gridPos": {
  212. "h": 7,
  213. "w": 8,
  214. "x": 8,
  215. "y": 1
  216. },
  217. "hiddenSeries": false,
  218. "id": 4,
  219. "legend": {
  220. "alignAsTable": true,
  221. "avg": true,
  222. "current": true,
  223. "hideEmpty": true,
  224. "hideZero": true,
  225. "max": true,
  226. "min": false,
  227. "rightSide": false,
  228. "show": true,
  229. "sort": "current",
  230. "sortDesc": true,
  231. "total": false,
  232. "values": true
  233. },
  234. "lines": true,
  235. "linewidth": 1,
  236. "links": [],
  237. "nullPointMode": "null",
  238. "options": {
  239. "alertThreshold": true
  240. },
  241. "percentage": false,
  242. "pluginVersion": "8.1.2",
  243. "pointradius": 5,
  244. "points": false,
  245. "renderer": "flot",
  246. "seriesOverrides": [],
  247. "spaceLength": 10,
  248. "stack": false,
  249. "steppedLine": false,
  250. "targets": [
  251. {
  252. "expr": "pg_stat_activity_count{datname=~\"$datname\", instance=~\"${instance}:9187\", state=~\"idle|idle in transaction|idle in transaction (aborted)\"}",
  253. "format": "time_series",
  254. "interval": "",
  255. "intervalFactor": 2,
  256. "legendFormat": "Database: {{datname}}, State: {{state}}",
  257. "refId": "A",
  258. "step": 2
  259. }
  260. ],
  261. "thresholds": [],
  262. "timeFrom": null,
  263. "timeRegions": [],
  264. "timeShift": null,
  265. "title": "Idle sessions",
  266. "tooltip": {
  267. "shared": true,
  268. "sort": 0,
  269. "value_type": "individual"
  270. },
  271. "type": "graph",
  272. "xaxis": {
  273. "buckets": null,
  274. "mode": "time",
  275. "name": null,
  276. "show": true,
  277. "values": []
  278. },
  279. "yaxes": [
  280. {
  281. "decimals": 0,
  282. "format": "short",
  283. "label": null,
  284. "logBase": 1,
  285. "max": null,
  286. "min": "0",
  287. "show": true
  288. },
  289. {
  290. "decimals": 0,
  291. "format": "short",
  292. "label": null,
  293. "logBase": 1,
  294. "max": null,
  295. "min": null,
  296. "show": true
  297. }
  298. ],
  299. "yaxis": {
  300. "align": false,
  301. "alignLevel": null
  302. }
  303. },
  304. {
  305. "aliasColors": {},
  306. "bars": false,
  307. "dashLength": 10,
  308. "dashes": false,
  309. "datasource": "${DS_PROMETHEUS}",
  310. "decimals": 0,
  311. "fieldConfig": {
  312. "defaults": {
  313. "links": []
  314. },
  315. "overrides": []
  316. },
  317. "fill": 1,
  318. "fillGradient": 0,
  319. "gridPos": {
  320. "h": 7,
  321. "w": 8,
  322. "x": 16,
  323. "y": 1
  324. },
  325. "hiddenSeries": false,
  326. "id": 8,
  327. "legend": {
  328. "alignAsTable": true,
  329. "avg": true,
  330. "current": true,
  331. "hideEmpty": true,
  332. "hideZero": true,
  333. "max": false,
  334. "min": false,
  335. "rightSide": false,
  336. "show": true,
  337. "sideWidth": null,
  338. "sort": "current",
  339. "sortDesc": true,
  340. "total": true,
  341. "values": true
  342. },
  343. "lines": true,
  344. "linewidth": 1,
  345. "links": [],
  346. "nullPointMode": "null as zero",
  347. "options": {
  348. "alertThreshold": true
  349. },
  350. "percentage": false,
  351. "pluginVersion": "8.1.2",
  352. "pointradius": 5,
  353. "points": false,
  354. "renderer": "flot",
  355. "seriesOverrides": [],
  356. "spaceLength": 10,
  357. "stack": false,
  358. "steppedLine": false,
  359. "targets": [
  360. {
  361. "expr": "rate(pg_stat_database_tup_updated{datname=~\"$datname\", instance=~\"${instance}:9187\"}[5m]) != 0",
  362. "format": "time_series",
  363. "interval": "",
  364. "intervalFactor": 2,
  365. "legendFormat": "Database: {{datname}}",
  366. "refId": "A",
  367. "step": 2
  368. }
  369. ],
  370. "thresholds": [],
  371. "timeFrom": null,
  372. "timeRegions": [],
  373. "timeShift": null,
  374. "title": "Updated data (Rows)",
  375. "tooltip": {
  376. "shared": true,
  377. "sort": 0,
  378. "value_type": "individual"
  379. },
  380. "type": "graph",
  381. "xaxis": {
  382. "buckets": null,
  383. "mode": "time",
  384. "name": null,
  385. "show": true,
  386. "values": []
  387. },
  388. "yaxes": [
  389. {
  390. "decimals": 0,
  391. "format": "short",
  392. "label": null,
  393. "logBase": 1,
  394. "max": null,
  395. "min": null,
  396. "show": true
  397. },
  398. {
  399. "decimals": 0,
  400. "format": "short",
  401. "label": null,
  402. "logBase": 1,
  403. "max": null,
  404. "min": null,
  405. "show": true
  406. }
  407. ],
  408. "yaxis": {
  409. "align": false,
  410. "alignLevel": null
  411. }
  412. },
  413. {
  414. "aliasColors": {},
  415. "bars": false,
  416. "dashLength": 10,
  417. "dashes": false,
  418. "datasource": "${DS_PROMETHEUS}",
  419. "decimals": 0,
  420. "fieldConfig": {
  421. "defaults": {
  422. "links": []
  423. },
  424. "overrides": []
  425. },
  426. "fill": 1,
  427. "fillGradient": 0,
  428. "gridPos": {
  429. "h": 7,
  430. "w": 8,
  431. "x": 0,
  432. "y": 8
  433. },
  434. "hiddenSeries": false,
  435. "id": 5,
  436. "legend": {
  437. "alignAsTable": true,
  438. "avg": true,
  439. "current": true,
  440. "max": false,
  441. "min": false,
  442. "rightSide": false,
  443. "show": true,
  444. "sort": "current",
  445. "sortDesc": true,
  446. "total": true,
  447. "values": true
  448. },
  449. "lines": true,
  450. "linewidth": 1,
  451. "links": [],
  452. "nullPointMode": "null",
  453. "options": {
  454. "alertThreshold": true
  455. },
  456. "percentage": false,
  457. "pluginVersion": "8.1.2",
  458. "pointradius": 5,
  459. "points": false,
  460. "renderer": "flot",
  461. "seriesOverrides": [],
  462. "spaceLength": 10,
  463. "stack": false,
  464. "steppedLine": false,
  465. "targets": [
  466. {
  467. "expr": "rate(pg_stat_database_tup_fetched{datname=~\"$datname\", instance=~\"${instance}:9187\"}[5m]) != 0",
  468. "format": "time_series",
  469. "interval": "",
  470. "intervalFactor": 2,
  471. "legendFormat": "Database: {{datname}}",
  472. "refId": "A",
  473. "step": 2
  474. }
  475. ],
  476. "thresholds": [],
  477. "timeFrom": null,
  478. "timeRegions": [],
  479. "timeShift": null,
  480. "title": "Fetched data (Rows)",
  481. "tooltip": {
  482. "shared": true,
  483. "sort": 0,
  484. "value_type": "individual"
  485. },
  486. "type": "graph",
  487. "xaxis": {
  488. "buckets": null,
  489. "mode": "time",
  490. "name": null,
  491. "show": true,
  492. "values": []
  493. },
  494. "yaxes": [
  495. {
  496. "decimals": 0,
  497. "format": "short",
  498. "label": null,
  499. "logBase": 1,
  500. "max": null,
  501. "min": null,
  502. "show": true
  503. },
  504. {
  505. "decimals": 0,
  506. "format": "short",
  507. "label": null,
  508. "logBase": 1,
  509. "max": null,
  510. "min": null,
  511. "show": true
  512. }
  513. ],
  514. "yaxis": {
  515. "align": false,
  516. "alignLevel": null
  517. }
  518. },
  519. {
  520. "aliasColors": {},
  521. "bars": false,
  522. "dashLength": 10,
  523. "dashes": false,
  524. "datasource": "${DS_PROMETHEUS}",
  525. "decimals": 0,
  526. "fieldConfig": {
  527. "defaults": {
  528. "links": []
  529. },
  530. "overrides": []
  531. },
  532. "fill": 1,
  533. "fillGradient": 0,
  534. "gridPos": {
  535. "h": 7,
  536. "w": 8,
  537. "x": 8,
  538. "y": 8
  539. },
  540. "hiddenSeries": false,
  541. "id": 60,
  542. "legend": {
  543. "alignAsTable": true,
  544. "avg": true,
  545. "current": true,
  546. "hideEmpty": true,
  547. "hideZero": true,
  548. "max": false,
  549. "min": false,
  550. "rightSide": false,
  551. "show": true,
  552. "sort": "current",
  553. "sortDesc": true,
  554. "total": false,
  555. "values": true
  556. },
  557. "lines": true,
  558. "linewidth": 1,
  559. "links": [],
  560. "nullPointMode": "null",
  561. "options": {
  562. "alertThreshold": true
  563. },
  564. "percentage": false,
  565. "pluginVersion": "8.1.2",
  566. "pointradius": 5,
  567. "points": false,
  568. "renderer": "flot",
  569. "seriesOverrides": [],
  570. "spaceLength": 10,
  571. "stack": false,
  572. "steppedLine": false,
  573. "targets": [
  574. {
  575. "expr": "rate(pg_stat_database_xact_commit{instance=~\"${instance}:9187\", datname=~\"$datname\"}[5m])",
  576. "format": "time_series",
  577. "interval": "",
  578. "intervalFactor": 1,
  579. "legendFormat": "Database: {{datname}} - COMMIT",
  580. "refId": "A"
  581. },
  582. {
  583. "expr": "rate(pg_stat_database_xact_rollback{instance=~\"${instance}:9187\", datname=~\"$datname\"}[5m])",
  584. "format": "time_series",
  585. "interval": "",
  586. "intervalFactor": 1,
  587. "legendFormat": "Database: {{datname}} - ROLLBACK",
  588. "refId": "B"
  589. }
  590. ],
  591. "thresholds": [],
  592. "timeFrom": null,
  593. "timeRegions": [],
  594. "timeShift": null,
  595. "title": "Transactions",
  596. "tooltip": {
  597. "shared": true,
  598. "sort": 0,
  599. "value_type": "individual"
  600. },
  601. "type": "graph",
  602. "xaxis": {
  603. "buckets": null,
  604. "mode": "time",
  605. "name": null,
  606. "show": true,
  607. "values": []
  608. },
  609. "yaxes": [
  610. {
  611. "decimals": 0,
  612. "format": "short",
  613. "label": null,
  614. "logBase": 1,
  615. "max": null,
  616. "min": null,
  617. "show": true
  618. },
  619. {
  620. "decimals": 0,
  621. "format": "short",
  622. "label": null,
  623. "logBase": 1,
  624. "max": null,
  625. "min": null,
  626. "show": true
  627. }
  628. ],
  629. "yaxis": {
  630. "align": false,
  631. "alignLevel": null
  632. }
  633. },
  634. {
  635. "aliasColors": {},
  636. "bars": false,
  637. "dashLength": 10,
  638. "dashes": false,
  639. "datasource": "${DS_PROMETHEUS}",
  640. "decimals": 0,
  641. "fieldConfig": {
  642. "defaults": {
  643. "links": []
  644. },
  645. "overrides": []
  646. },
  647. "fill": 1,
  648. "fillGradient": 0,
  649. "gridPos": {
  650. "h": 7,
  651. "w": 8,
  652. "x": 16,
  653. "y": 8
  654. },
  655. "hiddenSeries": false,
  656. "id": 3,
  657. "legend": {
  658. "alignAsTable": true,
  659. "avg": true,
  660. "current": true,
  661. "hideEmpty": false,
  662. "max": false,
  663. "min": false,
  664. "rightSide": false,
  665. "show": true,
  666. "sort": "current",
  667. "sortDesc": true,
  668. "total": false,
  669. "values": true
  670. },
  671. "lines": true,
  672. "linewidth": 1,
  673. "links": [],
  674. "nullPointMode": "null",
  675. "options": {
  676. "alertThreshold": true
  677. },
  678. "percentage": false,
  679. "pluginVersion": "8.1.2",
  680. "pointradius": 5,
  681. "points": false,
  682. "renderer": "flot",
  683. "seriesOverrides": [],
  684. "spaceLength": 10,
  685. "stack": false,
  686. "steppedLine": false,
  687. "targets": [
  688. {
  689. "expr": "pg_locks_count{datname=~\"$datname\", instance=~\"${instance}:9187\"} != 0",
  690. "format": "time_series",
  691. "interval": "",
  692. "intervalFactor": 2,
  693. "legendFormat": "Database: {{datname}}, Type:{{mode}}",
  694. "refId": "A",
  695. "step": 2
  696. }
  697. ],
  698. "thresholds": [],
  699. "timeFrom": null,
  700. "timeRegions": [],
  701. "timeShift": null,
  702. "title": "Lock tables",
  703. "tooltip": {
  704. "shared": true,
  705. "sort": 0,
  706. "value_type": "individual"
  707. },
  708. "type": "graph",
  709. "xaxis": {
  710. "buckets": null,
  711. "mode": "time",
  712. "name": null,
  713. "show": true,
  714. "values": []
  715. },
  716. "yaxes": [
  717. {
  718. "decimals": 0,
  719. "format": "short",
  720. "label": null,
  721. "logBase": 1,
  722. "max": null,
  723. "min": "0",
  724. "show": true
  725. },
  726. {
  727. "format": "short",
  728. "label": null,
  729. "logBase": 1,
  730. "max": null,
  731. "min": null,
  732. "show": true
  733. }
  734. ],
  735. "yaxis": {
  736. "align": false,
  737. "alignLevel": null
  738. }
  739. },
  740. {
  741. "aliasColors": {},
  742. "bars": false,
  743. "dashLength": 10,
  744. "dashes": false,
  745. "datasource": "${DS_PROMETHEUS}",
  746. "decimals": 0,
  747. "fieldConfig": {
  748. "defaults": {
  749. "links": []
  750. },
  751. "overrides": []
  752. },
  753. "fill": 1,
  754. "fillGradient": 0,
  755. "gridPos": {
  756. "h": 7,
  757. "w": 8,
  758. "x": 0,
  759. "y": 15
  760. },
  761. "hiddenSeries": false,
  762. "id": 14,
  763. "legend": {
  764. "alignAsTable": true,
  765. "avg": true,
  766. "current": true,
  767. "hideEmpty": true,
  768. "hideZero": true,
  769. "max": false,
  770. "min": false,
  771. "rightSide": false,
  772. "show": true,
  773. "sort": "total",
  774. "sortDesc": true,
  775. "total": false,
  776. "values": true
  777. },
  778. "lines": true,
  779. "linewidth": 1,
  780. "links": [],
  781. "nullPointMode": "null",
  782. "options": {
  783. "alertThreshold": true
  784. },
  785. "percentage": false,
  786. "pluginVersion": "8.1.2",
  787. "pointradius": 5,
  788. "points": false,
  789. "renderer": "flot",
  790. "seriesOverrides": [],
  791. "spaceLength": 10,
  792. "stack": false,
  793. "steppedLine": false,
  794. "targets": [
  795. {
  796. "expr": "rate(pg_stat_database_tup_returned{datname=~\"$datname\", instance=~\"${instance}:9187\"}[5m]) != 0",
  797. "format": "time_series",
  798. "interval": "",
  799. "intervalFactor": 2,
  800. "legendFormat": "Database: {{datname}}",
  801. "refId": "A",
  802. "step": 2
  803. }
  804. ],
  805. "thresholds": [],
  806. "timeFrom": null,
  807. "timeRegions": [],
  808. "timeShift": null,
  809. "title": "Returned data (Rows)",
  810. "tooltip": {
  811. "shared": true,
  812. "sort": 0,
  813. "value_type": "individual"
  814. },
  815. "type": "graph",
  816. "xaxis": {
  817. "buckets": null,
  818. "mode": "time",
  819. "name": null,
  820. "show": true,
  821. "values": []
  822. },
  823. "yaxes": [
  824. {
  825. "decimals": 0,
  826. "format": "short",
  827. "label": null,
  828. "logBase": 1,
  829. "max": null,
  830. "min": null,
  831. "show": true
  832. },
  833. {
  834. "decimals": 0,
  835. "format": "short",
  836. "label": null,
  837. "logBase": 1,
  838. "max": null,
  839. "min": null,
  840. "show": true
  841. }
  842. ],
  843. "yaxis": {
  844. "align": false,
  845. "alignLevel": null
  846. }
  847. },
  848. {
  849. "aliasColors": {},
  850. "bars": false,
  851. "dashLength": 10,
  852. "dashes": false,
  853. "datasource": "${DS_PROMETHEUS}",
  854. "decimals": 0,
  855. "fieldConfig": {
  856. "defaults": {
  857. "links": []
  858. },
  859. "overrides": []
  860. },
  861. "fill": 1,
  862. "fillGradient": 0,
  863. "gridPos": {
  864. "h": 7,
  865. "w": 8,
  866. "x": 8,
  867. "y": 15
  868. },
  869. "hiddenSeries": false,
  870. "id": 6,
  871. "legend": {
  872. "alignAsTable": true,
  873. "avg": true,
  874. "current": true,
  875. "max": false,
  876. "min": false,
  877. "rightSide": false,
  878. "show": true,
  879. "sideWidth": null,
  880. "sort": "current",
  881. "sortDesc": true,
  882. "total": true,
  883. "values": true
  884. },
  885. "lines": true,
  886. "linewidth": 1,
  887. "links": [],
  888. "nullPointMode": "null",
  889. "options": {
  890. "alertThreshold": true
  891. },
  892. "percentage": false,
  893. "pluginVersion": "8.1.2",
  894. "pointradius": 5,
  895. "points": false,
  896. "renderer": "flot",
  897. "seriesOverrides": [],
  898. "spaceLength": 10,
  899. "stack": false,
  900. "steppedLine": false,
  901. "targets": [
  902. {
  903. "expr": "rate(pg_stat_database_tup_inserted{datname=~\"$datname\", instance=~\"${instance}:9187\"}[5m]) != 0",
  904. "format": "time_series",
  905. "interval": "",
  906. "intervalFactor": 2,
  907. "legendFormat": "Database: {{datname}}",
  908. "refId": "A",
  909. "step": 2
  910. }
  911. ],
  912. "thresholds": [],
  913. "timeFrom": null,
  914. "timeRegions": [],
  915. "timeShift": null,
  916. "title": "Inserted data (Rows)",
  917. "tooltip": {
  918. "shared": true,
  919. "sort": 0,
  920. "value_type": "individual"
  921. },
  922. "type": "graph",
  923. "xaxis": {
  924. "buckets": null,
  925. "mode": "time",
  926. "name": null,
  927. "show": true,
  928. "values": []
  929. },
  930. "yaxes": [
  931. {
  932. "decimals": 0,
  933. "format": "short",
  934. "label": null,
  935. "logBase": 1,
  936. "max": null,
  937. "min": null,
  938. "show": true
  939. },
  940. {
  941. "decimals": 0,
  942. "format": "short",
  943. "label": null,
  944. "logBase": 1,
  945. "max": null,
  946. "min": null,
  947. "show": true
  948. }
  949. ],
  950. "yaxis": {
  951. "align": false,
  952. "alignLevel": null
  953. }
  954. },
  955. {
  956. "aliasColors": {},
  957. "bars": false,
  958. "dashLength": 10,
  959. "dashes": false,
  960. "datasource": "${DS_PROMETHEUS}",
  961. "decimals": 0,
  962. "fieldConfig": {
  963. "defaults": {
  964. "links": []
  965. },
  966. "overrides": []
  967. },
  968. "fill": 1,
  969. "fillGradient": 0,
  970. "gridPos": {
  971. "h": 7,
  972. "w": 8,
  973. "x": 16,
  974. "y": 15
  975. },
  976. "hiddenSeries": false,
  977. "id": 7,
  978. "legend": {
  979. "alignAsTable": true,
  980. "avg": true,
  981. "current": true,
  982. "hideEmpty": true,
  983. "hideZero": true,
  984. "max": false,
  985. "min": false,
  986. "rightSide": false,
  987. "show": true,
  988. "sort": "current",
  989. "sortDesc": true,
  990. "total": false,
  991. "values": true
  992. },
  993. "lines": true,
  994. "linewidth": 1,
  995. "links": [],
  996. "nullPointMode": "null",
  997. "options": {
  998. "alertThreshold": true
  999. },
  1000. "percentage": false,
  1001. "pluginVersion": "8.1.2",
  1002. "pointradius": 5,
  1003. "points": false,
  1004. "renderer": "flot",
  1005. "seriesOverrides": [],
  1006. "spaceLength": 10,
  1007. "stack": false,
  1008. "steppedLine": false,
  1009. "targets": [
  1010. {
  1011. "expr": "rate(pg_stat_database_tup_deleted{datname=~\"$datname\", instance=~\"${instance}:9187\"}[5m]) != 0",
  1012. "format": "time_series",
  1013. "interval": "",
  1014. "intervalFactor": 2,
  1015. "legendFormat": "Database: {{datname}}",
  1016. "refId": "A",
  1017. "step": 2
  1018. }
  1019. ],
  1020. "thresholds": [],
  1021. "timeFrom": null,
  1022. "timeRegions": [],
  1023. "timeShift": null,
  1024. "title": "Deleted data (Rows)",
  1025. "tooltip": {
  1026. "shared": true,
  1027. "sort": 0,
  1028. "value_type": "individual"
  1029. },
  1030. "type": "graph",
  1031. "xaxis": {
  1032. "buckets": null,
  1033. "mode": "time",
  1034. "name": null,
  1035. "show": true,
  1036. "values": []
  1037. },
  1038. "yaxes": [
  1039. {
  1040. "decimals": 0,
  1041. "format": "short",
  1042. "label": null,
  1043. "logBase": 1,
  1044. "max": null,
  1045. "min": null,
  1046. "show": true
  1047. },
  1048. {
  1049. "decimals": 0,
  1050. "format": "short",
  1051. "label": null,
  1052. "logBase": 1,
  1053. "max": null,
  1054. "min": null,
  1055. "show": true
  1056. }
  1057. ],
  1058. "yaxis": {
  1059. "align": false,
  1060. "alignLevel": null
  1061. }
  1062. },
  1063. {
  1064. "aliasColors": {},
  1065. "bars": false,
  1066. "dashLength": 10,
  1067. "dashes": false,
  1068. "datasource": "${DS_PROMETHEUS}",
  1069. "decimals": 2,
  1070. "fieldConfig": {
  1071. "defaults": {
  1072. "links": []
  1073. },
  1074. "overrides": []
  1075. },
  1076. "fill": 1,
  1077. "fillGradient": 0,
  1078. "gridPos": {
  1079. "h": 7,
  1080. "w": 8,
  1081. "x": 0,
  1082. "y": 22
  1083. },
  1084. "hiddenSeries": false,
  1085. "id": 62,
  1086. "legend": {
  1087. "alignAsTable": true,
  1088. "avg": true,
  1089. "current": true,
  1090. "hideEmpty": true,
  1091. "max": false,
  1092. "min": false,
  1093. "rightSide": false,
  1094. "show": true,
  1095. "sort": "current",
  1096. "sortDesc": false,
  1097. "total": false,
  1098. "values": true
  1099. },
  1100. "lines": true,
  1101. "linewidth": 1,
  1102. "links": [],
  1103. "nullPointMode": "null",
  1104. "options": {
  1105. "alertThreshold": true
  1106. },
  1107. "percentage": false,
  1108. "pluginVersion": "8.1.2",
  1109. "pointradius": 5,
  1110. "points": false,
  1111. "renderer": "flot",
  1112. "seriesOverrides": [],
  1113. "spaceLength": 10,
  1114. "stack": false,
  1115. "steppedLine": false,
  1116. "targets": [
  1117. {
  1118. "expr": "pg_stat_database_blks_hit{instance=~\"${instance}:9187\", datname=~\"$datname\"} / (pg_stat_database_blks_read{instance=~\"${instance}:9187\", datname=~\"$datname\"} + pg_stat_database_blks_hit{instance=~\"${instance}:9187\", datname=~\"$datname\"})",
  1119. "format": "time_series",
  1120. "interval": "",
  1121. "intervalFactor": 1,
  1122. "legendFormat": "Database: {{ datname }}",
  1123. "refId": "A"
  1124. }
  1125. ],
  1126. "thresholds": [],
  1127. "timeFrom": null,
  1128. "timeRegions": [],
  1129. "timeShift": null,
  1130. "title": "Cache Hit Rate",
  1131. "tooltip": {
  1132. "shared": true,
  1133. "sort": 0,
  1134. "value_type": "individual"
  1135. },
  1136. "type": "graph",
  1137. "xaxis": {
  1138. "buckets": null,
  1139. "mode": "time",
  1140. "name": null,
  1141. "show": true,
  1142. "values": []
  1143. },
  1144. "yaxes": [
  1145. {
  1146. "decimals": 2,
  1147. "format": "percentunit",
  1148. "label": "",
  1149. "logBase": 1,
  1150. "max": null,
  1151. "min": null,
  1152. "show": true
  1153. },
  1154. {
  1155. "format": "short",
  1156. "label": null,
  1157. "logBase": 1,
  1158. "max": null,
  1159. "min": null,
  1160. "show": true
  1161. }
  1162. ],
  1163. "yaxis": {
  1164. "align": false,
  1165. "alignLevel": null
  1166. }
  1167. },
  1168. {
  1169. "aliasColors": {},
  1170. "bars": false,
  1171. "dashLength": 10,
  1172. "dashes": false,
  1173. "datasource": "${DS_PROMETHEUS}",
  1174. "fieldConfig": {
  1175. "defaults": {
  1176. "links": []
  1177. },
  1178. "overrides": []
  1179. },
  1180. "fill": 1,
  1181. "fillGradient": 0,
  1182. "gridPos": {
  1183. "h": 7,
  1184. "w": 8,
  1185. "x": 8,
  1186. "y": 22
  1187. },
  1188. "hiddenSeries": false,
  1189. "id": 64,
  1190. "legend": {
  1191. "alignAsTable": true,
  1192. "avg": true,
  1193. "current": true,
  1194. "hideEmpty": true,
  1195. "hideZero": true,
  1196. "max": true,
  1197. "min": true,
  1198. "rightSide": false,
  1199. "show": true,
  1200. "total": false,
  1201. "values": true
  1202. },
  1203. "lines": true,
  1204. "linewidth": 1,
  1205. "links": [],
  1206. "nullPointMode": "null",
  1207. "options": {
  1208. "alertThreshold": true
  1209. },
  1210. "percentage": false,
  1211. "pluginVersion": "8.1.2",
  1212. "pointradius": 5,
  1213. "points": false,
  1214. "renderer": "flot",
  1215. "seriesOverrides": [],
  1216. "spaceLength": 10,
  1217. "stack": false,
  1218. "steppedLine": false,
  1219. "targets": [
  1220. {
  1221. "expr": "rate(pg_stat_bgwriter_buffers_backend{instance=~\"${instance}:9187\"}[5m])",
  1222. "format": "time_series",
  1223. "intervalFactor": 1,
  1224. "legendFormat": "buffers_backend",
  1225. "refId": "A"
  1226. },
  1227. {
  1228. "expr": "rate(pg_stat_bgwriter_buffers_alloc{instance=~\"${instance}:9187\"}[5m])",
  1229. "format": "time_series",
  1230. "intervalFactor": 1,
  1231. "legendFormat": "buffers_alloc",
  1232. "refId": "B"
  1233. },
  1234. {
  1235. "expr": "rate(pg_stat_bgwriter_buffers_backend_fsync{instance=~\"${instance}:9187\"}[5m])",
  1236. "format": "time_series",
  1237. "intervalFactor": 1,
  1238. "legendFormat": "backend_fsync",
  1239. "refId": "C"
  1240. },
  1241. {
  1242. "expr": "rate(pg_stat_bgwriter_buffers_checkpoint{instance=~\"${instance}:9187\"}[5m])",
  1243. "format": "time_series",
  1244. "intervalFactor": 1,
  1245. "legendFormat": "buffers_checkpoint",
  1246. "refId": "D"
  1247. },
  1248. {
  1249. "expr": "rate(pg_stat_bgwriter_buffers_clean{instance=~\"${instance}:9187\"}[5m])",
  1250. "format": "time_series",
  1251. "intervalFactor": 1,
  1252. "legendFormat": "buffers_clean",
  1253. "refId": "E"
  1254. }
  1255. ],
  1256. "thresholds": [],
  1257. "timeFrom": null,
  1258. "timeRegions": [],
  1259. "timeShift": null,
  1260. "title": "Buffers (bgwriter)",
  1261. "tooltip": {
  1262. "shared": true,
  1263. "sort": 0,
  1264. "value_type": "individual"
  1265. },
  1266. "type": "graph",
  1267. "xaxis": {
  1268. "buckets": null,
  1269. "mode": "time",
  1270. "name": null,
  1271. "show": true,
  1272. "values": []
  1273. },
  1274. "yaxes": [
  1275. {
  1276. "format": "short",
  1277. "label": null,
  1278. "logBase": 1,
  1279. "max": null,
  1280. "min": null,
  1281. "show": true
  1282. },
  1283. {
  1284. "format": "short",
  1285. "label": null,
  1286. "logBase": 1,
  1287. "max": null,
  1288. "min": null,
  1289. "show": true
  1290. }
  1291. ],
  1292. "yaxis": {
  1293. "align": false,
  1294. "alignLevel": null
  1295. }
  1296. },
  1297. {
  1298. "aliasColors": {},
  1299. "bars": false,
  1300. "dashLength": 10,
  1301. "dashes": false,
  1302. "datasource": "${DS_PROMETHEUS}",
  1303. "decimals": 0,
  1304. "fieldConfig": {
  1305. "defaults": {
  1306. "links": []
  1307. },
  1308. "overrides": []
  1309. },
  1310. "fill": 1,
  1311. "fillGradient": 0,
  1312. "gridPos": {
  1313. "h": 7,
  1314. "w": 8,
  1315. "x": 16,
  1316. "y": 22
  1317. },
  1318. "hiddenSeries": false,
  1319. "id": 66,
  1320. "legend": {
  1321. "alignAsTable": true,
  1322. "avg": true,
  1323. "current": true,
  1324. "max": false,
  1325. "min": false,
  1326. "rightSide": true,
  1327. "show": true,
  1328. "sort": "current",
  1329. "sortDesc": true,
  1330. "total": true,
  1331. "values": true
  1332. },
  1333. "lines": true,
  1334. "linewidth": 1,
  1335. "links": [],
  1336. "nullPointMode": "null",
  1337. "options": {
  1338. "alertThreshold": true
  1339. },
  1340. "percentage": false,
  1341. "pluginVersion": "8.1.2",
  1342. "pointradius": 5,
  1343. "points": false,
  1344. "renderer": "flot",
  1345. "seriesOverrides": [],
  1346. "spaceLength": 10,
  1347. "stack": false,
  1348. "steppedLine": false,
  1349. "targets": [
  1350. {
  1351. "expr": "rate(pg_stat_database_conflicts{instance=~\"${instance}:9187\", datname=~\"$datname\"}[5m])",
  1352. "format": "time_series",
  1353. "intervalFactor": 1,
  1354. "legendFormat": "Database {{datname}} conflicts",
  1355. "refId": "B"
  1356. },
  1357. {
  1358. "expr": "rate(pg_stat_database_deadlocks{instance=~\"${instance}:9187\", datname=~\"$datname\"}[5m])",
  1359. "format": "time_series",
  1360. "intervalFactor": 1,
  1361. "legendFormat": "Database {{datname}} deadlocks",
  1362. "refId": "A"
  1363. }
  1364. ],
  1365. "thresholds": [],
  1366. "timeFrom": null,
  1367. "timeRegions": [],
  1368. "timeShift": null,
  1369. "title": "Conflicts/Deadlocks",
  1370. "tooltip": {
  1371. "shared": true,
  1372. "sort": 0,
  1373. "value_type": "individual"
  1374. },
  1375. "type": "graph",
  1376. "xaxis": {
  1377. "buckets": null,
  1378. "mode": "time",
  1379. "name": null,
  1380. "show": true,
  1381. "values": []
  1382. },
  1383. "yaxes": [
  1384. {
  1385. "format": "short",
  1386. "label": null,
  1387. "logBase": 1,
  1388. "max": null,
  1389. "min": "0",
  1390. "show": true
  1391. },
  1392. {
  1393. "format": "short",
  1394. "label": null,
  1395. "logBase": 1,
  1396. "max": null,
  1397. "min": null,
  1398. "show": true
  1399. }
  1400. ],
  1401. "yaxis": {
  1402. "align": false,
  1403. "alignLevel": null
  1404. }
  1405. },
  1406. {
  1407. "aliasColors": {},
  1408. "bars": false,
  1409. "dashLength": 10,
  1410. "dashes": false,
  1411. "datasource": "${DS_PROMETHEUS}",
  1412. "decimals": 2,
  1413. "description": "Total amount of data written to temporary files by queries in this database. All temporary files are counted, regardless of why the temporary file was created, and regardless of the log_temp_files setting.",
  1414. "fieldConfig": {
  1415. "defaults": {
  1416. "links": []
  1417. },
  1418. "overrides": []
  1419. },
  1420. "fill": 1,
  1421. "fillGradient": 0,
  1422. "gridPos": {
  1423. "h": 7,
  1424. "w": 13,
  1425. "x": 0,
  1426. "y": 29
  1427. },
  1428. "hiddenSeries": false,
  1429. "id": 68,
  1430. "legend": {
  1431. "alignAsTable": true,
  1432. "avg": true,
  1433. "current": true,
  1434. "hideEmpty": true,
  1435. "hideZero": true,
  1436. "max": true,
  1437. "min": false,
  1438. "rightSide": false,
  1439. "show": true,
  1440. "sort": "current",
  1441. "sortDesc": true,
  1442. "total": false,
  1443. "values": true
  1444. },
  1445. "lines": true,
  1446. "linewidth": 1,
  1447. "links": [],
  1448. "nullPointMode": "null",
  1449. "options": {
  1450. "alertThreshold": true
  1451. },
  1452. "percentage": false,
  1453. "pluginVersion": "8.1.2",
  1454. "pointradius": 5,
  1455. "points": false,
  1456. "renderer": "flot",
  1457. "seriesOverrides": [],
  1458. "spaceLength": 10,
  1459. "stack": false,
  1460. "steppedLine": false,
  1461. "targets": [
  1462. {
  1463. "expr": "rate(pg_stat_database_temp_bytes{instance=~\"${instance}:9187\", datname=~\"$datname\"}[5m])",
  1464. "format": "time_series",
  1465. "interval": "",
  1466. "intervalFactor": 1,
  1467. "legendFormat": "Database: {{datname}}",
  1468. "refId": "A"
  1469. }
  1470. ],
  1471. "thresholds": [],
  1472. "timeFrom": null,
  1473. "timeRegions": [],
  1474. "timeShift": null,
  1475. "title": "Temp File (Bytes)",
  1476. "tooltip": {
  1477. "shared": true,
  1478. "sort": 0,
  1479. "value_type": "individual"
  1480. },
  1481. "type": "graph",
  1482. "xaxis": {
  1483. "buckets": null,
  1484. "mode": "time",
  1485. "name": null,
  1486. "show": true,
  1487. "values": []
  1488. },
  1489. "yaxes": [
  1490. {
  1491. "format": "bytes",
  1492. "label": null,
  1493. "logBase": 1,
  1494. "max": null,
  1495. "min": "0",
  1496. "show": true
  1497. },
  1498. {
  1499. "format": "short",
  1500. "label": null,
  1501. "logBase": 1,
  1502. "max": null,
  1503. "min": null,
  1504. "show": true
  1505. }
  1506. ],
  1507. "yaxis": {
  1508. "align": false,
  1509. "alignLevel": null
  1510. }
  1511. },
  1512. {
  1513. "aliasColors": {},
  1514. "bars": false,
  1515. "dashLength": 10,
  1516. "dashes": false,
  1517. "datasource": "${DS_PROMETHEUS}",
  1518. "decimals": 0,
  1519. "fieldConfig": {
  1520. "defaults": {
  1521. "links": []
  1522. },
  1523. "overrides": []
  1524. },
  1525. "fill": 1,
  1526. "fillGradient": 0,
  1527. "gridPos": {
  1528. "h": 7,
  1529. "w": 11,
  1530. "x": 13,
  1531. "y": 29
  1532. },
  1533. "hiddenSeries": false,
  1534. "id": 243,
  1535. "legend": {
  1536. "alignAsTable": true,
  1537. "avg": true,
  1538. "current": true,
  1539. "hideEmpty": false,
  1540. "max": false,
  1541. "min": false,
  1542. "rightSide": false,
  1543. "show": true,
  1544. "sort": "current",
  1545. "sortDesc": true,
  1546. "total": false,
  1547. "values": true
  1548. },
  1549. "lines": true,
  1550. "linewidth": 1,
  1551. "links": [],
  1552. "nullPointMode": "null",
  1553. "options": {
  1554. "alertThreshold": true
  1555. },
  1556. "percentage": false,
  1557. "pluginVersion": "8.1.2",
  1558. "pointradius": 5,
  1559. "points": false,
  1560. "renderer": "flot",
  1561. "seriesOverrides": [],
  1562. "spaceLength": 10,
  1563. "stack": false,
  1564. "steppedLine": false,
  1565. "targets": [
  1566. {
  1567. "exemplar": true,
  1568. "expr": "pg_vaccuum_wraparound_percent{datname=~\"$datname\", instance=~\"${instance}:9187\"} != 0",
  1569. "format": "time_series",
  1570. "interval": "",
  1571. "intervalFactor": 2,
  1572. "legendFormat": "Database: {{datname}}, Table:{{full_table_name}}",
  1573. "refId": "A",
  1574. "step": 2
  1575. }
  1576. ],
  1577. "thresholds": [
  1578. {
  1579. "colorMode": "warning",
  1580. "fill": true,
  1581. "line": true,
  1582. "op": "gt",
  1583. "value": 90,
  1584. "yaxis": "left"
  1585. }
  1586. ],
  1587. "timeFrom": null,
  1588. "timeRegions": [],
  1589. "timeShift": null,
  1590. "title": "Tables near to vacuum wraparound",
  1591. "tooltip": {
  1592. "shared": true,
  1593. "sort": 0,
  1594. "value_type": "individual"
  1595. },
  1596. "type": "graph",
  1597. "xaxis": {
  1598. "buckets": null,
  1599. "mode": "time",
  1600. "name": null,
  1601. "show": true,
  1602. "values": []
  1603. },
  1604. "yaxes": [
  1605. {
  1606. "decimals": 0,
  1607. "format": "short",
  1608. "label": null,
  1609. "logBase": 1,
  1610. "max": null,
  1611. "min": "0",
  1612. "show": true
  1613. },
  1614. {
  1615. "format": "short",
  1616. "label": null,
  1617. "logBase": 1,
  1618. "max": null,
  1619. "min": null,
  1620. "show": true
  1621. }
  1622. ],
  1623. "yaxis": {
  1624. "align": false,
  1625. "alignLevel": null
  1626. }
  1627. },
  1628. {
  1629. "aliasColors": {},
  1630. "bars": false,
  1631. "dashLength": 10,
  1632. "dashes": false,
  1633. "datasource": "${DS_PROMETHEUS}",
  1634. "fieldConfig": {
  1635. "defaults": {
  1636. "links": []
  1637. },
  1638. "overrides": []
  1639. },
  1640. "fill": 1,
  1641. "fillGradient": 0,
  1642. "gridPos": {
  1643. "h": 8,
  1644. "w": 13,
  1645. "x": 0,
  1646. "y": 36
  1647. },
  1648. "hiddenSeries": false,
  1649. "id": 70,
  1650. "legend": {
  1651. "alignAsTable": true,
  1652. "avg": true,
  1653. "current": true,
  1654. "max": true,
  1655. "min": true,
  1656. "show": true,
  1657. "sort": "current",
  1658. "sortDesc": true,
  1659. "total": false,
  1660. "values": true
  1661. },
  1662. "lines": true,
  1663. "linewidth": 1,
  1664. "links": [],
  1665. "nullPointMode": "null",
  1666. "options": {
  1667. "alertThreshold": true
  1668. },
  1669. "percentage": false,
  1670. "pluginVersion": "8.1.2",
  1671. "pointradius": 5,
  1672. "points": false,
  1673. "renderer": "flot",
  1674. "seriesOverrides": [],
  1675. "spaceLength": 10,
  1676. "stack": false,
  1677. "steppedLine": false,
  1678. "targets": [
  1679. {
  1680. "expr": "rate(pg_stat_bgwriter_checkpoint_write_time{instance=~\"${instance}:9187\"}[5m])",
  1681. "format": "time_series",
  1682. "interval": "",
  1683. "intervalFactor": 1,
  1684. "legendFormat": "write_time - Total amount of time that has been spent in the portion of checkpoint processing where files are written to disk.",
  1685. "refId": "B"
  1686. },
  1687. {
  1688. "expr": "rate(pg_stat_bgwriter_checkpoint_sync_time{instance=~\"${instance}:9187\"}[5m])",
  1689. "format": "time_series",
  1690. "intervalFactor": 1,
  1691. "legendFormat": "sync_time - Total amount of time that has been spent in the portion of checkpoint processing where files are synchronized to disk.",
  1692. "refId": "A"
  1693. }
  1694. ],
  1695. "thresholds": [],
  1696. "timeFrom": null,
  1697. "timeRegions": [],
  1698. "timeShift": null,
  1699. "title": "Checkpoint Duration Stats",
  1700. "tooltip": {
  1701. "shared": true,
  1702. "sort": 0,
  1703. "value_type": "individual"
  1704. },
  1705. "type": "graph",
  1706. "xaxis": {
  1707. "buckets": null,
  1708. "mode": "time",
  1709. "name": null,
  1710. "show": true,
  1711. "values": []
  1712. },
  1713. "yaxes": [
  1714. {
  1715. "format": "ms",
  1716. "label": null,
  1717. "logBase": 1,
  1718. "max": null,
  1719. "min": null,
  1720. "show": true
  1721. },
  1722. {
  1723. "format": "short",
  1724. "label": null,
  1725. "logBase": 1,
  1726. "max": null,
  1727. "min": null,
  1728. "show": true
  1729. }
  1730. ],
  1731. "yaxis": {
  1732. "align": false,
  1733. "alignLevel": null
  1734. }
  1735. },
  1736. {
  1737. "aliasColors": {},
  1738. "bars": false,
  1739. "dashLength": 10,
  1740. "dashes": false,
  1741. "datasource": "${DS_PROMETHEUS}",
  1742. "decimals": 0,
  1743. "fill": 1,
  1744. "fillGradient": 0,
  1745. "gridPos": {
  1746. "h": 8,
  1747. "w": 11,
  1748. "x": 13,
  1749. "y": 36
  1750. },
  1751. "hiddenSeries": false,
  1752. "id": 238,
  1753. "legend": {
  1754. "alignAsTable": true,
  1755. "avg": true,
  1756. "current": true,
  1757. "hideEmpty": false,
  1758. "hideZero": false,
  1759. "max": true,
  1760. "min": false,
  1761. "show": true,
  1762. "total": false,
  1763. "values": true
  1764. },
  1765. "lines": true,
  1766. "linewidth": 2,
  1767. "nullPointMode": "null as zero",
  1768. "options": {
  1769. "alertThreshold": true
  1770. },
  1771. "percentage": false,
  1772. "pluginVersion": "8.1.2",
  1773. "pointradius": 2,
  1774. "points": false,
  1775. "renderer": "flot",
  1776. "seriesOverrides": [],
  1777. "spaceLength": 10,
  1778. "stack": false,
  1779. "steppedLine": false,
  1780. "targets": [
  1781. {
  1782. "expr": "label_replace(sum(rate(pg_stat_bgwriter_checkpoints_timed{instance=~\"${instance}:9187\"}[5m])) by (instance), \"distinct\", \"Timed\", \"timed\", \".*\")*300 or label_replace(sum(rate(pg_stat_bgwriter_checkpoints_req{instance=~\"${instance}:9187\"}[5m])) by (instance), \"distinct\", \"Requested\", \"requested\", \".*\")*300",
  1783. "interval": "",
  1784. "legendFormat": "{{distinct}}",
  1785. "refId": "A"
  1786. }
  1787. ],
  1788. "thresholds": [],
  1789. "timeFrom": null,
  1790. "timeRegions": [],
  1791. "timeShift": null,
  1792. "title": "Checkpoint frequency",
  1793. "tooltip": {
  1794. "shared": true,
  1795. "sort": 0,
  1796. "value_type": "individual"
  1797. },
  1798. "type": "graph",
  1799. "xaxis": {
  1800. "buckets": null,
  1801. "mode": "time",
  1802. "name": null,
  1803. "show": true,
  1804. "values": []
  1805. },
  1806. "yaxes": [
  1807. {
  1808. "decimals": 0,
  1809. "format": "short",
  1810. "label": null,
  1811. "logBase": 1,
  1812. "max": null,
  1813. "min": null,
  1814. "show": true
  1815. },
  1816. {
  1817. "decimals": 0,
  1818. "format": "short",
  1819. "label": null,
  1820. "logBase": 1,
  1821. "max": null,
  1822. "min": null,
  1823. "show": true
  1824. }
  1825. ],
  1826. "yaxis": {
  1827. "align": false,
  1828. "alignLevel": null
  1829. }
  1830. }
  1831. ],
  1832. "title": "Database Stats",
  1833. "type": "row"
  1834. },
  1835. {
  1836. "collapsed": true,
  1837. "datasource": "${DS_PROMETHEUS}",
  1838. "fieldConfig": {
  1839. "defaults": {},
  1840. "overrides": []
  1841. },
  1842. "gridPos": {
  1843. "h": 1,
  1844. "w": 24,
  1845. "x": 0,
  1846. "y": 1
  1847. },
  1848. "id": 211,
  1849. "panels": [
  1850. {
  1851. "aliasColors": {
  1852. "Database: mminventory, User: mminventory_pro": "light-blue"
  1853. },
  1854. "bars": false,
  1855. "dashLength": 10,
  1856. "dashes": false,
  1857. "datasource": "${DS_PROMETHEUS}",
  1858. "decimals": 0,
  1859. "fieldConfig": {
  1860. "defaults": {
  1861. "links": []
  1862. },
  1863. "overrides": []
  1864. },
  1865. "fill": 1,
  1866. "fillGradient": 0,
  1867. "gridPos": {
  1868. "h": 8,
  1869. "w": 12,
  1870. "x": 0,
  1871. "y": 2
  1872. },
  1873. "hiddenSeries": false,
  1874. "id": 213,
  1875. "legend": {
  1876. "alignAsTable": true,
  1877. "avg": true,
  1878. "current": true,
  1879. "hideEmpty": true,
  1880. "hideZero": true,
  1881. "max": true,
  1882. "min": false,
  1883. "rightSide": false,
  1884. "show": true,
  1885. "sort": "current",
  1886. "sortDesc": true,
  1887. "total": false,
  1888. "values": true
  1889. },
  1890. "lines": true,
  1891. "linewidth": 2,
  1892. "nullPointMode": "null",
  1893. "options": {
  1894. "alertThreshold": true
  1895. },
  1896. "percentage": false,
  1897. "pluginVersion": "8.1.2",
  1898. "pointradius": 2,
  1899. "points": false,
  1900. "renderer": "flot",
  1901. "seriesOverrides": [],
  1902. "spaceLength": 10,
  1903. "stack": false,
  1904. "steppedLine": false,
  1905. "targets": [
  1906. {
  1907. "expr": "pgbouncer_show_pools_cl_active{instance=~\"${instance}:9187\",database!~\"pgbouncer\"}",
  1908. "interval": "",
  1909. "legendFormat": "Database: {{database}}, User: {{user}}",
  1910. "refId": "A"
  1911. }
  1912. ],
  1913. "thresholds": [
  1914. {
  1915. "colorMode": "warning",
  1916. "fill": true,
  1917. "fillColor": "rgba(51, 162, 229, 0.2)",
  1918. "line": true,
  1919. "lineColor": "rgba(31, 96, 196, 0.6)",
  1920. "op": "gt",
  1921. "value": 185,
  1922. "yaxis": "left"
  1923. },
  1924. {
  1925. "colorMode": "critical",
  1926. "fill": true,
  1927. "line": true,
  1928. "op": "gt",
  1929. "value": 250,
  1930. "yaxis": "left"
  1931. }
  1932. ],
  1933. "timeFrom": null,
  1934. "timeRegions": [],
  1935. "timeShift": null,
  1936. "title": "Active Clients",
  1937. "tooltip": {
  1938. "shared": true,
  1939. "sort": 0,
  1940. "value_type": "individual"
  1941. },
  1942. "type": "graph",
  1943. "xaxis": {
  1944. "buckets": null,
  1945. "mode": "time",
  1946. "name": null,
  1947. "show": true,
  1948. "values": []
  1949. },
  1950. "yaxes": [
  1951. {
  1952. "decimals": 0,
  1953. "format": "short",
  1954. "label": null,
  1955. "logBase": 1,
  1956. "max": null,
  1957. "min": null,
  1958. "show": true
  1959. },
  1960. {
  1961. "decimals": 0,
  1962. "format": "short",
  1963. "label": null,
  1964. "logBase": 1,
  1965. "max": null,
  1966. "min": null,
  1967. "show": true
  1968. }
  1969. ],
  1970. "yaxis": {
  1971. "align": false,
  1972. "alignLevel": null
  1973. }
  1974. },
  1975. {
  1976. "aliasColors": {},
  1977. "bars": false,
  1978. "dashLength": 10,
  1979. "dashes": false,
  1980. "datasource": "${DS_PROMETHEUS}",
  1981. "decimals": 0,
  1982. "fieldConfig": {
  1983. "defaults": {
  1984. "links": []
  1985. },
  1986. "overrides": []
  1987. },
  1988. "fill": 1,
  1989. "fillGradient": 0,
  1990. "gridPos": {
  1991. "h": 8,
  1992. "w": 12,
  1993. "x": 12,
  1994. "y": 2
  1995. },
  1996. "hiddenSeries": false,
  1997. "id": 214,
  1998. "legend": {
  1999. "alignAsTable": true,
  2000. "avg": true,
  2001. "current": true,
  2002. "hideEmpty": true,
  2003. "hideZero": true,
  2004. "max": true,
  2005. "min": false,
  2006. "rightSide": false,
  2007. "show": true,
  2008. "sort": "current",
  2009. "sortDesc": true,
  2010. "total": false,
  2011. "values": true
  2012. },
  2013. "lines": true,
  2014. "linewidth": 1,
  2015. "nullPointMode": "null",
  2016. "options": {
  2017. "alertThreshold": true
  2018. },
  2019. "percentage": false,
  2020. "pluginVersion": "8.1.2",
  2021. "pointradius": 2,
  2022. "points": false,
  2023. "renderer": "flot",
  2024. "seriesOverrides": [],
  2025. "spaceLength": 10,
  2026. "stack": false,
  2027. "steppedLine": false,
  2028. "targets": [
  2029. {
  2030. "expr": "pgbouncer_show_pools_cl_waiting{instance=~\"${instance}:9187\",database!~\"pgbouncer\"}",
  2031. "interval": "",
  2032. "legendFormat": "Database: {{database}}, User: {{user}}",
  2033. "refId": "A"
  2034. }
  2035. ],
  2036. "thresholds": [],
  2037. "timeFrom": null,
  2038. "timeRegions": [],
  2039. "timeShift": null,
  2040. "title": "Waiting Clients",
  2041. "tooltip": {
  2042. "shared": true,
  2043. "sort": 0,
  2044. "value_type": "individual"
  2045. },
  2046. "type": "graph",
  2047. "xaxis": {
  2048. "buckets": null,
  2049. "mode": "time",
  2050. "name": null,
  2051. "show": true,
  2052. "values": []
  2053. },
  2054. "yaxes": [
  2055. {
  2056. "decimals": 0,
  2057. "format": "short",
  2058. "label": null,
  2059. "logBase": 1,
  2060. "max": null,
  2061. "min": null,
  2062. "show": true
  2063. },
  2064. {
  2065. "decimals": 0,
  2066. "format": "short",
  2067. "label": null,
  2068. "logBase": 1,
  2069. "max": null,
  2070. "min": null,
  2071. "show": true
  2072. }
  2073. ],
  2074. "yaxis": {
  2075. "align": false,
  2076. "alignLevel": null
  2077. }
  2078. },
  2079. {
  2080. "aliasColors": {},
  2081. "bars": false,
  2082. "dashLength": 10,
  2083. "dashes": false,
  2084. "datasource": "${DS_PROMETHEUS}",
  2085. "decimals": 0,
  2086. "fieldConfig": {
  2087. "defaults": {
  2088. "links": []
  2089. },
  2090. "overrides": []
  2091. },
  2092. "fill": 1,
  2093. "fillGradient": 0,
  2094. "gridPos": {
  2095. "h": 8,
  2096. "w": 12,
  2097. "x": 0,
  2098. "y": 10
  2099. },
  2100. "hiddenSeries": false,
  2101. "id": 215,
  2102. "legend": {
  2103. "alignAsTable": true,
  2104. "avg": true,
  2105. "current": true,
  2106. "hideEmpty": true,
  2107. "hideZero": true,
  2108. "max": true,
  2109. "min": false,
  2110. "rightSide": false,
  2111. "show": true,
  2112. "sort": "current",
  2113. "sortDesc": false,
  2114. "total": false,
  2115. "values": true
  2116. },
  2117. "lines": true,
  2118. "linewidth": 1,
  2119. "nullPointMode": "null",
  2120. "options": {
  2121. "alertThreshold": true
  2122. },
  2123. "percentage": false,
  2124. "pluginVersion": "8.1.2",
  2125. "pointradius": 2,
  2126. "points": false,
  2127. "renderer": "flot",
  2128. "seriesOverrides": [],
  2129. "spaceLength": 10,
  2130. "stack": false,
  2131. "steppedLine": false,
  2132. "targets": [
  2133. {
  2134. "expr": "pgbouncer_show_pools_sv_active{instance=~\"${instance}:9187\",database!~\"pgbouncer\"}",
  2135. "interval": "",
  2136. "legendFormat": "Database: {{database}}, User: {{user}}",
  2137. "refId": "A"
  2138. }
  2139. ],
  2140. "thresholds": [],
  2141. "timeFrom": null,
  2142. "timeRegions": [],
  2143. "timeShift": null,
  2144. "title": "Server Active",
  2145. "tooltip": {
  2146. "shared": true,
  2147. "sort": 0,
  2148. "value_type": "individual"
  2149. },
  2150. "type": "graph",
  2151. "xaxis": {
  2152. "buckets": null,
  2153. "mode": "time",
  2154. "name": null,
  2155. "show": true,
  2156. "values": []
  2157. },
  2158. "yaxes": [
  2159. {
  2160. "decimals": 0,
  2161. "format": "short",
  2162. "label": null,
  2163. "logBase": 1,
  2164. "max": null,
  2165. "min": null,
  2166. "show": true
  2167. },
  2168. {
  2169. "decimals": 0,
  2170. "format": "short",
  2171. "label": null,
  2172. "logBase": 1,
  2173. "max": null,
  2174. "min": null,
  2175. "show": true
  2176. }
  2177. ],
  2178. "yaxis": {
  2179. "align": false,
  2180. "alignLevel": null
  2181. }
  2182. },
  2183. {
  2184. "aliasColors": {},
  2185. "bars": false,
  2186. "dashLength": 10,
  2187. "dashes": false,
  2188. "datasource": "${DS_PROMETHEUS}",
  2189. "decimals": 0,
  2190. "fieldConfig": {
  2191. "defaults": {
  2192. "links": []
  2193. },
  2194. "overrides": []
  2195. },
  2196. "fill": 1,
  2197. "fillGradient": 0,
  2198. "gridPos": {
  2199. "h": 8,
  2200. "w": 12,
  2201. "x": 12,
  2202. "y": 10
  2203. },
  2204. "hiddenSeries": false,
  2205. "id": 216,
  2206. "legend": {
  2207. "alignAsTable": true,
  2208. "avg": true,
  2209. "current": true,
  2210. "hideEmpty": true,
  2211. "hideZero": true,
  2212. "max": true,
  2213. "min": false,
  2214. "rightSide": false,
  2215. "show": true,
  2216. "sort": "current",
  2217. "sortDesc": true,
  2218. "total": false,
  2219. "values": true
  2220. },
  2221. "lines": true,
  2222. "linewidth": 1,
  2223. "nullPointMode": "null",
  2224. "options": {
  2225. "alertThreshold": true
  2226. },
  2227. "percentage": false,
  2228. "pluginVersion": "8.1.2",
  2229. "pointradius": 2,
  2230. "points": false,
  2231. "renderer": "flot",
  2232. "seriesOverrides": [],
  2233. "spaceLength": 10,
  2234. "stack": false,
  2235. "steppedLine": false,
  2236. "targets": [
  2237. {
  2238. "expr": "pgbouncer_show_pools_sv_idle{instance=~\"${instance}:9187\",database!~\"pgbouncer\"}",
  2239. "interval": "",
  2240. "legendFormat": "Database: {{database}}, User: {{user}}",
  2241. "refId": "A"
  2242. }
  2243. ],
  2244. "thresholds": [],
  2245. "timeFrom": null,
  2246. "timeRegions": [],
  2247. "timeShift": null,
  2248. "title": "Server Idle",
  2249. "tooltip": {
  2250. "shared": true,
  2251. "sort": 0,
  2252. "value_type": "individual"
  2253. },
  2254. "type": "graph",
  2255. "xaxis": {
  2256. "buckets": null,
  2257. "mode": "time",
  2258. "name": null,
  2259. "show": true,
  2260. "values": []
  2261. },
  2262. "yaxes": [
  2263. {
  2264. "decimals": 0,
  2265. "format": "short",
  2266. "label": null,
  2267. "logBase": 1,
  2268. "max": null,
  2269. "min": null,
  2270. "show": true
  2271. },
  2272. {
  2273. "decimals": 0,
  2274. "format": "short",
  2275. "label": null,
  2276. "logBase": 1,
  2277. "max": null,
  2278. "min": null,
  2279. "show": true
  2280. }
  2281. ],
  2282. "yaxis": {
  2283. "align": false,
  2284. "alignLevel": null
  2285. }
  2286. },
  2287. {
  2288. "aliasColors": {},
  2289. "bars": false,
  2290. "dashLength": 10,
  2291. "dashes": false,
  2292. "datasource": "${DS_PROMETHEUS}",
  2293. "fieldConfig": {
  2294. "defaults": {
  2295. "links": []
  2296. },
  2297. "overrides": []
  2298. },
  2299. "fill": 1,
  2300. "fillGradient": 0,
  2301. "gridPos": {
  2302. "h": 8,
  2303. "w": 12,
  2304. "x": 0,
  2305. "y": 18
  2306. },
  2307. "hiddenSeries": false,
  2308. "id": 217,
  2309. "legend": {
  2310. "alignAsTable": true,
  2311. "avg": false,
  2312. "current": true,
  2313. "hideEmpty": false,
  2314. "hideZero": false,
  2315. "max": false,
  2316. "min": false,
  2317. "rightSide": false,
  2318. "show": true,
  2319. "sort": "current",
  2320. "sortDesc": true,
  2321. "total": false,
  2322. "values": true
  2323. },
  2324. "lines": true,
  2325. "linewidth": 1,
  2326. "nullPointMode": "null",
  2327. "options": {
  2328. "alertThreshold": true
  2329. },
  2330. "percentage": false,
  2331. "pluginVersion": "8.1.2",
  2332. "pointradius": 2,
  2333. "points": false,
  2334. "renderer": "flot",
  2335. "seriesOverrides": [],
  2336. "spaceLength": 10,
  2337. "stack": false,
  2338. "steppedLine": false,
  2339. "targets": [
  2340. {
  2341. "expr": "pgbouncer_show_stats_avg_xact_time{instance=~\"${instance}:9187\",database!~\"pgbouncer\"}",
  2342. "interval": "",
  2343. "legendFormat": "Database: {{database}} - XACT",
  2344. "refId": "A"
  2345. },
  2346. {
  2347. "expr": "pgbouncer_show_stats_avg_query_time{instance=~\"${instance}:9187\",database!~\"pgbouncer\"}",
  2348. "interval": "",
  2349. "legendFormat": "Database: {{database}} - QUERY",
  2350. "refId": "B"
  2351. },
  2352. {
  2353. "expr": "pgbouncer_show_stats_avg_wait_time{instance=~\"${instance}:9187\",database!~\"pgbouncer\"}",
  2354. "interval": "",
  2355. "legendFormat": "Database: {{database}} - WAIT",
  2356. "refId": "C"
  2357. }
  2358. ],
  2359. "thresholds": [],
  2360. "timeFrom": null,
  2361. "timeRegions": [],
  2362. "timeShift": null,
  2363. "title": "Average Time",
  2364. "tooltip": {
  2365. "shared": true,
  2366. "sort": 0,
  2367. "value_type": "individual"
  2368. },
  2369. "type": "graph",
  2370. "xaxis": {
  2371. "buckets": null,
  2372. "mode": "time",
  2373. "name": null,
  2374. "show": true,
  2375. "values": []
  2376. },
  2377. "yaxes": [
  2378. {
  2379. "decimals": null,
  2380. "format": "µs",
  2381. "label": null,
  2382. "logBase": 1,
  2383. "max": null,
  2384. "min": null,
  2385. "show": true
  2386. },
  2387. {
  2388. "decimals": null,
  2389. "format": "µs",
  2390. "label": null,
  2391. "logBase": 1,
  2392. "max": null,
  2393. "min": null,
  2394. "show": true
  2395. }
  2396. ],
  2397. "yaxis": {
  2398. "align": false,
  2399. "alignLevel": null
  2400. }
  2401. },
  2402. {
  2403. "aliasColors": {},
  2404. "bars": false,
  2405. "dashLength": 10,
  2406. "dashes": false,
  2407. "datasource": "${DS_PROMETHEUS}",
  2408. "fieldConfig": {
  2409. "defaults": {
  2410. "links": []
  2411. },
  2412. "overrides": []
  2413. },
  2414. "fill": 1,
  2415. "fillGradient": 0,
  2416. "gridPos": {
  2417. "h": 8,
  2418. "w": 12,
  2419. "x": 12,
  2420. "y": 18
  2421. },
  2422. "hiddenSeries": false,
  2423. "id": 218,
  2424. "legend": {
  2425. "alignAsTable": true,
  2426. "avg": true,
  2427. "current": true,
  2428. "hideEmpty": false,
  2429. "hideZero": false,
  2430. "max": false,
  2431. "min": false,
  2432. "rightSide": false,
  2433. "show": true,
  2434. "sort": "current",
  2435. "sortDesc": true,
  2436. "total": false,
  2437. "values": true
  2438. },
  2439. "lines": true,
  2440. "linewidth": 1,
  2441. "nullPointMode": "null",
  2442. "options": {
  2443. "alertThreshold": true
  2444. },
  2445. "percentage": false,
  2446. "pluginVersion": "8.1.2",
  2447. "pointradius": 2,
  2448. "points": false,
  2449. "renderer": "flot",
  2450. "seriesOverrides": [],
  2451. "spaceLength": 10,
  2452. "stack": false,
  2453. "steppedLine": false,
  2454. "targets": [
  2455. {
  2456. "expr": "pgbouncer_show_stats_avg_recv{instance=~\"${instance}:9187\",database!~\"pgbouncer\"}",
  2457. "interval": "",
  2458. "legendFormat": "Database: {{database}} - RECV",
  2459. "refId": "A"
  2460. },
  2461. {
  2462. "expr": "pgbouncer_show_stats_avg_query_time{instance=~\"${instance}:9187\",database!~\"pgbouncer\"}",
  2463. "interval": "",
  2464. "legendFormat": "Database: {{database}} - SENT",
  2465. "refId": "B"
  2466. }
  2467. ],
  2468. "thresholds": [],
  2469. "timeFrom": null,
  2470. "timeRegions": [],
  2471. "timeShift": null,
  2472. "title": "Average traffic",
  2473. "tooltip": {
  2474. "shared": true,
  2475. "sort": 0,
  2476. "value_type": "individual"
  2477. },
  2478. "type": "graph",
  2479. "xaxis": {
  2480. "buckets": null,
  2481. "mode": "time",
  2482. "name": null,
  2483. "show": true,
  2484. "values": []
  2485. },
  2486. "yaxes": [
  2487. {
  2488. "decimals": null,
  2489. "format": "bytes",
  2490. "label": null,
  2491. "logBase": 1,
  2492. "max": null,
  2493. "min": null,
  2494. "show": true
  2495. },
  2496. {
  2497. "decimals": null,
  2498. "format": "bytes",
  2499. "label": null,
  2500. "logBase": 1,
  2501. "max": null,
  2502. "min": null,
  2503. "show": true
  2504. }
  2505. ],
  2506. "yaxis": {
  2507. "align": false,
  2508. "alignLevel": null
  2509. }
  2510. }
  2511. ],
  2512. "title": "Connection Pooling",
  2513. "type": "row"
  2514. },
  2515. {
  2516. "collapsed": true,
  2517. "datasource": "${DS_PROMETHEUS}",
  2518. "fieldConfig": {
  2519. "defaults": {},
  2520. "overrides": []
  2521. },
  2522. "gridPos": {
  2523. "h": 1,
  2524. "w": 24,
  2525. "x": 0,
  2526. "y": 2
  2527. },
  2528. "id": 190,
  2529. "panels": [
  2530. {
  2531. "aliasColors": {},
  2532. "bars": false,
  2533. "dashLength": 10,
  2534. "dashes": false,
  2535. "datasource": "${DS_PROMETHEUS}",
  2536. "decimals": 0,
  2537. "fieldConfig": {
  2538. "defaults": {
  2539. "links": []
  2540. },
  2541. "overrides": []
  2542. },
  2543. "fill": 1,
  2544. "fillGradient": 0,
  2545. "gridPos": {
  2546. "h": 8,
  2547. "w": 12,
  2548. "x": 0,
  2549. "y": 3
  2550. },
  2551. "hiddenSeries": false,
  2552. "id": 192,
  2553. "legend": {
  2554. "alignAsTable": true,
  2555. "avg": true,
  2556. "current": true,
  2557. "hideEmpty": true,
  2558. "hideZero": false,
  2559. "max": false,
  2560. "min": false,
  2561. "rightSide": false,
  2562. "show": true,
  2563. "total": false,
  2564. "values": true
  2565. },
  2566. "lines": true,
  2567. "linewidth": 1,
  2568. "nullPointMode": "null",
  2569. "options": {
  2570. "alertThreshold": true
  2571. },
  2572. "percentage": false,
  2573. "pluginVersion": "8.1.2",
  2574. "pointradius": 2,
  2575. "points": false,
  2576. "renderer": "flot",
  2577. "seriesOverrides": [],
  2578. "spaceLength": 10,
  2579. "stack": false,
  2580. "steppedLine": false,
  2581. "targets": [
  2582. {
  2583. "expr": "rate(envoy_postgres_ingress_postgres_transactions_commit{pod=~\"${instance}:8001\"}[5m])",
  2584. "interval": "",
  2585. "legendFormat": "COMMIT",
  2586. "refId": "A"
  2587. },
  2588. {
  2589. "expr": "rate(envoy_postgres_ingress_postgres_transactions_rollback{instance=~\"${instance}:8001\"}[5m])",
  2590. "interval": "",
  2591. "legendFormat": "ROLLBACK",
  2592. "refId": "B"
  2593. }
  2594. ],
  2595. "thresholds": [],
  2596. "timeFrom": null,
  2597. "timeRegions": [],
  2598. "timeShift": null,
  2599. "title": "Transactions ( 5min rate )",
  2600. "tooltip": {
  2601. "shared": true,
  2602. "sort": 2,
  2603. "value_type": "individual"
  2604. },
  2605. "type": "graph",
  2606. "xaxis": {
  2607. "buckets": null,
  2608. "mode": "time",
  2609. "name": null,
  2610. "show": true,
  2611. "values": []
  2612. },
  2613. "yaxes": [
  2614. {
  2615. "decimals": 0,
  2616. "format": "short",
  2617. "label": "",
  2618. "logBase": 1,
  2619. "max": null,
  2620. "min": null,
  2621. "show": true
  2622. },
  2623. {
  2624. "format": "short",
  2625. "label": null,
  2626. "logBase": 1,
  2627. "max": null,
  2628. "min": null,
  2629. "show": true
  2630. }
  2631. ],
  2632. "yaxis": {
  2633. "align": false,
  2634. "alignLevel": null
  2635. }
  2636. },
  2637. {
  2638. "aliasColors": {},
  2639. "bars": false,
  2640. "dashLength": 10,
  2641. "dashes": false,
  2642. "datasource": "${DS_PROMETHEUS}",
  2643. "decimals": 0,
  2644. "fieldConfig": {
  2645. "defaults": {
  2646. "links": []
  2647. },
  2648. "overrides": []
  2649. },
  2650. "fill": 1,
  2651. "fillGradient": 0,
  2652. "gridPos": {
  2653. "h": 8,
  2654. "w": 12,
  2655. "x": 12,
  2656. "y": 3
  2657. },
  2658. "hiddenSeries": false,
  2659. "id": 184,
  2660. "legend": {
  2661. "alignAsTable": true,
  2662. "avg": true,
  2663. "current": true,
  2664. "hideEmpty": true,
  2665. "max": false,
  2666. "min": false,
  2667. "rightSide": false,
  2668. "show": true,
  2669. "total": false,
  2670. "values": true
  2671. },
  2672. "lines": true,
  2673. "linewidth": 2,
  2674. "nullPointMode": "null",
  2675. "options": {
  2676. "alertThreshold": true
  2677. },
  2678. "percentage": false,
  2679. "pluginVersion": "8.1.2",
  2680. "pointradius": 2,
  2681. "points": false,
  2682. "renderer": "flot",
  2683. "seriesOverrides": [],
  2684. "spaceLength": 10,
  2685. "stack": false,
  2686. "steppedLine": false,
  2687. "targets": [
  2688. {
  2689. "expr": "rate(envoy_postgres_ingress_postgres_statements_update{instance=~\"${instance}:8001\"}[5m])",
  2690. "interval": "",
  2691. "legendFormat": "UPDATE",
  2692. "refId": "A"
  2693. },
  2694. {
  2695. "expr": "rate(envoy_postgres_ingress_postgres_statements_insert{instance=~\"${instance}:8001\"}[5m])",
  2696. "interval": "",
  2697. "legendFormat": "INSERT",
  2698. "refId": "B"
  2699. },
  2700. {
  2701. "expr": "rate(envoy_postgres_ingress_postgres_statements_delete{instance=~\"${instance}:8001\"}[5m])",
  2702. "interval": "",
  2703. "legendFormat": "DELETE",
  2704. "refId": "C"
  2705. },
  2706. {
  2707. "expr": "rate(envoy_postgres_ingress_postgres_statements_select{instance=~\"${instance}:8001\"}[5m])",
  2708. "interval": "",
  2709. "legendFormat": "SELECT",
  2710. "refId": "D"
  2711. },
  2712. {
  2713. "expr": "rate(envoy_postgres_ingress_postgres_statements_other{instance=~\"${instance}:8001\"}[5m])",
  2714. "interval": "",
  2715. "legendFormat": "OTHER",
  2716. "refId": "E"
  2717. }
  2718. ],
  2719. "thresholds": [],
  2720. "timeFrom": null,
  2721. "timeRegions": [],
  2722. "timeShift": null,
  2723. "title": "SQL statements ( 5min rate )",
  2724. "tooltip": {
  2725. "shared": true,
  2726. "sort": 2,
  2727. "value_type": "individual"
  2728. },
  2729. "type": "graph",
  2730. "xaxis": {
  2731. "buckets": null,
  2732. "mode": "time",
  2733. "name": null,
  2734. "show": true,
  2735. "values": []
  2736. },
  2737. "yaxes": [
  2738. {
  2739. "decimals": 0,
  2740. "format": "short",
  2741. "label": null,
  2742. "logBase": 1,
  2743. "max": null,
  2744. "min": null,
  2745. "show": true
  2746. },
  2747. {
  2748. "decimals": 0,
  2749. "format": "short",
  2750. "label": null,
  2751. "logBase": 1,
  2752. "max": null,
  2753. "min": null,
  2754. "show": true
  2755. }
  2756. ],
  2757. "yaxis": {
  2758. "align": false,
  2759. "alignLevel": null
  2760. }
  2761. }
  2762. ],
  2763. "title": "Transactions",
  2764. "type": "row"
  2765. },
  2766. {
  2767. "collapsed": true,
  2768. "datasource": "${DS_PROMETHEUS}",
  2769. "fieldConfig": {
  2770. "defaults": {},
  2771. "overrides": []
  2772. },
  2773. "gridPos": {
  2774. "h": 1,
  2775. "w": 24,
  2776. "x": 0,
  2777. "y": 3
  2778. },
  2779. "id": 160,
  2780. "panels": [
  2781. {
  2782. "aliasColors": {},
  2783. "bars": false,
  2784. "dashLength": 10,
  2785. "dashes": false,
  2786. "datasource": "${DS_PROMETHEUS}",
  2787. "decimals": 0,
  2788. "fieldConfig": {
  2789. "defaults": {
  2790. "custom": {},
  2791. "links": []
  2792. },
  2793. "overrides": []
  2794. },
  2795. "fill": 1,
  2796. "fillGradient": 0,
  2797. "gridPos": {
  2798. "h": 8,
  2799. "w": 24,
  2800. "x": 0,
  2801. "y": 4
  2802. },
  2803. "hiddenSeries": false,
  2804. "id": 164,
  2805. "legend": {
  2806. "alignAsTable": true,
  2807. "avg": true,
  2808. "current": true,
  2809. "hideEmpty": true,
  2810. "max": false,
  2811. "min": false,
  2812. "rightSide": true,
  2813. "show": true,
  2814. "total": false,
  2815. "values": true
  2816. },
  2817. "lines": true,
  2818. "linewidth": 2,
  2819. "nullPointMode": "null",
  2820. "options": {
  2821. "alertThreshold": true
  2822. },
  2823. "percentage": false,
  2824. "pluginVersion": "7.3.5",
  2825. "pointradius": 2,
  2826. "points": false,
  2827. "renderer": "flot",
  2828. "seriesOverrides": [],
  2829. "spaceLength": 10,
  2830. "stack": false,
  2831. "steppedLine": false,
  2832. "targets": [
  2833. {
  2834. "expr": "rate(envoy_postgres_ingress_postgres_messages_backend{instance=~\"${instance}:8001\"}[5m])",
  2835. "interval": "",
  2836. "legendFormat": "BACKEND",
  2837. "refId": "A"
  2838. },
  2839. {
  2840. "expr": "rate(envoy_postgres_ingress_postgres_messages_frontend{instance=~\"${instance}:8001\"}[5m])",
  2841. "interval": "",
  2842. "legendFormat": "FRONTEND",
  2843. "refId": "B"
  2844. },
  2845. {
  2846. "expr": "rate(envoy_postgres_ingress_postgres_messages_unknown{instance=~\"${instance}:8001\"}[5m])",
  2847. "interval": "",
  2848. "legendFormat": "UNKNOWN",
  2849. "refId": "C"
  2850. }
  2851. ],
  2852. "thresholds": [],
  2853. "timeFrom": null,
  2854. "timeRegions": [],
  2855. "timeShift": null,
  2856. "title": "Messages ( 5min rate )",
  2857. "tooltip": {
  2858. "shared": true,
  2859. "sort": 0,
  2860. "value_type": "individual"
  2861. },
  2862. "type": "graph",
  2863. "xaxis": {
  2864. "buckets": null,
  2865. "mode": "time",
  2866. "name": null,
  2867. "show": true,
  2868. "values": []
  2869. },
  2870. "yaxes": [
  2871. {
  2872. "decimals": null,
  2873. "format": "short",
  2874. "label": null,
  2875. "logBase": 1,
  2876. "max": null,
  2877. "min": null,
  2878. "show": true
  2879. },
  2880. {
  2881. "decimals": null,
  2882. "format": "short",
  2883. "label": null,
  2884. "logBase": 1,
  2885. "max": null,
  2886. "min": null,
  2887. "show": true
  2888. }
  2889. ],
  2890. "yaxis": {
  2891. "align": false,
  2892. "alignLevel": null
  2893. }
  2894. },
  2895. {
  2896. "aliasColors": {},
  2897. "bars": false,
  2898. "dashLength": 10,
  2899. "dashes": false,
  2900. "datasource": "${DS_PROMETHEUS}",
  2901. "decimals": 0,
  2902. "fieldConfig": {
  2903. "defaults": {
  2904. "custom": {},
  2905. "links": []
  2906. },
  2907. "overrides": []
  2908. },
  2909. "fill": 1,
  2910. "fillGradient": 0,
  2911. "gridPos": {
  2912. "h": 8,
  2913. "w": 12,
  2914. "x": 0,
  2915. "y": 12
  2916. },
  2917. "hiddenSeries": false,
  2918. "id": 146,
  2919. "legend": {
  2920. "alignAsTable": true,
  2921. "avg": true,
  2922. "current": true,
  2923. "hideEmpty": true,
  2924. "max": false,
  2925. "min": false,
  2926. "rightSide": false,
  2927. "show": true,
  2928. "total": false,
  2929. "values": true
  2930. },
  2931. "lines": true,
  2932. "linewidth": 2,
  2933. "nullPointMode": "null",
  2934. "options": {
  2935. "alertThreshold": true
  2936. },
  2937. "percentage": false,
  2938. "pluginVersion": "7.3.5",
  2939. "pointradius": 2,
  2940. "points": false,
  2941. "renderer": "flot",
  2942. "seriesOverrides": [],
  2943. "spaceLength": 10,
  2944. "stack": false,
  2945. "steppedLine": false,
  2946. "targets": [
  2947. {
  2948. "expr": "rate(envoy_postgres_ingress_postgres_errors_fatal{instance=~\"${instance}:8001\"}[5m])*300",
  2949. "interval": "",
  2950. "legendFormat": "FATAL",
  2951. "refId": "A"
  2952. },
  2953. {
  2954. "expr": "rate(envoy_postgres_ingress_postgres_errors_error{instance=~\"${instance}:8001\"}[5m])*300",
  2955. "interval": "",
  2956. "legendFormat": "ERROR",
  2957. "refId": "B"
  2958. },
  2959. {
  2960. "expr": "rate(envoy_postgres_ingress_postgres_errors_unknown{instance=~\"${instance}:8001\"}[5m])*300",
  2961. "interval": "",
  2962. "legendFormat": "UNKNOWN",
  2963. "refId": "C"
  2964. },
  2965. {
  2966. "expr": "rate(envoy_postgres_ingress_postgres_errors_panic{instance=~\"${instance}:8001\"}[5m])*300",
  2967. "interval": "",
  2968. "legendFormat": "PANIC",
  2969. "refId": "D"
  2970. }
  2971. ],
  2972. "thresholds": [],
  2973. "timeFrom": null,
  2974. "timeRegions": [],
  2975. "timeShift": null,
  2976. "title": "ERROR messages ( 5min rate )",
  2977. "tooltip": {
  2978. "shared": true,
  2979. "sort": 0,
  2980. "value_type": "individual"
  2981. },
  2982. "type": "graph",
  2983. "xaxis": {
  2984. "buckets": null,
  2985. "mode": "time",
  2986. "name": null,
  2987. "show": true,
  2988. "values": []
  2989. },
  2990. "yaxes": [
  2991. {
  2992. "decimals": 0,
  2993. "format": "short",
  2994. "label": null,
  2995. "logBase": 1,
  2996. "max": null,
  2997. "min": null,
  2998. "show": true
  2999. },
  3000. {
  3001. "decimals": 0,
  3002. "format": "short",
  3003. "label": null,
  3004. "logBase": 1,
  3005. "max": null,
  3006. "min": null,
  3007. "show": true
  3008. }
  3009. ],
  3010. "yaxis": {
  3011. "align": false,
  3012. "alignLevel": null
  3013. }
  3014. },
  3015. {
  3016. "aliasColors": {},
  3017. "bars": false,
  3018. "dashLength": 10,
  3019. "dashes": false,
  3020. "datasource": "${DS_PROMETHEUS}",
  3021. "decimals": 0,
  3022. "fieldConfig": {
  3023. "defaults": {
  3024. "custom": {},
  3025. "links": []
  3026. },
  3027. "overrides": []
  3028. },
  3029. "fill": 1,
  3030. "fillGradient": 0,
  3031. "gridPos": {
  3032. "h": 8,
  3033. "w": 12,
  3034. "x": 12,
  3035. "y": 12
  3036. },
  3037. "hiddenSeries": false,
  3038. "id": 170,
  3039. "legend": {
  3040. "alignAsTable": true,
  3041. "avg": true,
  3042. "current": true,
  3043. "hideEmpty": true,
  3044. "max": false,
  3045. "min": false,
  3046. "rightSide": false,
  3047. "show": true,
  3048. "total": false,
  3049. "values": true
  3050. },
  3051. "lines": true,
  3052. "linewidth": 1,
  3053. "nullPointMode": "null",
  3054. "options": {
  3055. "alertThreshold": true
  3056. },
  3057. "percentage": false,
  3058. "pluginVersion": "7.3.5",
  3059. "pointradius": 2,
  3060. "points": false,
  3061. "renderer": "flot",
  3062. "seriesOverrides": [],
  3063. "spaceLength": 10,
  3064. "stack": false,
  3065. "steppedLine": false,
  3066. "targets": [
  3067. {
  3068. "expr": "rate(envoy_postgres_ingress_postgres_notices_unknown{instance=~\"${instance}:8001\"}[5m])",
  3069. "interval": "",
  3070. "legendFormat": "UNKNOWN",
  3071. "refId": "A"
  3072. },
  3073. {
  3074. "expr": "rate(envoy_postgres_ingress_postgres_notices_notice{instance=~\"${instance}:8001\"}[5m])",
  3075. "interval": "",
  3076. "legendFormat": "NOTICE",
  3077. "refId": "B"
  3078. },
  3079. {
  3080. "expr": "rate(envoy_postgres_ingress_postgres_notices_warning{instance=~\"${instance}:8001\"}[5m])",
  3081. "interval": "",
  3082. "legendFormat": "WARNING",
  3083. "refId": "C"
  3084. },
  3085. {
  3086. "expr": "rate(envoy_postgres_ingress_postgres_notices_info{instance=~\"${instance}:8001\"}[5m])",
  3087. "interval": "",
  3088. "legendFormat": "INFO",
  3089. "refId": "D"
  3090. },
  3091. {
  3092. "expr": "rate(envoy_postgres_ingress_postgres_notices_log{instance=~\"${instance}:8001\"}[5m])",
  3093. "interval": "",
  3094. "legendFormat": "LOG",
  3095. "refId": "E"
  3096. },
  3097. {
  3098. "expr": "rate(envoy_postgres_ingress_postgres_notices_debug{instance=~\"${instance}:8001\"}[5m])",
  3099. "interval": "",
  3100. "legendFormat": "DEBUG",
  3101. "refId": "F"
  3102. }
  3103. ],
  3104. "thresholds": [],
  3105. "timeFrom": null,
  3106. "timeRegions": [],
  3107. "timeShift": null,
  3108. "title": "NOTICE ( 5min rate )",
  3109. "tooltip": {
  3110. "shared": true,
  3111. "sort": 2,
  3112. "value_type": "individual"
  3113. },
  3114. "type": "graph",
  3115. "xaxis": {
  3116. "buckets": null,
  3117. "mode": "time",
  3118. "name": null,
  3119. "show": true,
  3120. "values": []
  3121. },
  3122. "yaxes": [
  3123. {
  3124. "decimals": 0,
  3125. "format": "short",
  3126. "label": null,
  3127. "logBase": 1,
  3128. "max": null,
  3129. "min": null,
  3130. "show": true
  3131. },
  3132. {
  3133. "decimals": 0,
  3134. "format": "short",
  3135. "label": null,
  3136. "logBase": 1,
  3137. "max": null,
  3138. "min": null,
  3139. "show": true
  3140. }
  3141. ],
  3142. "yaxis": {
  3143. "align": false,
  3144. "alignLevel": null
  3145. }
  3146. }
  3147. ],
  3148. "title": "Messages",
  3149. "type": "row"
  3150. },
  3151. {
  3152. "collapsed": true,
  3153. "datasource": "${DS_PROMETHEUS}",
  3154. "fieldConfig": {
  3155. "defaults": {},
  3156. "overrides": []
  3157. },
  3158. "gridPos": {
  3159. "h": 1,
  3160. "w": 24,
  3161. "x": 0,
  3162. "y": 4
  3163. },
  3164. "id": 152,
  3165. "panels": [
  3166. {
  3167. "aliasColors": {},
  3168. "bars": false,
  3169. "dashLength": 10,
  3170. "dashes": false,
  3171. "datasource": "${DS_PROMETHEUS}",
  3172. "decimals": 0,
  3173. "fieldConfig": {
  3174. "defaults": {
  3175. "custom": {},
  3176. "links": []
  3177. },
  3178. "overrides": []
  3179. },
  3180. "fill": 1,
  3181. "fillGradient": 0,
  3182. "gridPos": {
  3183. "h": 8,
  3184. "w": 12,
  3185. "x": 0,
  3186. "y": 5
  3187. },
  3188. "hiddenSeries": false,
  3189. "id": 154,
  3190. "legend": {
  3191. "alignAsTable": true,
  3192. "avg": true,
  3193. "current": true,
  3194. "hideEmpty": true,
  3195. "hideZero": true,
  3196. "max": true,
  3197. "min": false,
  3198. "rightSide": false,
  3199. "show": true,
  3200. "total": false,
  3201. "values": true
  3202. },
  3203. "lines": true,
  3204. "linewidth": 1,
  3205. "nullPointMode": "null",
  3206. "options": {
  3207. "alertThreshold": true
  3208. },
  3209. "percentage": false,
  3210. "pluginVersion": "7.3.5",
  3211. "pointradius": 2,
  3212. "points": false,
  3213. "renderer": "flot",
  3214. "seriesOverrides": [],
  3215. "spaceLength": 10,
  3216. "stack": false,
  3217. "steppedLine": false,
  3218. "targets": [
  3219. {
  3220. "expr": "rate(envoy_postgres_ingress_postgres_sessions{instance=~\"${instance}:8001\"}[5m])*300",
  3221. "interval": "",
  3222. "legendFormat": "namespace: {{namespace}}, pod: {{pod}} ",
  3223. "refId": "A"
  3224. }
  3225. ],
  3226. "thresholds": [],
  3227. "timeFrom": null,
  3228. "timeRegions": [],
  3229. "timeShift": null,
  3230. "title": "Successful logins",
  3231. "tooltip": {
  3232. "shared": true,
  3233. "sort": 2,
  3234. "value_type": "individual"
  3235. },
  3236. "type": "graph",
  3237. "xaxis": {
  3238. "buckets": null,
  3239. "mode": "time",
  3240. "name": null,
  3241. "show": true,
  3242. "values": []
  3243. },
  3244. "yaxes": [
  3245. {
  3246. "decimals": 0,
  3247. "format": "short",
  3248. "label": null,
  3249. "logBase": 1,
  3250. "max": null,
  3251. "min": null,
  3252. "show": true
  3253. },
  3254. {
  3255. "decimals": 0,
  3256. "format": "short",
  3257. "label": null,
  3258. "logBase": 1,
  3259. "max": null,
  3260. "min": null,
  3261. "show": true
  3262. }
  3263. ],
  3264. "yaxis": {
  3265. "align": false,
  3266. "alignLevel": null
  3267. }
  3268. },
  3269. {
  3270. "aliasColors": {},
  3271. "bars": false,
  3272. "dashLength": 10,
  3273. "dashes": false,
  3274. "datasource": "${DS_PROMETHEUS}",
  3275. "decimals": 0,
  3276. "fieldConfig": {
  3277. "defaults": {
  3278. "custom": {},
  3279. "links": []
  3280. },
  3281. "overrides": []
  3282. },
  3283. "fill": 1,
  3284. "fillGradient": 0,
  3285. "gridPos": {
  3286. "h": 8,
  3287. "w": 12,
  3288. "x": 12,
  3289. "y": 5
  3290. },
  3291. "hiddenSeries": false,
  3292. "id": 156,
  3293. "legend": {
  3294. "alignAsTable": true,
  3295. "avg": true,
  3296. "current": true,
  3297. "hideEmpty": true,
  3298. "max": true,
  3299. "min": false,
  3300. "rightSide": false,
  3301. "show": true,
  3302. "total": false,
  3303. "values": true
  3304. },
  3305. "lines": true,
  3306. "linewidth": 2,
  3307. "nullPointMode": "null",
  3308. "options": {
  3309. "alertThreshold": true
  3310. },
  3311. "percentage": false,
  3312. "pluginVersion": "7.3.5",
  3313. "pointradius": 2,
  3314. "points": false,
  3315. "renderer": "flot",
  3316. "seriesOverrides": [],
  3317. "spaceLength": 10,
  3318. "stack": false,
  3319. "steppedLine": false,
  3320. "targets": [
  3321. {
  3322. "expr": "rate(envoy_postgres_ingress_postgres_sessions_encrypted{instance=~\"${instance}:8001\"}[5m])*300",
  3323. "interval": "",
  3324. "legendFormat": "namespace: {{namespace}}, pod: {{pod}} - ENCRYPTED",
  3325. "refId": "A"
  3326. },
  3327. {
  3328. "expr": "rate(envoy_postgres_ingress_postgres_sessions_unencrypted{instance=~\"${instance}:8001\"}[5m])*300",
  3329. "interval": "",
  3330. "legendFormat": "namespace: {{namespace}}, pod: {{pod}} - UNENCRYPTED",
  3331. "refId": "B"
  3332. }
  3333. ],
  3334. "thresholds": [],
  3335. "timeFrom": null,
  3336. "timeRegions": [],
  3337. "timeShift": null,
  3338. "title": "Sessions Encryption",
  3339. "tooltip": {
  3340. "shared": true,
  3341. "sort": 0,
  3342. "value_type": "individual"
  3343. },
  3344. "type": "graph",
  3345. "xaxis": {
  3346. "buckets": null,
  3347. "mode": "time",
  3348. "name": null,
  3349. "show": true,
  3350. "values": []
  3351. },
  3352. "yaxes": [
  3353. {
  3354. "decimals": 0,
  3355. "format": "short",
  3356. "label": null,
  3357. "logBase": 1,
  3358. "max": null,
  3359. "min": null,
  3360. "show": true
  3361. },
  3362. {
  3363. "decimals": 0,
  3364. "format": "short",
  3365. "label": null,
  3366. "logBase": 1,
  3367. "max": null,
  3368. "min": null,
  3369. "show": true
  3370. }
  3371. ],
  3372. "yaxis": {
  3373. "align": false,
  3374. "alignLevel": null
  3375. }
  3376. }
  3377. ],
  3378. "title": "Sessions",
  3379. "type": "row"
  3380. },
  3381. {
  3382. "collapsed": true,
  3383. "datasource": "${DS_PROMETHEUS}",
  3384. "fieldConfig": {
  3385. "defaults": {},
  3386. "overrides": []
  3387. },
  3388. "gridPos": {
  3389. "h": 1,
  3390. "w": 24,
  3391. "x": 0,
  3392. "y": 5
  3393. },
  3394. "id": 34,
  3395. "panels": [
  3396. {
  3397. "cacheTimeout": null,
  3398. "datasource": "${DS_PROMETHEUS}",
  3399. "fieldConfig": {
  3400. "defaults": {
  3401. "color": {
  3402. "mode": "thresholds"
  3403. },
  3404. "mappings": [
  3405. {
  3406. "options": {
  3407. "match": "null",
  3408. "result": {
  3409. "text": "N/A"
  3410. }
  3411. },
  3412. "type": "special"
  3413. }
  3414. ],
  3415. "thresholds": {
  3416. "mode": "absolute",
  3417. "steps": [
  3418. {
  3419. "color": "green",
  3420. "value": null
  3421. },
  3422. {
  3423. "color": "red",
  3424. "value": 80
  3425. }
  3426. ]
  3427. },
  3428. "unit": "none"
  3429. },
  3430. "overrides": []
  3431. },
  3432. "gridPos": {
  3433. "h": 2,
  3434. "w": 4,
  3435. "x": 0,
  3436. "y": 6
  3437. },
  3438. "id": 36,
  3439. "interval": null,
  3440. "links": [],
  3441. "maxDataPoints": 100,
  3442. "options": {
  3443. "colorMode": "value",
  3444. "graphMode": "none",
  3445. "justifyMode": "auto",
  3446. "orientation": "horizontal",
  3447. "reduceOptions": {
  3448. "calcs": [
  3449. "mean"
  3450. ],
  3451. "fields": "",
  3452. "values": false
  3453. },
  3454. "text": {},
  3455. "textMode": "name"
  3456. },
  3457. "pluginVersion": "8.1.2",
  3458. "targets": [
  3459. {
  3460. "expr": "pg_static{instance=~\"${instance}:9187\"}",
  3461. "format": "time_series",
  3462. "instant": true,
  3463. "interval": "",
  3464. "intervalFactor": 1,
  3465. "legendFormat": "{{short_version}}",
  3466. "refId": "A"
  3467. }
  3468. ],
  3469. "title": "Version",
  3470. "type": "stat"
  3471. },
  3472. {
  3473. "cacheTimeout": null,
  3474. "datasource": "${DS_PROMETHEUS}",
  3475. "description": "start time of the process",
  3476. "fieldConfig": {
  3477. "defaults": {
  3478. "color": {
  3479. "mode": "thresholds"
  3480. },
  3481. "mappings": [
  3482. {
  3483. "options": {
  3484. "match": "null",
  3485. "result": {
  3486. "text": "N/A"
  3487. }
  3488. },
  3489. "type": "special"
  3490. }
  3491. ],
  3492. "thresholds": {
  3493. "mode": "absolute",
  3494. "steps": [
  3495. {
  3496. "color": "green",
  3497. "value": null
  3498. },
  3499. {
  3500. "color": "red",
  3501. "value": 80
  3502. }
  3503. ]
  3504. },
  3505. "unit": "dateTimeFromNow"
  3506. },
  3507. "overrides": []
  3508. },
  3509. "gridPos": {
  3510. "h": 2,
  3511. "w": 4,
  3512. "x": 4,
  3513. "y": 6
  3514. },
  3515. "id": 28,
  3516. "interval": null,
  3517. "links": [],
  3518. "maxDataPoints": 100,
  3519. "options": {
  3520. "colorMode": "none",
  3521. "graphMode": "none",
  3522. "justifyMode": "auto",
  3523. "orientation": "horizontal",
  3524. "reduceOptions": {
  3525. "calcs": [
  3526. "mean"
  3527. ],
  3528. "fields": "",
  3529. "values": false
  3530. },
  3531. "text": {},
  3532. "textMode": "auto"
  3533. },
  3534. "pluginVersion": "8.1.2",
  3535. "targets": [
  3536. {
  3537. "expr": "process_start_time_seconds{instance=~\"${instance}:9187\"} * 1000",
  3538. "format": "time_series",
  3539. "interval": "",
  3540. "intervalFactor": 2,
  3541. "legendFormat": "",
  3542. "refId": "A"
  3543. }
  3544. ],
  3545. "title": "Start Time",
  3546. "type": "stat"
  3547. },
  3548. {
  3549. "cacheTimeout": null,
  3550. "datasource": "${DS_PROMETHEUS}",
  3551. "fieldConfig": {
  3552. "defaults": {
  3553. "color": {
  3554. "mode": "thresholds"
  3555. },
  3556. "mappings": [
  3557. {
  3558. "options": {
  3559. "match": "null",
  3560. "result": {
  3561. "text": "N/A"
  3562. }
  3563. },
  3564. "type": "special"
  3565. }
  3566. ],
  3567. "thresholds": {
  3568. "mode": "absolute",
  3569. "steps": [
  3570. {
  3571. "color": "green",
  3572. "value": null
  3573. },
  3574. {
  3575. "color": "red",
  3576. "value": 80
  3577. }
  3578. ]
  3579. },
  3580. "unit": "decbytes"
  3581. },
  3582. "overrides": []
  3583. },
  3584. "gridPos": {
  3585. "h": 2,
  3586. "w": 4,
  3587. "x": 8,
  3588. "y": 6
  3589. },
  3590. "id": 10,
  3591. "interval": null,
  3592. "links": [],
  3593. "maxDataPoints": 100,
  3594. "options": {
  3595. "colorMode": "none",
  3596. "graphMode": "none",
  3597. "justifyMode": "auto",
  3598. "orientation": "horizontal",
  3599. "reduceOptions": {
  3600. "calcs": [
  3601. "lastNotNull"
  3602. ],
  3603. "fields": "",
  3604. "values": false
  3605. },
  3606. "text": {},
  3607. "textMode": "auto"
  3608. },
  3609. "pluginVersion": "8.1.2",
  3610. "targets": [
  3611. {
  3612. "expr": "SUM(pg_stat_database_tup_fetched{datname=~\"$datname\", instance=~\"${instance}:9187\"})",
  3613. "format": "time_series",
  3614. "intervalFactor": 2,
  3615. "refId": "A",
  3616. "step": 4
  3617. }
  3618. ],
  3619. "title": "Current fetch data",
  3620. "type": "stat"
  3621. },
  3622. {
  3623. "cacheTimeout": null,
  3624. "datasource": "${DS_PROMETHEUS}",
  3625. "fieldConfig": {
  3626. "defaults": {
  3627. "color": {
  3628. "mode": "thresholds"
  3629. },
  3630. "mappings": [
  3631. {
  3632. "options": {
  3633. "match": "null",
  3634. "result": {
  3635. "text": "N/A"
  3636. }
  3637. },
  3638. "type": "special"
  3639. }
  3640. ],
  3641. "thresholds": {
  3642. "mode": "absolute",
  3643. "steps": [
  3644. {
  3645. "color": "green",
  3646. "value": null
  3647. },
  3648. {
  3649. "color": "red",
  3650. "value": 80
  3651. }
  3652. ]
  3653. },
  3654. "unit": "decbytes"
  3655. },
  3656. "overrides": []
  3657. },
  3658. "gridPos": {
  3659. "h": 2,
  3660. "w": 4,
  3661. "x": 12,
  3662. "y": 6
  3663. },
  3664. "id": 11,
  3665. "interval": null,
  3666. "links": [],
  3667. "maxDataPoints": 100,
  3668. "options": {
  3669. "colorMode": "none",
  3670. "graphMode": "none",
  3671. "justifyMode": "auto",
  3672. "orientation": "horizontal",
  3673. "reduceOptions": {
  3674. "calcs": [
  3675. "lastNotNull"
  3676. ],
  3677. "fields": "",
  3678. "values": false
  3679. },
  3680. "text": {},
  3681. "textMode": "auto"
  3682. },
  3683. "pluginVersion": "8.1.2",
  3684. "targets": [
  3685. {
  3686. "expr": "SUM(pg_stat_database_tup_inserted{datname=~\"$datname\", instance=~\"${instance}:9187\"})",
  3687. "format": "time_series",
  3688. "interval": "",
  3689. "intervalFactor": 2,
  3690. "legendFormat": "",
  3691. "refId": "A",
  3692. "step": 4
  3693. }
  3694. ],
  3695. "title": "Current insert data",
  3696. "type": "stat"
  3697. },
  3698. {
  3699. "cacheTimeout": null,
  3700. "datasource": "${DS_PROMETHEUS}",
  3701. "fieldConfig": {
  3702. "defaults": {
  3703. "color": {
  3704. "mode": "thresholds"
  3705. },
  3706. "mappings": [
  3707. {
  3708. "options": {
  3709. "match": "null",
  3710. "result": {
  3711. "text": "N/A"
  3712. }
  3713. },
  3714. "type": "special"
  3715. }
  3716. ],
  3717. "thresholds": {
  3718. "mode": "absolute",
  3719. "steps": [
  3720. {
  3721. "color": "green",
  3722. "value": null
  3723. },
  3724. {
  3725. "color": "red",
  3726. "value": 80
  3727. }
  3728. ]
  3729. },
  3730. "unit": "decbytes"
  3731. },
  3732. "overrides": []
  3733. },
  3734. "gridPos": {
  3735. "h": 2,
  3736. "w": 4,
  3737. "x": 16,
  3738. "y": 6
  3739. },
  3740. "id": 12,
  3741. "interval": null,
  3742. "links": [],
  3743. "maxDataPoints": 100,
  3744. "options": {
  3745. "colorMode": "none",
  3746. "graphMode": "none",
  3747. "justifyMode": "auto",
  3748. "orientation": "horizontal",
  3749. "reduceOptions": {
  3750. "calcs": [
  3751. "lastNotNull"
  3752. ],
  3753. "fields": "",
  3754. "values": false
  3755. },
  3756. "text": {},
  3757. "textMode": "auto"
  3758. },
  3759. "pluginVersion": "8.1.2",
  3760. "targets": [
  3761. {
  3762. "expr": "SUM(pg_stat_database_tup_updated{datname=~\"$datname\", instance=~\"${instance}:9187\"})",
  3763. "format": "time_series",
  3764. "intervalFactor": 2,
  3765. "refId": "A",
  3766. "step": 4
  3767. }
  3768. ],
  3769. "title": "Current update data",
  3770. "type": "stat"
  3771. },
  3772. {
  3773. "cacheTimeout": null,
  3774. "datasource": "${DS_PROMETHEUS}",
  3775. "fieldConfig": {
  3776. "defaults": {
  3777. "color": {
  3778. "mode": "thresholds"
  3779. },
  3780. "mappings": [
  3781. {
  3782. "options": {
  3783. "match": "null",
  3784. "result": {
  3785. "text": "N/A"
  3786. }
  3787. },
  3788. "type": "special"
  3789. }
  3790. ],
  3791. "thresholds": {
  3792. "mode": "absolute",
  3793. "steps": [
  3794. {
  3795. "color": "green",
  3796. "value": null
  3797. },
  3798. {
  3799. "color": "red",
  3800. "value": 80
  3801. }
  3802. ]
  3803. },
  3804. "unit": "none"
  3805. },
  3806. "overrides": []
  3807. },
  3808. "gridPos": {
  3809. "h": 2,
  3810. "w": 4,
  3811. "x": 20,
  3812. "y": 6
  3813. },
  3814. "id": 38,
  3815. "interval": null,
  3816. "links": [],
  3817. "maxDataPoints": 100,
  3818. "options": {
  3819. "colorMode": "none",
  3820. "graphMode": "none",
  3821. "justifyMode": "auto",
  3822. "orientation": "horizontal",
  3823. "reduceOptions": {
  3824. "calcs": [
  3825. "mean"
  3826. ],
  3827. "fields": "",
  3828. "values": false
  3829. },
  3830. "text": {},
  3831. "textMode": "auto"
  3832. },
  3833. "pluginVersion": "8.1.2",
  3834. "targets": [
  3835. {
  3836. "expr": "pg_settings_max_connections{instance=~\"${instance}:9187\"}",
  3837. "format": "time_series",
  3838. "interval": "",
  3839. "intervalFactor": 1,
  3840. "legendFormat": "",
  3841. "refId": "A"
  3842. }
  3843. ],
  3844. "title": "Max Connections",
  3845. "type": "stat"
  3846. },
  3847. {
  3848. "aliasColors": {},
  3849. "bars": false,
  3850. "dashLength": 10,
  3851. "dashes": false,
  3852. "datasource": "${DS_PROMETHEUS}",
  3853. "description": "Average user and system CPU time spent in seconds.",
  3854. "fieldConfig": {
  3855. "defaults": {
  3856. "custom": {},
  3857. "links": []
  3858. },
  3859. "overrides": []
  3860. },
  3861. "fill": 1,
  3862. "fillGradient": 0,
  3863. "gridPos": {
  3864. "h": 7,
  3865. "w": 8,
  3866. "x": 0,
  3867. "y": 8
  3868. },
  3869. "hiddenSeries": false,
  3870. "id": 22,
  3871. "legend": {
  3872. "alignAsTable": true,
  3873. "avg": true,
  3874. "current": true,
  3875. "max": true,
  3876. "min": true,
  3877. "show": true,
  3878. "total": false,
  3879. "values": true
  3880. },
  3881. "lines": true,
  3882. "linewidth": 1,
  3883. "links": [],
  3884. "nullPointMode": "null",
  3885. "options": {
  3886. "alertThreshold": true
  3887. },
  3888. "percentage": false,
  3889. "pluginVersion": "7.3.5",
  3890. "pointradius": 5,
  3891. "points": false,
  3892. "renderer": "flot",
  3893. "seriesOverrides": [],
  3894. "spaceLength": 10,
  3895. "stack": false,
  3896. "steppedLine": false,
  3897. "targets": [
  3898. {
  3899. "expr": "avg(rate(process_cpu_seconds_total{instance=~\"${instance}:9187\"}[5m]) * 1000)",
  3900. "format": "time_series",
  3901. "interval": "",
  3902. "intervalFactor": 2,
  3903. "legendFormat": "CPU Time",
  3904. "refId": "A"
  3905. }
  3906. ],
  3907. "thresholds": [],
  3908. "timeFrom": null,
  3909. "timeRegions": [],
  3910. "timeShift": null,
  3911. "title": "Average CPU Usage",
  3912. "tooltip": {
  3913. "shared": true,
  3914. "sort": 0,
  3915. "value_type": "individual"
  3916. },
  3917. "type": "graph",
  3918. "xaxis": {
  3919. "buckets": null,
  3920. "mode": "time",
  3921. "name": null,
  3922. "show": true,
  3923. "values": []
  3924. },
  3925. "yaxes": [
  3926. {
  3927. "format": "s",
  3928. "label": null,
  3929. "logBase": 1,
  3930. "max": null,
  3931. "min": null,
  3932. "show": true
  3933. },
  3934. {
  3935. "format": "short",
  3936. "label": null,
  3937. "logBase": 1,
  3938. "max": null,
  3939. "min": null,
  3940. "show": true
  3941. }
  3942. ],
  3943. "yaxis": {
  3944. "align": false,
  3945. "alignLevel": null
  3946. }
  3947. },
  3948. {
  3949. "aliasColors": {},
  3950. "bars": false,
  3951. "dashLength": 10,
  3952. "dashes": false,
  3953. "datasource": "${DS_PROMETHEUS}",
  3954. "description": "Virtual and Resident memory size in bytes, averages over 5 min interval",
  3955. "fieldConfig": {
  3956. "defaults": {
  3957. "custom": {},
  3958. "links": []
  3959. },
  3960. "overrides": []
  3961. },
  3962. "fill": 1,
  3963. "fillGradient": 0,
  3964. "gridPos": {
  3965. "h": 7,
  3966. "w": 8,
  3967. "x": 8,
  3968. "y": 8
  3969. },
  3970. "hiddenSeries": false,
  3971. "id": 24,
  3972. "legend": {
  3973. "alignAsTable": true,
  3974. "avg": true,
  3975. "current": true,
  3976. "max": true,
  3977. "min": true,
  3978. "show": true,
  3979. "total": false,
  3980. "values": true
  3981. },
  3982. "lines": true,
  3983. "linewidth": 1,
  3984. "links": [],
  3985. "nullPointMode": "null",
  3986. "options": {
  3987. "alertThreshold": true
  3988. },
  3989. "percentage": false,
  3990. "pluginVersion": "7.3.5",
  3991. "pointradius": 5,
  3992. "points": false,
  3993. "renderer": "flot",
  3994. "seriesOverrides": [],
  3995. "spaceLength": 10,
  3996. "stack": false,
  3997. "steppedLine": false,
  3998. "targets": [
  3999. {
  4000. "expr": "avg(rate(process_resident_memory_bytes{instance=~\"${instance}:9187\"}[5m]))",
  4001. "format": "time_series",
  4002. "interval": "",
  4003. "intervalFactor": 2,
  4004. "legendFormat": "Resident Mem",
  4005. "refId": "A"
  4006. },
  4007. {
  4008. "expr": "avg(rate(process_virtual_memory_bytes{instance=~\"${instance}:9187\"}[5m]))",
  4009. "format": "time_series",
  4010. "interval": "",
  4011. "intervalFactor": 2,
  4012. "legendFormat": "Virtual Mem",
  4013. "refId": "B"
  4014. }
  4015. ],
  4016. "thresholds": [],
  4017. "timeFrom": null,
  4018. "timeRegions": [],
  4019. "timeShift": null,
  4020. "title": "Average Memory Usage",
  4021. "tooltip": {
  4022. "shared": true,
  4023. "sort": 0,
  4024. "value_type": "individual"
  4025. },
  4026. "type": "graph",
  4027. "xaxis": {
  4028. "buckets": null,
  4029. "mode": "time",
  4030. "name": null,
  4031. "show": true,
  4032. "values": []
  4033. },
  4034. "yaxes": [
  4035. {
  4036. "decimals": null,
  4037. "format": "decbytes",
  4038. "label": null,
  4039. "logBase": 1,
  4040. "max": null,
  4041. "min": null,
  4042. "show": true
  4043. },
  4044. {
  4045. "format": "short",
  4046. "label": null,
  4047. "logBase": 1,
  4048. "max": null,
  4049. "min": null,
  4050. "show": true
  4051. }
  4052. ],
  4053. "yaxis": {
  4054. "align": false,
  4055. "alignLevel": null
  4056. }
  4057. },
  4058. {
  4059. "aliasColors": {},
  4060. "bars": false,
  4061. "dashLength": 10,
  4062. "dashes": false,
  4063. "datasource": "${DS_PROMETHEUS}",
  4064. "description": "Number of open file descriptors",
  4065. "fieldConfig": {
  4066. "defaults": {
  4067. "custom": {},
  4068. "links": []
  4069. },
  4070. "overrides": []
  4071. },
  4072. "fill": 1,
  4073. "fillGradient": 0,
  4074. "gridPos": {
  4075. "h": 7,
  4076. "w": 8,
  4077. "x": 16,
  4078. "y": 8
  4079. },
  4080. "hiddenSeries": false,
  4081. "id": 26,
  4082. "legend": {
  4083. "alignAsTable": true,
  4084. "avg": true,
  4085. "current": true,
  4086. "max": true,
  4087. "min": true,
  4088. "show": true,
  4089. "total": false,
  4090. "values": true
  4091. },
  4092. "lines": true,
  4093. "linewidth": 1,
  4094. "links": [],
  4095. "nullPointMode": "null",
  4096. "options": {
  4097. "alertThreshold": true
  4098. },
  4099. "percentage": false,
  4100. "pluginVersion": "7.3.5",
  4101. "pointradius": 5,
  4102. "points": false,
  4103. "renderer": "flot",
  4104. "seriesOverrides": [],
  4105. "spaceLength": 10,
  4106. "stack": false,
  4107. "steppedLine": false,
  4108. "targets": [
  4109. {
  4110. "expr": "process_open_fds{instance=~\"${instance}:9187\"}",
  4111. "format": "time_series",
  4112. "interval": "",
  4113. "intervalFactor": 2,
  4114. "legendFormat": "Open FD",
  4115. "refId": "A"
  4116. }
  4117. ],
  4118. "thresholds": [],
  4119. "timeFrom": null,
  4120. "timeRegions": [],
  4121. "timeShift": null,
  4122. "title": "Open File Descriptors",
  4123. "tooltip": {
  4124. "shared": true,
  4125. "sort": 0,
  4126. "value_type": "individual"
  4127. },
  4128. "type": "graph",
  4129. "xaxis": {
  4130. "buckets": null,
  4131. "mode": "time",
  4132. "name": null,
  4133. "show": true,
  4134. "values": []
  4135. },
  4136. "yaxes": [
  4137. {
  4138. "decimals": null,
  4139. "format": "short",
  4140. "label": null,
  4141. "logBase": 1,
  4142. "max": null,
  4143. "min": null,
  4144. "show": true
  4145. },
  4146. {
  4147. "format": "short",
  4148. "label": null,
  4149. "logBase": 1,
  4150. "max": null,
  4151. "min": null,
  4152. "show": true
  4153. }
  4154. ],
  4155. "yaxis": {
  4156. "align": false,
  4157. "alignLevel": null
  4158. }
  4159. },
  4160. {
  4161. "aliasColors": {},
  4162. "bars": false,
  4163. "dashLength": 10,
  4164. "dashes": false,
  4165. "datasource": "${DS_PROMETHEUS}",
  4166. "fieldConfig": {
  4167. "defaults": {
  4168. "custom": {},
  4169. "links": []
  4170. },
  4171. "overrides": []
  4172. },
  4173. "fill": 0,
  4174. "fillGradient": 0,
  4175. "gridPos": {
  4176. "h": 7,
  4177. "w": 12,
  4178. "x": 0,
  4179. "y": 15
  4180. },
  4181. "hiddenSeries": false,
  4182. "id": 228,
  4183. "legend": {
  4184. "alignAsTable": true,
  4185. "avg": true,
  4186. "current": true,
  4187. "max": true,
  4188. "min": true,
  4189. "show": true,
  4190. "sort": "current",
  4191. "sortDesc": false,
  4192. "total": false,
  4193. "values": true
  4194. },
  4195. "lines": true,
  4196. "linewidth": 1,
  4197. "nullPointMode": "null",
  4198. "options": {
  4199. "alertThreshold": true
  4200. },
  4201. "percentage": false,
  4202. "pluginVersion": "7.3.5",
  4203. "pointradius": 2,
  4204. "points": false,
  4205. "renderer": "flot",
  4206. "seriesOverrides": [],
  4207. "spaceLength": 10,
  4208. "stack": false,
  4209. "steppedLine": false,
  4210. "targets": [
  4211. {
  4212. "expr": "node_filesystem_avail_bytes{instance=~\"${instance}:9187\",fstype!=\"\"}",
  4213. "interval": "",
  4214. "legendFormat": "{{mountpoint}} Available",
  4215. "refId": "A"
  4216. },
  4217. {
  4218. "expr": "node_filesystem_size_bytes{instance=~\"${instance}:9187\",fstype!=\"\"}",
  4219. "format": "time_series",
  4220. "instant": false,
  4221. "interval": "",
  4222. "legendFormat": "{{mountpoint}} Total",
  4223. "refId": "B"
  4224. }
  4225. ],
  4226. "thresholds": [],
  4227. "timeFrom": null,
  4228. "timeRegions": [],
  4229. "timeShift": null,
  4230. "title": "Total / Available Disk Size",
  4231. "tooltip": {
  4232. "shared": false,
  4233. "sort": 0,
  4234. "value_type": "individual"
  4235. },
  4236. "type": "graph",
  4237. "xaxis": {
  4238. "buckets": null,
  4239. "mode": "time",
  4240. "name": null,
  4241. "show": true,
  4242. "values": []
  4243. },
  4244. "yaxes": [
  4245. {
  4246. "format": "bytes",
  4247. "label": null,
  4248. "logBase": 1,
  4249. "max": null,
  4250. "min": null,
  4251. "show": true
  4252. },
  4253. {
  4254. "decimals": null,
  4255. "format": "percent",
  4256. "label": null,
  4257. "logBase": 1,
  4258. "max": null,
  4259. "min": null,
  4260. "show": false
  4261. }
  4262. ],
  4263. "yaxis": {
  4264. "align": true,
  4265. "alignLevel": null
  4266. }
  4267. },
  4268. {
  4269. "aliasColors": {},
  4270. "bars": false,
  4271. "dashLength": 10,
  4272. "dashes": false,
  4273. "datasource": "${DS_PROMETHEUS}",
  4274. "fieldConfig": {
  4275. "defaults": {
  4276. "custom": {},
  4277. "links": []
  4278. },
  4279. "overrides": []
  4280. },
  4281. "fill": 0,
  4282. "fillGradient": 0,
  4283. "gridPos": {
  4284. "h": 7,
  4285. "w": 12,
  4286. "x": 12,
  4287. "y": 15
  4288. },
  4289. "hiddenSeries": false,
  4290. "id": 230,
  4291. "legend": {
  4292. "alignAsTable": true,
  4293. "avg": false,
  4294. "current": true,
  4295. "max": false,
  4296. "min": false,
  4297. "show": true,
  4298. "sort": "current",
  4299. "sortDesc": false,
  4300. "total": false,
  4301. "values": true
  4302. },
  4303. "lines": true,
  4304. "linewidth": 1,
  4305. "nullPointMode": "null",
  4306. "options": {
  4307. "alertThreshold": true
  4308. },
  4309. "percentage": false,
  4310. "pluginVersion": "7.3.5",
  4311. "pointradius": 2,
  4312. "points": false,
  4313. "renderer": "flot",
  4314. "seriesOverrides": [],
  4315. "spaceLength": 10,
  4316. "stack": false,
  4317. "steppedLine": false,
  4318. "targets": [
  4319. {
  4320. "expr": "node_filesystem_files_free{instance=~\"${instance}:9187\",fstype!=\"\"}",
  4321. "interval": "",
  4322. "legendFormat": "{{mountpoint}} inodes free",
  4323. "refId": "A"
  4324. },
  4325. {
  4326. "expr": "node_filesystem_files{instance=~\"${instance}:9187\",fstype!=\"\"}",
  4327. "interval": "",
  4328. "legendFormat": "{{mountpoint}} inodes",
  4329. "refId": "B"
  4330. }
  4331. ],
  4332. "thresholds": [],
  4333. "timeFrom": null,
  4334. "timeRegions": [],
  4335. "timeShift": null,
  4336. "title": "Total / Available Disk inodes",
  4337. "tooltip": {
  4338. "shared": true,
  4339. "sort": 0,
  4340. "value_type": "individual"
  4341. },
  4342. "type": "graph",
  4343. "xaxis": {
  4344. "buckets": null,
  4345. "mode": "time",
  4346. "name": null,
  4347. "show": true,
  4348. "values": []
  4349. },
  4350. "yaxes": [
  4351. {
  4352. "format": "short",
  4353. "label": null,
  4354. "logBase": 1,
  4355. "max": null,
  4356. "min": null,
  4357. "show": true
  4358. },
  4359. {
  4360. "format": "short",
  4361. "label": null,
  4362. "logBase": 1,
  4363. "max": null,
  4364. "min": null,
  4365. "show": true
  4366. }
  4367. ],
  4368. "yaxis": {
  4369. "align": false,
  4370. "alignLevel": null
  4371. }
  4372. }
  4373. ],
  4374. "title": "General Counters, Disks, CPU, Memory and File Descriptor Stats",
  4375. "type": "row"
  4376. },
  4377. {
  4378. "collapsed": true,
  4379. "datasource": "${DS_PROMETHEUS}",
  4380. "fieldConfig": {
  4381. "defaults": {},
  4382. "overrides": []
  4383. },
  4384. "gridPos": {
  4385. "h": 1,
  4386. "w": 24,
  4387. "x": 0,
  4388. "y": 6
  4389. },
  4390. "id": 32,
  4391. "panels": [
  4392. {
  4393. "cacheTimeout": null,
  4394. "datasource": "${DS_PROMETHEUS}",
  4395. "fieldConfig": {
  4396. "defaults": {
  4397. "color": {
  4398. "mode": "thresholds"
  4399. },
  4400. "custom": {},
  4401. "mappings": [
  4402. {
  4403. "options": {
  4404. "0": {
  4405. "index": 0,
  4406. "text": "Leader"
  4407. },
  4408. "1": {
  4409. "index": 1,
  4410. "text": "Replica"
  4411. }
  4412. },
  4413. "text": "Leader",
  4414. "type": 1,
  4415. "value": "0"
  4416. },
  4417. {
  4418. "from": "",
  4419. "id": null,
  4420. "operator": "",
  4421. "text": "Replica",
  4422. "to": "",
  4423. "type": 1,
  4424. "value": "1"
  4425. }
  4426. ],
  4427. "thresholds": {
  4428. "mode": "absolute",
  4429. "steps": [
  4430. {
  4431. "color": "green",
  4432. "value": null
  4433. },
  4434. {
  4435. "color": "red",
  4436. "value": 80
  4437. }
  4438. ]
  4439. },
  4440. "unit": "string"
  4441. },
  4442. "overrides": []
  4443. },
  4444. "gridPos": {
  4445. "h": 3,
  4446. "w": 6,
  4447. "x": 0,
  4448. "y": 7
  4449. },
  4450. "id": 42,
  4451. "interval": null,
  4452. "links": [],
  4453. "maxDataPoints": 100,
  4454. "options": {
  4455. "colorMode": "none",
  4456. "graphMode": "none",
  4457. "justifyMode": "auto",
  4458. "orientation": "horizontal",
  4459. "reduceOptions": {
  4460. "calcs": [
  4461. "lastNotNull"
  4462. ],
  4463. "fields": "",
  4464. "values": false
  4465. },
  4466. "text": {},
  4467. "textMode": "auto"
  4468. },
  4469. "pluginVersion": "7.0.6",
  4470. "targets": [
  4471. {
  4472. "exemplar": true,
  4473. "expr": "pg_replication_is_replica{instance=~\"${instance}:9187\"}",
  4474. "format": "time_series",
  4475. "interval": "",
  4476. "intervalFactor": 1,
  4477. "legendFormat": "",
  4478. "refId": "A"
  4479. }
  4480. ],
  4481. "title": "Role",
  4482. "type": "stat"
  4483. },
  4484. {
  4485. "cacheTimeout": null,
  4486. "datasource": "${DS_PROMETHEUS}",
  4487. "fieldConfig": {
  4488. "defaults": {
  4489. "color": {
  4490. "mode": "thresholds"
  4491. },
  4492. "custom": {},
  4493. "mappings": [
  4494. {
  4495. "options": {
  4496. "match": "null",
  4497. "result": {
  4498. "text": "N/A"
  4499. }
  4500. },
  4501. "type": "special"
  4502. }
  4503. ],
  4504. "thresholds": {
  4505. "mode": "absolute",
  4506. "steps": [
  4507. {
  4508. "color": "green",
  4509. "value": null
  4510. },
  4511. {
  4512. "color": "red",
  4513. "value": 80
  4514. }
  4515. ]
  4516. },
  4517. "unit": "bytes"
  4518. },
  4519. "overrides": []
  4520. },
  4521. "gridPos": {
  4522. "h": 3,
  4523. "w": 3,
  4524. "x": 6,
  4525. "y": 7
  4526. },
  4527. "id": 44,
  4528. "interval": null,
  4529. "links": [],
  4530. "maxDataPoints": 100,
  4531. "options": {
  4532. "colorMode": "none",
  4533. "graphMode": "none",
  4534. "justifyMode": "auto",
  4535. "orientation": "horizontal",
  4536. "reduceOptions": {
  4537. "calcs": [
  4538. "lastNotNull"
  4539. ],
  4540. "fields": "",
  4541. "values": false
  4542. },
  4543. "text": {},
  4544. "textMode": "auto"
  4545. },
  4546. "pluginVersion": "7.0.6",
  4547. "targets": [
  4548. {
  4549. "expr": "pg_settings_maintenance_work_mem_bytes{instance=~\"${instance}:9187\"}",
  4550. "format": "time_series",
  4551. "intervalFactor": 1,
  4552. "refId": "A"
  4553. }
  4554. ],
  4555. "title": "Maintenance Work Mem",
  4556. "type": "stat"
  4557. },
  4558. {
  4559. "cacheTimeout": null,
  4560. "datasource": "${DS_PROMETHEUS}",
  4561. "fieldConfig": {
  4562. "defaults": {
  4563. "color": {
  4564. "mode": "thresholds"
  4565. },
  4566. "custom": {},
  4567. "mappings": [
  4568. {
  4569. "options": {
  4570. "match": "null",
  4571. "result": {
  4572. "text": "N/A"
  4573. }
  4574. },
  4575. "type": "special"
  4576. }
  4577. ],
  4578. "thresholds": {
  4579. "mode": "absolute",
  4580. "steps": [
  4581. {
  4582. "color": "green",
  4583. "value": null
  4584. },
  4585. {
  4586. "color": "red",
  4587. "value": 80
  4588. }
  4589. ]
  4590. },
  4591. "unit": "bytes"
  4592. },
  4593. "overrides": []
  4594. },
  4595. "gridPos": {
  4596. "h": 3,
  4597. "w": 3,
  4598. "x": 9,
  4599. "y": 7
  4600. },
  4601. "id": 46,
  4602. "interval": null,
  4603. "links": [],
  4604. "maxDataPoints": 100,
  4605. "options": {
  4606. "colorMode": "none",
  4607. "graphMode": "none",
  4608. "justifyMode": "auto",
  4609. "orientation": "horizontal",
  4610. "reduceOptions": {
  4611. "calcs": [
  4612. "lastNotNull"
  4613. ],
  4614. "fields": "",
  4615. "values": false
  4616. },
  4617. "text": {},
  4618. "textMode": "auto"
  4619. },
  4620. "pluginVersion": "7.0.6",
  4621. "targets": [
  4622. {
  4623. "expr": "pg_settings_work_mem_bytes{instance=~\"${instance}:9187\"}",
  4624. "format": "time_series",
  4625. "intervalFactor": 1,
  4626. "legendFormat": "",
  4627. "refId": "A"
  4628. }
  4629. ],
  4630. "title": "Work Mem",
  4631. "type": "stat"
  4632. },
  4633. {
  4634. "cacheTimeout": null,
  4635. "datasource": "${DS_PROMETHEUS}",
  4636. "fieldConfig": {
  4637. "defaults": {
  4638. "color": {
  4639. "mode": "thresholds"
  4640. },
  4641. "custom": {},
  4642. "decimals": 1,
  4643. "mappings": [
  4644. {
  4645. "options": {
  4646. "match": "null",
  4647. "result": {
  4648. "text": "N/A"
  4649. }
  4650. },
  4651. "type": "special"
  4652. }
  4653. ],
  4654. "thresholds": {
  4655. "mode": "absolute",
  4656. "steps": [
  4657. {
  4658. "color": "green",
  4659. "value": null
  4660. },
  4661. {
  4662. "color": "red",
  4663. "value": 80
  4664. }
  4665. ]
  4666. },
  4667. "unit": "bytes"
  4668. },
  4669. "overrides": []
  4670. },
  4671. "gridPos": {
  4672. "h": 3,
  4673. "w": 3,
  4674. "x": 12,
  4675. "y": 7
  4676. },
  4677. "id": 48,
  4678. "interval": null,
  4679. "links": [],
  4680. "maxDataPoints": 100,
  4681. "options": {
  4682. "colorMode": "none",
  4683. "graphMode": "none",
  4684. "justifyMode": "auto",
  4685. "orientation": "horizontal",
  4686. "reduceOptions": {
  4687. "calcs": [
  4688. "lastNotNull"
  4689. ],
  4690. "fields": "",
  4691. "values": false
  4692. },
  4693. "text": {},
  4694. "textMode": "auto"
  4695. },
  4696. "pluginVersion": "7.0.6",
  4697. "targets": [
  4698. {
  4699. "expr": "pg_settings_max_wal_size_bytes{instance=~\"${instance}:9187\"}",
  4700. "format": "time_series",
  4701. "intervalFactor": 1,
  4702. "refId": "A"
  4703. }
  4704. ],
  4705. "title": "Max WAL Size",
  4706. "type": "stat"
  4707. },
  4708. {
  4709. "cacheTimeout": null,
  4710. "datasource": "${DS_PROMETHEUS}",
  4711. "fieldConfig": {
  4712. "defaults": {
  4713. "color": {
  4714. "mode": "thresholds"
  4715. },
  4716. "custom": {},
  4717. "mappings": [
  4718. {
  4719. "options": {
  4720. "match": "null",
  4721. "result": {
  4722. "text": "N/A"
  4723. }
  4724. },
  4725. "type": "special"
  4726. }
  4727. ],
  4728. "thresholds": {
  4729. "mode": "absolute",
  4730. "steps": [
  4731. {
  4732. "color": "green",
  4733. "value": null
  4734. },
  4735. {
  4736. "color": "red",
  4737. "value": 80
  4738. }
  4739. ]
  4740. },
  4741. "unit": "none"
  4742. },
  4743. "overrides": []
  4744. },
  4745. "gridPos": {
  4746. "h": 3,
  4747. "w": 3,
  4748. "x": 15,
  4749. "y": 7
  4750. },
  4751. "id": 50,
  4752. "interval": null,
  4753. "links": [],
  4754. "maxDataPoints": 100,
  4755. "options": {
  4756. "colorMode": "none",
  4757. "graphMode": "none",
  4758. "justifyMode": "auto",
  4759. "orientation": "horizontal",
  4760. "reduceOptions": {
  4761. "calcs": [
  4762. "lastNotNull"
  4763. ],
  4764. "fields": "",
  4765. "values": false
  4766. },
  4767. "text": {},
  4768. "textMode": "auto"
  4769. },
  4770. "pluginVersion": "7.0.6",
  4771. "targets": [
  4772. {
  4773. "expr": "pg_settings_random_page_cost{instance=~\"${instance}:9187\"}",
  4774. "format": "time_series",
  4775. "intervalFactor": 1,
  4776. "refId": "A"
  4777. }
  4778. ],
  4779. "title": "Random Page Cost",
  4780. "type": "stat"
  4781. },
  4782. {
  4783. "cacheTimeout": null,
  4784. "datasource": "${DS_PROMETHEUS}",
  4785. "fieldConfig": {
  4786. "defaults": {
  4787. "color": {
  4788. "mode": "thresholds"
  4789. },
  4790. "custom": {},
  4791. "mappings": [
  4792. {
  4793. "options": {
  4794. "match": "null",
  4795. "result": {
  4796. "text": "N/A"
  4797. }
  4798. },
  4799. "type": "special"
  4800. }
  4801. ],
  4802. "thresholds": {
  4803. "mode": "absolute",
  4804. "steps": [
  4805. {
  4806. "color": "green",
  4807. "value": null
  4808. },
  4809. {
  4810. "color": "red",
  4811. "value": 80
  4812. }
  4813. ]
  4814. },
  4815. "unit": "none"
  4816. },
  4817. "overrides": []
  4818. },
  4819. "gridPos": {
  4820. "h": 3,
  4821. "w": 2,
  4822. "x": 18,
  4823. "y": 7
  4824. },
  4825. "id": 52,
  4826. "interval": null,
  4827. "links": [],
  4828. "maxDataPoints": 100,
  4829. "options": {
  4830. "colorMode": "none",
  4831. "graphMode": "none",
  4832. "justifyMode": "auto",
  4833. "orientation": "horizontal",
  4834. "reduceOptions": {
  4835. "calcs": [
  4836. "lastNotNull"
  4837. ],
  4838. "fields": "",
  4839. "values": false
  4840. },
  4841. "text": {},
  4842. "textMode": "auto"
  4843. },
  4844. "pluginVersion": "7.0.6",
  4845. "targets": [
  4846. {
  4847. "expr": "pg_settings_seq_page_cost{instance=~\"${instance}:9187\"}",
  4848. "format": "time_series",
  4849. "intervalFactor": 1,
  4850. "refId": "A"
  4851. }
  4852. ],
  4853. "title": "Seq Page Cost",
  4854. "type": "stat"
  4855. },
  4856. {
  4857. "cacheTimeout": null,
  4858. "datasource": "${DS_PROMETHEUS}",
  4859. "fieldConfig": {
  4860. "defaults": {
  4861. "color": {
  4862. "mode": "thresholds"
  4863. },
  4864. "custom": {},
  4865. "mappings": [
  4866. {
  4867. "options": {
  4868. "match": "null",
  4869. "result": {
  4870. "text": "N/A"
  4871. }
  4872. },
  4873. "type": "special"
  4874. }
  4875. ],
  4876. "thresholds": {
  4877. "mode": "absolute",
  4878. "steps": [
  4879. {
  4880. "color": "green",
  4881. "value": null
  4882. },
  4883. {
  4884. "color": "red",
  4885. "value": 80
  4886. }
  4887. ]
  4888. },
  4889. "unit": "none"
  4890. },
  4891. "overrides": []
  4892. },
  4893. "gridPos": {
  4894. "h": 3,
  4895. "w": 4,
  4896. "x": 20,
  4897. "y": 7
  4898. },
  4899. "id": 56,
  4900. "interval": null,
  4901. "links": [],
  4902. "maxDataPoints": 100,
  4903. "options": {
  4904. "colorMode": "none",
  4905. "graphMode": "none",
  4906. "justifyMode": "auto",
  4907. "orientation": "horizontal",
  4908. "reduceOptions": {
  4909. "calcs": [
  4910. "lastNotNull"
  4911. ],
  4912. "fields": "",
  4913. "values": false
  4914. },
  4915. "text": {},
  4916. "textMode": "auto"
  4917. },
  4918. "pluginVersion": "7.0.6",
  4919. "targets": [
  4920. {
  4921. "expr": "pg_settings_max_parallel_workers{instance=~\"${instance}:9187\"}",
  4922. "format": "time_series",
  4923. "intervalFactor": 1,
  4924. "refId": "A"
  4925. }
  4926. ],
  4927. "title": "Max Parallel Workers",
  4928. "type": "stat"
  4929. },
  4930. {
  4931. "cacheTimeout": null,
  4932. "datasource": "${DS_PROMETHEUS}",
  4933. "fieldConfig": {
  4934. "defaults": {
  4935. "color": {
  4936. "mode": "thresholds"
  4937. },
  4938. "custom": {},
  4939. "mappings": [
  4940. {
  4941. "options": {
  4942. "match": "null",
  4943. "result": {
  4944. "text": "N/A"
  4945. }
  4946. },
  4947. "type": "special"
  4948. }
  4949. ],
  4950. "thresholds": {
  4951. "mode": "absolute",
  4952. "steps": [
  4953. {
  4954. "color": "green",
  4955. "value": null
  4956. },
  4957. {
  4958. "color": "red",
  4959. "value": 80
  4960. }
  4961. ]
  4962. },
  4963. "unit": "bytes"
  4964. },
  4965. "overrides": []
  4966. },
  4967. "gridPos": {
  4968. "h": 3,
  4969. "w": 3,
  4970. "x": 0,
  4971. "y": 10
  4972. },
  4973. "id": 40,
  4974. "interval": null,
  4975. "links": [],
  4976. "maxDataPoints": 100,
  4977. "options": {
  4978. "colorMode": "none",
  4979. "graphMode": "none",
  4980. "justifyMode": "auto",
  4981. "orientation": "horizontal",
  4982. "reduceOptions": {
  4983. "calcs": [
  4984. "lastNotNull"
  4985. ],
  4986. "fields": "",
  4987. "values": false
  4988. },
  4989. "text": {},
  4990. "textMode": "auto"
  4991. },
  4992. "pluginVersion": "7.0.6",
  4993. "targets": [
  4994. {
  4995. "expr": "pg_settings_shared_buffers_bytes{instance=~\"${instance}:9187\"}",
  4996. "format": "time_series",
  4997. "intervalFactor": 1,
  4998. "refId": "A"
  4999. }
  5000. ],
  5001. "title": "Shared Buffers",
  5002. "type": "stat"
  5003. },
  5004. {
  5005. "cacheTimeout": null,
  5006. "datasource": "${DS_PROMETHEUS}",
  5007. "fieldConfig": {
  5008. "defaults": {
  5009. "color": {
  5010. "mode": "thresholds"
  5011. },
  5012. "custom": {},
  5013. "mappings": [
  5014. {
  5015. "options": {
  5016. "match": "null",
  5017. "result": {
  5018. "text": "N/A"
  5019. }
  5020. },
  5021. "type": "special"
  5022. }
  5023. ],
  5024. "thresholds": {
  5025. "mode": "absolute",
  5026. "steps": [
  5027. {
  5028. "color": "green",
  5029. "value": null
  5030. },
  5031. {
  5032. "color": "red",
  5033. "value": 80
  5034. }
  5035. ]
  5036. },
  5037. "unit": "none"
  5038. },
  5039. "overrides": []
  5040. },
  5041. "gridPos": {
  5042. "h": 3,
  5043. "w": 3,
  5044. "x": 3,
  5045. "y": 10
  5046. },
  5047. "id": 54,
  5048. "interval": null,
  5049. "links": [],
  5050. "maxDataPoints": 100,
  5051. "options": {
  5052. "colorMode": "none",
  5053. "graphMode": "none",
  5054. "justifyMode": "auto",
  5055. "orientation": "horizontal",
  5056. "reduceOptions": {
  5057. "calcs": [
  5058. "mean"
  5059. ],
  5060. "fields": "",
  5061. "values": false
  5062. },
  5063. "text": {},
  5064. "textMode": "auto"
  5065. },
  5066. "pluginVersion": "7.0.6",
  5067. "targets": [
  5068. {
  5069. "expr": "pg_settings_max_worker_processes{instance=~\"${instance}:9187\"}",
  5070. "format": "time_series",
  5071. "intervalFactor": 1,
  5072. "refId": "A"
  5073. }
  5074. ],
  5075. "title": "Max Worker Processes",
  5076. "type": "stat"
  5077. }
  5078. ],
  5079. "title": "Settings",
  5080. "type": "row"
  5081. },
  5082. {
  5083. "collapsed": true,
  5084. "datasource": "${DS_PROMETHEUS}",
  5085. "fieldConfig": {
  5086. "defaults": {},
  5087. "overrides": []
  5088. },
  5089. "gridPos": {
  5090. "h": 1,
  5091. "w": 24,
  5092. "x": 0,
  5093. "y": 7
  5094. },
  5095. "id": 92,
  5096. "panels": [
  5097. {
  5098. "aliasColors": {},
  5099. "bars": true,
  5100. "cacheTimeout": null,
  5101. "dashLength": 10,
  5102. "dashes": false,
  5103. "datasource": "${DS_PROMETHEUS}",
  5104. "fieldConfig": {
  5105. "defaults": {
  5106. "links": []
  5107. },
  5108. "overrides": []
  5109. },
  5110. "fill": 1,
  5111. "fillGradient": 0,
  5112. "gridPos": {
  5113. "h": 8,
  5114. "w": 17,
  5115. "x": 0,
  5116. "y": 8
  5117. },
  5118. "hiddenSeries": false,
  5119. "id": 96,
  5120. "legend": {
  5121. "alignAsTable": true,
  5122. "avg": false,
  5123. "current": true,
  5124. "max": false,
  5125. "min": false,
  5126. "rightSide": true,
  5127. "show": true,
  5128. "sort": "current",
  5129. "sortDesc": true,
  5130. "total": false,
  5131. "values": true
  5132. },
  5133. "lines": false,
  5134. "linewidth": 1,
  5135. "links": [],
  5136. "nullPointMode": "null",
  5137. "options": {
  5138. "alertThreshold": true
  5139. },
  5140. "percentage": false,
  5141. "pluginVersion": "8.1.2",
  5142. "pointradius": 2,
  5143. "points": false,
  5144. "renderer": "flot",
  5145. "seriesOverrides": [],
  5146. "spaceLength": 10,
  5147. "stack": false,
  5148. "steppedLine": false,
  5149. "targets": [
  5150. {
  5151. "expr": "pg_database_size{instance=~\"${instance}:9187\", datname!~\"template0|template1\"}",
  5152. "instant": false,
  5153. "interval": "",
  5154. "intervalFactor": 1,
  5155. "legendFormat": "{{datname}}",
  5156. "refId": "A"
  5157. }
  5158. ],
  5159. "thresholds": [],
  5160. "timeFrom": null,
  5161. "timeRegions": [],
  5162. "timeShift": null,
  5163. "title": "Database Size",
  5164. "tooltip": {
  5165. "shared": false,
  5166. "sort": 0,
  5167. "value_type": "individual"
  5168. },
  5169. "type": "graph",
  5170. "xaxis": {
  5171. "buckets": null,
  5172. "mode": "series",
  5173. "name": null,
  5174. "show": true,
  5175. "values": [
  5176. "current"
  5177. ]
  5178. },
  5179. "yaxes": [
  5180. {
  5181. "decimals": 1,
  5182. "format": "bytes",
  5183. "label": null,
  5184. "logBase": 1,
  5185. "max": null,
  5186. "min": null,
  5187. "show": true
  5188. },
  5189. {
  5190. "decimals": 1,
  5191. "format": "bytes",
  5192. "label": null,
  5193. "logBase": 1,
  5194. "max": null,
  5195. "min": null,
  5196. "show": true
  5197. }
  5198. ],
  5199. "yaxis": {
  5200. "align": false,
  5201. "alignLevel": null
  5202. }
  5203. },
  5204. {
  5205. "columns": [
  5206. {
  5207. "text": "Current",
  5208. "value": "current"
  5209. }
  5210. ],
  5211. "datasource": "${DS_PROMETHEUS}",
  5212. "fontSize": "100%",
  5213. "gridPos": {
  5214. "h": 4,
  5215. "w": 4,
  5216. "x": 17,
  5217. "y": 8
  5218. },
  5219. "id": 234,
  5220. "pageSize": 100,
  5221. "showHeader": true,
  5222. "sort": {
  5223. "col": 0,
  5224. "desc": true
  5225. },
  5226. "styles": [
  5227. {
  5228. "alias": "",
  5229. "align": "left",
  5230. "colorMode": null,
  5231. "colors": [
  5232. "rgba(245, 54, 54, 0.9)",
  5233. "rgba(237, 129, 40, 0.89)",
  5234. "rgba(50, 172, 45, 0.97)"
  5235. ],
  5236. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  5237. "decimals": 2,
  5238. "mappingType": 1,
  5239. "pattern": "Current",
  5240. "thresholds": [],
  5241. "type": "number",
  5242. "unit": "bytes"
  5243. }
  5244. ],
  5245. "targets": [
  5246. {
  5247. "expr": "node_filesystem_avail_bytes{instance=~\"${instance}:9187\",mountpoint=\"/var/lib/postgresql\",fstype!=\"\"}",
  5248. "interval": "",
  5249. "legendFormat": "Available",
  5250. "refId": "A"
  5251. },
  5252. {
  5253. "expr": "node_filesystem_size_bytes{instance=~\"${instance}:9187\",mountpoint=\"/var/lib/postgresql\",fstype!=\"\"}",
  5254. "interval": "",
  5255. "legendFormat": "Total",
  5256. "refId": "B"
  5257. }
  5258. ],
  5259. "timeFrom": null,
  5260. "timeShift": null,
  5261. "title": "Database Disk Size",
  5262. "transform": "timeseries_aggregations",
  5263. "type": "table-old"
  5264. },
  5265. {
  5266. "datasource": "${DS_PROMETHEUS}",
  5267. "fieldConfig": {
  5268. "defaults": {
  5269. "displayName": "",
  5270. "mappings": [],
  5271. "max": 100,
  5272. "min": 0,
  5273. "thresholds": {
  5274. "mode": "absolute",
  5275. "steps": [
  5276. {
  5277. "color": "green",
  5278. "value": null
  5279. },
  5280. {
  5281. "color": "orange",
  5282. "value": 75
  5283. },
  5284. {
  5285. "color": "red",
  5286. "value": 90
  5287. }
  5288. ]
  5289. },
  5290. "unit": "percent"
  5291. },
  5292. "overrides": []
  5293. },
  5294. "gridPos": {
  5295. "h": 8,
  5296. "w": 3,
  5297. "x": 21,
  5298. "y": 8
  5299. },
  5300. "id": 232,
  5301. "options": {
  5302. "orientation": "auto",
  5303. "reduceOptions": {
  5304. "calcs": [
  5305. "last"
  5306. ],
  5307. "fields": "",
  5308. "values": false
  5309. },
  5310. "showThresholdLabels": false,
  5311. "showThresholdMarkers": true,
  5312. "text": {}
  5313. },
  5314. "pluginVersion": "8.1.2",
  5315. "targets": [
  5316. {
  5317. "expr": "(1.0 - node_filesystem_avail_bytes{instance=~\"${instance}:9187\",mountpoint=\"/var/lib/postgresql\",fstype!=\"\"} / node_filesystem_size_bytes{instance=~\"${instance}:9187\",mountpoint=\"/var/lib/postgresql\",fstype!=\"\"}) * 100",
  5318. "interval": "",
  5319. "legendFormat": "Size",
  5320. "refId": "A"
  5321. },
  5322. {
  5323. "expr": "(1.0 - node_filesystem_files_free{instance=~\"${instance}:9187\",mountpoint=\"/var/lib/postgresql\",fstype!=\"\"} / node_filesystem_files{instance=~\"${instance}:9187\",mountpoint=\"/var/lib/postgresql\",fstype!=\"\"}) * 100",
  5324. "interval": "",
  5325. "legendFormat": "inodes",
  5326. "refId": "B"
  5327. }
  5328. ],
  5329. "timeFrom": null,
  5330. "timeShift": null,
  5331. "title": "Database Disk Usage",
  5332. "type": "gauge"
  5333. },
  5334. {
  5335. "columns": [
  5336. {
  5337. "text": "Current",
  5338. "value": "current"
  5339. }
  5340. ],
  5341. "datasource": "${DS_PROMETHEUS}",
  5342. "fontSize": "100%",
  5343. "gridPos": {
  5344. "h": 4,
  5345. "w": 4,
  5346. "x": 17,
  5347. "y": 12
  5348. },
  5349. "id": 235,
  5350. "pageSize": 100,
  5351. "showHeader": true,
  5352. "sort": {
  5353. "col": 0,
  5354. "desc": true
  5355. },
  5356. "styles": [
  5357. {
  5358. "alias": "",
  5359. "align": "left",
  5360. "colorMode": null,
  5361. "colors": [
  5362. "rgba(245, 54, 54, 0.9)",
  5363. "rgba(237, 129, 40, 0.89)",
  5364. "rgba(50, 172, 45, 0.97)"
  5365. ],
  5366. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  5367. "decimals": 2,
  5368. "mappingType": 1,
  5369. "pattern": "Current",
  5370. "thresholds": [],
  5371. "type": "number",
  5372. "unit": "short"
  5373. }
  5374. ],
  5375. "targets": [
  5376. {
  5377. "expr": "node_filesystem_files{instance=~\"${instance}:9187\",mountpoint=\"/var/lib/postgresql\",fstype!=\"\"}",
  5378. "interval": "",
  5379. "legendFormat": "Total",
  5380. "refId": "C"
  5381. },
  5382. {
  5383. "expr": "node_filesystem_files_free{instance=~\"${instance}:9187\",mountpoint=\"/var/lib/postgresql\",fstype!=\"\"}",
  5384. "interval": "",
  5385. "legendFormat": "Free",
  5386. "refId": "D"
  5387. }
  5388. ],
  5389. "timeFrom": null,
  5390. "timeShift": null,
  5391. "title": "Database Disk inodes",
  5392. "transform": "timeseries_aggregations",
  5393. "type": "table-old"
  5394. },
  5395. {
  5396. "aliasColors": {},
  5397. "bars": false,
  5398. "dashLength": 10,
  5399. "dashes": false,
  5400. "datasource": "${DS_PROMETHEUS}",
  5401. "fieldConfig": {
  5402. "defaults": {
  5403. "links": []
  5404. },
  5405. "overrides": []
  5406. },
  5407. "fill": 1,
  5408. "fillGradient": 0,
  5409. "gridPos": {
  5410. "h": 11,
  5411. "w": 24,
  5412. "x": 0,
  5413. "y": 16
  5414. },
  5415. "hiddenSeries": false,
  5416. "id": 195,
  5417. "legend": {
  5418. "alignAsTable": true,
  5419. "avg": false,
  5420. "current": true,
  5421. "hideEmpty": true,
  5422. "hideZero": true,
  5423. "max": false,
  5424. "min": false,
  5425. "rightSide": true,
  5426. "show": true,
  5427. "sort": "current",
  5428. "sortDesc": true,
  5429. "total": false,
  5430. "values": true
  5431. },
  5432. "lines": true,
  5433. "linewidth": 1,
  5434. "nullPointMode": "null",
  5435. "options": {
  5436. "alertThreshold": true
  5437. },
  5438. "percentage": false,
  5439. "pluginVersion": "8.1.2",
  5440. "pointradius": 2,
  5441. "points": false,
  5442. "renderer": "flot",
  5443. "seriesOverrides": [],
  5444. "spaceLength": 10,
  5445. "stack": false,
  5446. "steppedLine": false,
  5447. "targets": [
  5448. {
  5449. "expr": "sort_desc(topk(10, pg_total_relation_size_bytes{instance=~\"${instance}:9187\"}))",
  5450. "interval": "",
  5451. "legendFormat": "Database: {{datname}}, Schema: {{schemaname}}, Table: {{relname}}",
  5452. "refId": "A"
  5453. }
  5454. ],
  5455. "thresholds": [],
  5456. "timeFrom": null,
  5457. "timeRegions": [],
  5458. "timeShift": null,
  5459. "title": "Top 10 bigger tables",
  5460. "tooltip": {
  5461. "shared": true,
  5462. "sort": 2,
  5463. "value_type": "individual"
  5464. },
  5465. "type": "graph",
  5466. "xaxis": {
  5467. "buckets": null,
  5468. "mode": "time",
  5469. "name": null,
  5470. "show": true,
  5471. "values": []
  5472. },
  5473. "yaxes": [
  5474. {
  5475. "format": "bytes",
  5476. "label": null,
  5477. "logBase": 1,
  5478. "max": null,
  5479. "min": null,
  5480. "show": true
  5481. },
  5482. {
  5483. "format": "short",
  5484. "label": null,
  5485. "logBase": 1,
  5486. "max": null,
  5487. "min": null,
  5488. "show": true
  5489. }
  5490. ],
  5491. "yaxis": {
  5492. "align": false,
  5493. "alignLevel": null
  5494. }
  5495. }
  5496. ],
  5497. "title": "Database Size",
  5498. "type": "row"
  5499. },
  5500. {
  5501. "collapsed": true,
  5502. "datasource": "${DS_PROMETHEUS}",
  5503. "fieldConfig": {
  5504. "defaults": {},
  5505. "overrides": []
  5506. },
  5507. "gridPos": {
  5508. "h": 1,
  5509. "w": 24,
  5510. "x": 0,
  5511. "y": 8
  5512. },
  5513. "id": 116,
  5514. "panels": [
  5515. {
  5516. "aliasColors": {},
  5517. "bars": false,
  5518. "dashLength": 10,
  5519. "dashes": false,
  5520. "datasource": "${DS_PROMETHEUS}",
  5521. "decimals": 0,
  5522. "fieldConfig": {
  5523. "defaults": {
  5524. "links": []
  5525. },
  5526. "overrides": []
  5527. },
  5528. "fill": 1,
  5529. "fillGradient": 0,
  5530. "gridPos": {
  5531. "h": 8,
  5532. "w": 12,
  5533. "x": 0,
  5534. "y": 9
  5535. },
  5536. "hiddenSeries": false,
  5537. "id": 122,
  5538. "legend": {
  5539. "alignAsTable": true,
  5540. "avg": true,
  5541. "current": true,
  5542. "hideZero": true,
  5543. "max": false,
  5544. "min": false,
  5545. "rightSide": false,
  5546. "show": true,
  5547. "sort": "current",
  5548. "sortDesc": true,
  5549. "total": false,
  5550. "values": true
  5551. },
  5552. "lines": true,
  5553. "linewidth": 1,
  5554. "nullPointMode": "null",
  5555. "options": {
  5556. "alertThreshold": true
  5557. },
  5558. "percentage": false,
  5559. "pluginVersion": "8.1.2",
  5560. "pointradius": 2,
  5561. "points": false,
  5562. "renderer": "flot",
  5563. "seriesOverrides": [],
  5564. "spaceLength": 10,
  5565. "stack": false,
  5566. "steppedLine": false,
  5567. "targets": [
  5568. {
  5569. "expr": "topk(10, sum by (relname, instance,datname,schemaname) (rate(pg_stat_user_tables_idx_scan{instance=~\"${instance}:9187\"}[5m])) + sum by (relname, instance,datname,schemaname) (rate(pg_stat_user_tables_seq_scan{instance=~\"${instance}:9187\"}[5m])))",
  5570. "interval": "",
  5571. "legendFormat": "Database: {{datname}}, Schema: {{schemaname}}, Table: {{relname}}",
  5572. "refId": "A"
  5573. }
  5574. ],
  5575. "thresholds": [],
  5576. "timeFrom": null,
  5577. "timeRegions": [],
  5578. "timeShift": null,
  5579. "title": "More Consulted Tables (Top 10)",
  5580. "tooltip": {
  5581. "shared": true,
  5582. "sort": 2,
  5583. "value_type": "individual"
  5584. },
  5585. "type": "graph",
  5586. "xaxis": {
  5587. "buckets": null,
  5588. "mode": "time",
  5589. "name": null,
  5590. "show": true,
  5591. "values": []
  5592. },
  5593. "yaxes": [
  5594. {
  5595. "decimals": 0,
  5596. "format": "short",
  5597. "label": null,
  5598. "logBase": 1,
  5599. "max": null,
  5600. "min": null,
  5601. "show": true
  5602. },
  5603. {
  5604. "decimals": 0,
  5605. "format": "short",
  5606. "label": null,
  5607. "logBase": 1,
  5608. "max": null,
  5609. "min": null,
  5610. "show": true
  5611. }
  5612. ],
  5613. "yaxis": {
  5614. "align": false,
  5615. "alignLevel": null
  5616. }
  5617. },
  5618. {
  5619. "aliasColors": {},
  5620. "bars": false,
  5621. "dashLength": 10,
  5622. "dashes": false,
  5623. "datasource": "${DS_PROMETHEUS}",
  5624. "decimals": 0,
  5625. "fieldConfig": {
  5626. "defaults": {
  5627. "links": []
  5628. },
  5629. "overrides": []
  5630. },
  5631. "fill": 1,
  5632. "fillGradient": 0,
  5633. "gridPos": {
  5634. "h": 8,
  5635. "w": 12,
  5636. "x": 12,
  5637. "y": 9
  5638. },
  5639. "hiddenSeries": false,
  5640. "id": 124,
  5641. "legend": {
  5642. "alignAsTable": true,
  5643. "avg": true,
  5644. "current": true,
  5645. "hideEmpty": true,
  5646. "hideZero": true,
  5647. "max": false,
  5648. "min": false,
  5649. "rightSide": false,
  5650. "show": true,
  5651. "sort": "current",
  5652. "sortDesc": true,
  5653. "total": false,
  5654. "values": true
  5655. },
  5656. "lines": true,
  5657. "linewidth": 1,
  5658. "nullPointMode": "null",
  5659. "options": {
  5660. "alertThreshold": true
  5661. },
  5662. "percentage": false,
  5663. "pluginVersion": "8.1.2",
  5664. "pointradius": 2,
  5665. "points": false,
  5666. "renderer": "flot",
  5667. "seriesOverrides": [],
  5668. "spaceLength": 10,
  5669. "stack": false,
  5670. "steppedLine": false,
  5671. "targets": [
  5672. {
  5673. "expr": "topk(10, rate(pg_stat_user_tables_n_tup_ins{instance=~\"${instance}:9187\"}[5m]))",
  5674. "interval": "",
  5675. "legendFormat": "Database: {{datname}}, Schema: {{schemaname}}, Table: {{relname}}",
  5676. "refId": "A"
  5677. }
  5678. ],
  5679. "thresholds": [],
  5680. "timeFrom": null,
  5681. "timeRegions": [],
  5682. "timeShift": null,
  5683. "title": "Table with more inserts (Top 10)",
  5684. "tooltip": {
  5685. "shared": true,
  5686. "sort": 2,
  5687. "value_type": "individual"
  5688. },
  5689. "type": "graph",
  5690. "xaxis": {
  5691. "buckets": null,
  5692. "mode": "time",
  5693. "name": null,
  5694. "show": true,
  5695. "values": []
  5696. },
  5697. "yaxes": [
  5698. {
  5699. "decimals": 0,
  5700. "format": "short",
  5701. "label": null,
  5702. "logBase": 1,
  5703. "max": null,
  5704. "min": null,
  5705. "show": true
  5706. },
  5707. {
  5708. "decimals": 0,
  5709. "format": "short",
  5710. "label": null,
  5711. "logBase": 1,
  5712. "max": null,
  5713. "min": null,
  5714. "show": true
  5715. }
  5716. ],
  5717. "yaxis": {
  5718. "align": false,
  5719. "alignLevel": null
  5720. }
  5721. },
  5722. {
  5723. "aliasColors": {},
  5724. "bars": false,
  5725. "dashLength": 10,
  5726. "dashes": false,
  5727. "datasource": "${DS_PROMETHEUS}",
  5728. "decimals": 0,
  5729. "fieldConfig": {
  5730. "defaults": {
  5731. "links": []
  5732. },
  5733. "overrides": []
  5734. },
  5735. "fill": 1,
  5736. "fillGradient": 0,
  5737. "gridPos": {
  5738. "h": 8,
  5739. "w": 12,
  5740. "x": 0,
  5741. "y": 17
  5742. },
  5743. "hiddenSeries": false,
  5744. "id": 128,
  5745. "legend": {
  5746. "alignAsTable": true,
  5747. "avg": true,
  5748. "current": true,
  5749. "hideEmpty": true,
  5750. "hideZero": true,
  5751. "max": false,
  5752. "min": false,
  5753. "rightSide": false,
  5754. "show": true,
  5755. "sort": "current",
  5756. "sortDesc": true,
  5757. "total": false,
  5758. "values": true
  5759. },
  5760. "lines": true,
  5761. "linewidth": 1,
  5762. "nullPointMode": "null",
  5763. "options": {
  5764. "alertThreshold": true
  5765. },
  5766. "percentage": false,
  5767. "pluginVersion": "8.1.2",
  5768. "pointradius": 2,
  5769. "points": false,
  5770. "renderer": "flot",
  5771. "seriesOverrides": [],
  5772. "spaceLength": 10,
  5773. "stack": false,
  5774. "steppedLine": false,
  5775. "targets": [
  5776. {
  5777. "expr": "topk(10, rate(pg_stat_user_tables_n_tup_upd{instance=~\"${instance}:9187\"}[5m]))",
  5778. "interval": "",
  5779. "legendFormat": "Database: {{datname}}, Schema: {{schemaname}}, Table: {{relname}}",
  5780. "refId": "A"
  5781. }
  5782. ],
  5783. "thresholds": [],
  5784. "timeFrom": null,
  5785. "timeRegions": [],
  5786. "timeShift": null,
  5787. "title": "Tables with more UPDATE operations (Top 10)",
  5788. "tooltip": {
  5789. "shared": true,
  5790. "sort": 2,
  5791. "value_type": "individual"
  5792. },
  5793. "type": "graph",
  5794. "xaxis": {
  5795. "buckets": null,
  5796. "mode": "time",
  5797. "name": null,
  5798. "show": true,
  5799. "values": []
  5800. },
  5801. "yaxes": [
  5802. {
  5803. "decimals": 0,
  5804. "format": "short",
  5805. "label": "",
  5806. "logBase": 1,
  5807. "max": null,
  5808. "min": null,
  5809. "show": true
  5810. },
  5811. {
  5812. "decimals": 0,
  5813. "format": "short",
  5814. "label": null,
  5815. "logBase": 1,
  5816. "max": null,
  5817. "min": null,
  5818. "show": true
  5819. }
  5820. ],
  5821. "yaxis": {
  5822. "align": false,
  5823. "alignLevel": null
  5824. }
  5825. },
  5826. {
  5827. "aliasColors": {},
  5828. "bars": false,
  5829. "dashLength": 10,
  5830. "dashes": false,
  5831. "datasource": "${DS_PROMETHEUS}",
  5832. "fieldConfig": {
  5833. "defaults": {
  5834. "links": []
  5835. },
  5836. "overrides": []
  5837. },
  5838. "fill": 1,
  5839. "fillGradient": 0,
  5840. "gridPos": {
  5841. "h": 8,
  5842. "w": 12,
  5843. "x": 12,
  5844. "y": 17
  5845. },
  5846. "hiddenSeries": false,
  5847. "id": 126,
  5848. "legend": {
  5849. "alignAsTable": true,
  5850. "avg": true,
  5851. "current": true,
  5852. "hideEmpty": true,
  5853. "hideZero": true,
  5854. "max": false,
  5855. "min": false,
  5856. "rightSide": false,
  5857. "show": true,
  5858. "sort": "current",
  5859. "sortDesc": true,
  5860. "total": false,
  5861. "values": true
  5862. },
  5863. "lines": true,
  5864. "linewidth": 1,
  5865. "nullPointMode": "null",
  5866. "options": {
  5867. "alertThreshold": true
  5868. },
  5869. "percentage": false,
  5870. "pluginVersion": "8.1.2",
  5871. "pointradius": 2,
  5872. "points": false,
  5873. "renderer": "flot",
  5874. "seriesOverrides": [],
  5875. "spaceLength": 10,
  5876. "stack": false,
  5877. "steppedLine": false,
  5878. "targets": [
  5879. {
  5880. "expr": "topk(10, rate(pg_stat_user_tables_n_tup_del{instance=~\"${instance}:9187\"}[5m]))",
  5881. "interval": "",
  5882. "legendFormat": "Database: {{datname}}, Schema: {{schemaname}}, Table: {{relname}}",
  5883. "refId": "A"
  5884. }
  5885. ],
  5886. "thresholds": [],
  5887. "timeFrom": null,
  5888. "timeRegions": [],
  5889. "timeShift": null,
  5890. "title": "Tables with more DELETE operations (Top 10)",
  5891. "tooltip": {
  5892. "shared": true,
  5893. "sort": 2,
  5894. "value_type": "individual"
  5895. },
  5896. "type": "graph",
  5897. "xaxis": {
  5898. "buckets": null,
  5899. "mode": "time",
  5900. "name": null,
  5901. "show": true,
  5902. "values": []
  5903. },
  5904. "yaxes": [
  5905. {
  5906. "format": "short",
  5907. "label": null,
  5908. "logBase": 1,
  5909. "max": null,
  5910. "min": null,
  5911. "show": true
  5912. },
  5913. {
  5914. "format": "short",
  5915. "label": null,
  5916. "logBase": 1,
  5917. "max": null,
  5918. "min": null,
  5919. "show": true
  5920. }
  5921. ],
  5922. "yaxis": {
  5923. "align": false,
  5924. "alignLevel": null
  5925. }
  5926. }
  5927. ],
  5928. "title": "Usage Stats",
  5929. "type": "row"
  5930. },
  5931. {
  5932. "collapsed": true,
  5933. "datasource": "${DS_PROMETHEUS}",
  5934. "fieldConfig": {
  5935. "defaults": {},
  5936. "overrides": []
  5937. },
  5938. "gridPos": {
  5939. "h": 1,
  5940. "w": 24,
  5941. "x": 0,
  5942. "y": 9
  5943. },
  5944. "id": 130,
  5945. "panels": [
  5946. {
  5947. "aliasColors": {},
  5948. "bars": false,
  5949. "dashLength": 10,
  5950. "dashes": false,
  5951. "datasource": "${DS_PROMETHEUS}",
  5952. "fieldConfig": {
  5953. "defaults": {
  5954. "links": []
  5955. },
  5956. "overrides": []
  5957. },
  5958. "fill": 1,
  5959. "fillGradient": 0,
  5960. "gridPos": {
  5961. "h": 8,
  5962. "w": 12,
  5963. "x": 0,
  5964. "y": 10
  5965. },
  5966. "hiddenSeries": false,
  5967. "id": 205,
  5968. "legend": {
  5969. "alignAsTable": true,
  5970. "avg": false,
  5971. "current": true,
  5972. "max": false,
  5973. "min": false,
  5974. "show": true,
  5975. "sort": "current",
  5976. "sortDesc": true,
  5977. "total": false,
  5978. "values": true
  5979. },
  5980. "lines": true,
  5981. "linewidth": 1,
  5982. "nullPointMode": "null",
  5983. "options": {
  5984. "alertThreshold": true
  5985. },
  5986. "percentage": false,
  5987. "pluginVersion": "8.1.2",
  5988. "pointradius": 2,
  5989. "points": false,
  5990. "renderer": "flot",
  5991. "seriesOverrides": [],
  5992. "spaceLength": 10,
  5993. "stack": false,
  5994. "steppedLine": false,
  5995. "targets": [
  5996. {
  5997. "expr": "topk(20, pg_index_bloat_size{instance=~\"${instance}:9187\"})",
  5998. "interval": "",
  5999. "legendFormat": "Database: {{datname}}, Schema: {{schema_name}}, Table: {{tblname}}, Index: {{idxname}}",
  6000. "refId": "A"
  6001. }
  6002. ],
  6003. "thresholds": [],
  6004. "timeFrom": null,
  6005. "timeRegions": [],
  6006. "timeShift": null,
  6007. "title": "Index bloat Size (Top 20)",
  6008. "tooltip": {
  6009. "shared": true,
  6010. "sort": 2,
  6011. "value_type": "individual"
  6012. },
  6013. "type": "graph",
  6014. "xaxis": {
  6015. "buckets": null,
  6016. "mode": "time",
  6017. "name": null,
  6018. "show": true,
  6019. "values": []
  6020. },
  6021. "yaxes": [
  6022. {
  6023. "format": "bytes",
  6024. "label": null,
  6025. "logBase": 1,
  6026. "max": null,
  6027. "min": null,
  6028. "show": true
  6029. },
  6030. {
  6031. "format": "bytes",
  6032. "label": null,
  6033. "logBase": 1,
  6034. "max": null,
  6035. "min": null,
  6036. "show": true
  6037. }
  6038. ],
  6039. "yaxis": {
  6040. "align": false,
  6041. "alignLevel": null
  6042. }
  6043. },
  6044. {
  6045. "aliasColors": {},
  6046. "bars": false,
  6047. "dashLength": 10,
  6048. "dashes": false,
  6049. "datasource": "${DS_PROMETHEUS}",
  6050. "description": "",
  6051. "fieldConfig": {
  6052. "defaults": {
  6053. "links": []
  6054. },
  6055. "overrides": []
  6056. },
  6057. "fill": 1,
  6058. "fillGradient": 0,
  6059. "gridPos": {
  6060. "h": 8,
  6061. "w": 12,
  6062. "x": 12,
  6063. "y": 10
  6064. },
  6065. "hiddenSeries": false,
  6066. "id": 207,
  6067. "legend": {
  6068. "alignAsTable": true,
  6069. "avg": false,
  6070. "current": true,
  6071. "max": false,
  6072. "min": false,
  6073. "show": true,
  6074. "sort": "current",
  6075. "sortDesc": true,
  6076. "total": false,
  6077. "values": true
  6078. },
  6079. "lines": true,
  6080. "linewidth": 1,
  6081. "nullPointMode": "null",
  6082. "options": {
  6083. "alertThreshold": true
  6084. },
  6085. "percentage": false,
  6086. "pluginVersion": "8.1.2",
  6087. "pointradius": 2,
  6088. "points": false,
  6089. "renderer": "flot",
  6090. "seriesOverrides": [],
  6091. "spaceLength": 10,
  6092. "stack": false,
  6093. "steppedLine": false,
  6094. "targets": [
  6095. {
  6096. "expr": "topk(20, pg_index_real_size{instance=~\"${instance}:9187\"})",
  6097. "interval": "",
  6098. "legendFormat": "Database: {{datname}}, Schema: {{schema_name}}, Table: {{tblname}}, Index: {{idxname}}",
  6099. "refId": "A"
  6100. }
  6101. ],
  6102. "thresholds": [],
  6103. "timeFrom": null,
  6104. "timeRegions": [],
  6105. "timeShift": null,
  6106. "title": "Index Size (Top 20)",
  6107. "tooltip": {
  6108. "shared": true,
  6109. "sort": 2,
  6110. "value_type": "individual"
  6111. },
  6112. "type": "graph",
  6113. "xaxis": {
  6114. "buckets": null,
  6115. "mode": "time",
  6116. "name": null,
  6117. "show": true,
  6118. "values": []
  6119. },
  6120. "yaxes": [
  6121. {
  6122. "format": "bytes",
  6123. "label": null,
  6124. "logBase": 1,
  6125. "max": null,
  6126. "min": null,
  6127. "show": true
  6128. },
  6129. {
  6130. "format": "bytes",
  6131. "label": null,
  6132. "logBase": 1,
  6133. "max": null,
  6134. "min": null,
  6135. "show": true
  6136. }
  6137. ],
  6138. "yaxis": {
  6139. "align": false,
  6140. "alignLevel": null
  6141. }
  6142. },
  6143. {
  6144. "aliasColors": {},
  6145. "bars": false,
  6146. "dashLength": 10,
  6147. "dashes": false,
  6148. "datasource": "${DS_PROMETHEUS}",
  6149. "decimals": 2,
  6150. "fieldConfig": {
  6151. "defaults": {
  6152. "links": []
  6153. },
  6154. "overrides": []
  6155. },
  6156. "fill": 1,
  6157. "fillGradient": 0,
  6158. "gridPos": {
  6159. "h": 8,
  6160. "w": 24,
  6161. "x": 0,
  6162. "y": 18
  6163. },
  6164. "hiddenSeries": false,
  6165. "id": 209,
  6166. "legend": {
  6167. "alignAsTable": true,
  6168. "avg": false,
  6169. "current": true,
  6170. "max": false,
  6171. "min": false,
  6172. "show": true,
  6173. "sort": "current",
  6174. "sortDesc": true,
  6175. "total": false,
  6176. "values": true
  6177. },
  6178. "lines": true,
  6179. "linewidth": 1,
  6180. "nullPointMode": "null",
  6181. "options": {
  6182. "alertThreshold": true
  6183. },
  6184. "percentage": false,
  6185. "pluginVersion": "8.1.2",
  6186. "pointradius": 2,
  6187. "points": false,
  6188. "renderer": "flot",
  6189. "seriesOverrides": [],
  6190. "spaceLength": 10,
  6191. "stack": false,
  6192. "steppedLine": false,
  6193. "targets": [
  6194. {
  6195. "expr": "topk(10, pg_index_bloat_ratio{instance=~\"${instance}:9187\"})",
  6196. "interval": "",
  6197. "legendFormat": "Database: {{datname}}, Schema: {{schema_name}}, Table: {{tblname}}, Index: {{idxname}}",
  6198. "refId": "A"
  6199. }
  6200. ],
  6201. "thresholds": [],
  6202. "timeFrom": null,
  6203. "timeRegions": [],
  6204. "timeShift": null,
  6205. "title": "Index Bloat Ratio (Top 20)",
  6206. "tooltip": {
  6207. "shared": true,
  6208. "sort": 2,
  6209. "value_type": "individual"
  6210. },
  6211. "type": "graph",
  6212. "xaxis": {
  6213. "buckets": null,
  6214. "mode": "time",
  6215. "name": null,
  6216. "show": true,
  6217. "values": []
  6218. },
  6219. "yaxes": [
  6220. {
  6221. "decimals": null,
  6222. "format": "short",
  6223. "label": null,
  6224. "logBase": 1,
  6225. "max": null,
  6226. "min": null,
  6227. "show": true
  6228. },
  6229. {
  6230. "decimals": null,
  6231. "format": "short",
  6232. "label": null,
  6233. "logBase": 1,
  6234. "max": null,
  6235. "min": null,
  6236. "show": true
  6237. }
  6238. ],
  6239. "yaxis": {
  6240. "align": false,
  6241. "alignLevel": null
  6242. }
  6243. }
  6244. ],
  6245. "title": "Index Bloat",
  6246. "type": "row"
  6247. },
  6248. {
  6249. "collapsed": true,
  6250. "datasource": "${DS_PROMETHEUS}",
  6251. "fieldConfig": {
  6252. "defaults": {},
  6253. "overrides": []
  6254. },
  6255. "gridPos": {
  6256. "h": 1,
  6257. "w": 24,
  6258. "x": 0,
  6259. "y": 10
  6260. },
  6261. "id": 104,
  6262. "panels": [
  6263. {
  6264. "aliasColors": {},
  6265. "bars": false,
  6266. "dashLength": 10,
  6267. "dashes": false,
  6268. "datasource": "${DS_PROMETHEUS}",
  6269. "decimals": 0,
  6270. "fieldConfig": {
  6271. "defaults": {
  6272. "links": []
  6273. },
  6274. "overrides": []
  6275. },
  6276. "fill": 1,
  6277. "fillGradient": 0,
  6278. "gridPos": {
  6279. "h": 8,
  6280. "w": 12,
  6281. "x": 0,
  6282. "y": 11
  6283. },
  6284. "hiddenSeries": false,
  6285. "id": 106,
  6286. "legend": {
  6287. "alignAsTable": true,
  6288. "avg": true,
  6289. "current": true,
  6290. "hideEmpty": true,
  6291. "hideZero": true,
  6292. "max": false,
  6293. "min": false,
  6294. "rightSide": false,
  6295. "show": true,
  6296. "sort": "current",
  6297. "sortDesc": true,
  6298. "total": false,
  6299. "values": true
  6300. },
  6301. "lines": true,
  6302. "linewidth": 2,
  6303. "nullPointMode": "null",
  6304. "options": {
  6305. "alertThreshold": true
  6306. },
  6307. "percentage": false,
  6308. "pluginVersion": "8.1.2",
  6309. "pointradius": 2,
  6310. "points": false,
  6311. "renderer": "flot",
  6312. "seriesOverrides": [],
  6313. "spaceLength": 10,
  6314. "stack": false,
  6315. "steppedLine": false,
  6316. "targets": [
  6317. {
  6318. "expr": "topk(10, rate(pg_stat_user_tables_n_dead_tup{instance=~\"${instance}:9187\"}[5m])*300)",
  6319. "interval": "",
  6320. "legendFormat": "Database: {{datname}}, Schema: {{schemaname}}, Table: {{relname}}",
  6321. "refId": "A"
  6322. }
  6323. ],
  6324. "thresholds": [],
  6325. "timeFrom": null,
  6326. "timeRegions": [],
  6327. "timeShift": null,
  6328. "title": "Dead tuples (top 10)",
  6329. "tooltip": {
  6330. "shared": true,
  6331. "sort": 2,
  6332. "value_type": "individual"
  6333. },
  6334. "type": "graph",
  6335. "xaxis": {
  6336. "buckets": null,
  6337. "mode": "time",
  6338. "name": null,
  6339. "show": true,
  6340. "values": []
  6341. },
  6342. "yaxes": [
  6343. {
  6344. "decimals": 0,
  6345. "format": "short",
  6346. "label": null,
  6347. "logBase": 1,
  6348. "max": null,
  6349. "min": null,
  6350. "show": true
  6351. },
  6352. {
  6353. "decimals": 0,
  6354. "format": "short",
  6355. "label": null,
  6356. "logBase": 1,
  6357. "max": null,
  6358. "min": null,
  6359. "show": true
  6360. }
  6361. ],
  6362. "yaxis": {
  6363. "align": false,
  6364. "alignLevel": null
  6365. }
  6366. },
  6367. {
  6368. "aliasColors": {},
  6369. "bars": false,
  6370. "dashLength": 10,
  6371. "dashes": false,
  6372. "datasource": "${DS_PROMETHEUS}",
  6373. "decimals": 2,
  6374. "fieldConfig": {
  6375. "defaults": {
  6376. "links": []
  6377. },
  6378. "overrides": []
  6379. },
  6380. "fill": 1,
  6381. "fillGradient": 0,
  6382. "gridPos": {
  6383. "h": 8,
  6384. "w": 12,
  6385. "x": 12,
  6386. "y": 11
  6387. },
  6388. "hiddenSeries": false,
  6389. "id": 199,
  6390. "legend": {
  6391. "alignAsTable": true,
  6392. "avg": true,
  6393. "current": true,
  6394. "hideEmpty": true,
  6395. "hideZero": true,
  6396. "max": false,
  6397. "min": false,
  6398. "rightSide": false,
  6399. "show": true,
  6400. "sort": "current",
  6401. "sortDesc": true,
  6402. "total": false,
  6403. "values": true
  6404. },
  6405. "lines": true,
  6406. "linewidth": 2,
  6407. "nullPointMode": "null",
  6408. "options": {
  6409. "alertThreshold": true
  6410. },
  6411. "percentage": false,
  6412. "pluginVersion": "8.1.2",
  6413. "pointradius": 2,
  6414. "points": false,
  6415. "renderer": "flot",
  6416. "seriesOverrides": [],
  6417. "spaceLength": 10,
  6418. "stack": false,
  6419. "steppedLine": false,
  6420. "targets": [
  6421. {
  6422. "expr": "topk(20, pg_table_bloat_bloat_ratio{instance=~\"${instance}:9187\"})",
  6423. "interval": "",
  6424. "legendFormat": "Database: {{datname}}, Schema:{{schemaname}}, Table: {{tablename}}",
  6425. "refId": "A"
  6426. }
  6427. ],
  6428. "thresholds": [],
  6429. "timeFrom": null,
  6430. "timeRegions": [],
  6431. "timeShift": null,
  6432. "title": "Table Bloat Ratio (top 20)",
  6433. "tooltip": {
  6434. "shared": true,
  6435. "sort": 2,
  6436. "value_type": "individual"
  6437. },
  6438. "type": "graph",
  6439. "xaxis": {
  6440. "buckets": null,
  6441. "mode": "time",
  6442. "name": null,
  6443. "show": true,
  6444. "values": []
  6445. },
  6446. "yaxes": [
  6447. {
  6448. "decimals": null,
  6449. "format": "short",
  6450. "label": null,
  6451. "logBase": 1,
  6452. "max": null,
  6453. "min": null,
  6454. "show": true
  6455. },
  6456. {
  6457. "decimals": null,
  6458. "format": "short",
  6459. "label": null,
  6460. "logBase": 1,
  6461. "max": null,
  6462. "min": null,
  6463. "show": true
  6464. }
  6465. ],
  6466. "yaxis": {
  6467. "align": false,
  6468. "alignLevel": null
  6469. }
  6470. },
  6471. {
  6472. "aliasColors": {},
  6473. "bars": false,
  6474. "dashLength": 10,
  6475. "dashes": false,
  6476. "datasource": "${DS_PROMETHEUS}",
  6477. "decimals": 2,
  6478. "fieldConfig": {
  6479. "defaults": {
  6480. "links": []
  6481. },
  6482. "overrides": []
  6483. },
  6484. "fill": 1,
  6485. "fillGradient": 0,
  6486. "gridPos": {
  6487. "h": 8,
  6488. "w": 12,
  6489. "x": 0,
  6490. "y": 19
  6491. },
  6492. "hiddenSeries": false,
  6493. "id": 201,
  6494. "legend": {
  6495. "alignAsTable": true,
  6496. "avg": false,
  6497. "current": true,
  6498. "max": false,
  6499. "min": false,
  6500. "rightSide": false,
  6501. "show": true,
  6502. "sort": "current",
  6503. "sortDesc": true,
  6504. "total": false,
  6505. "values": true
  6506. },
  6507. "lines": true,
  6508. "linewidth": 1,
  6509. "nullPointMode": "null",
  6510. "options": {
  6511. "alertThreshold": true
  6512. },
  6513. "percentage": false,
  6514. "pluginVersion": "8.1.2",
  6515. "pointradius": 2,
  6516. "points": false,
  6517. "renderer": "flot",
  6518. "seriesOverrides": [],
  6519. "spaceLength": 10,
  6520. "stack": false,
  6521. "steppedLine": false,
  6522. "targets": [
  6523. {
  6524. "expr": "topk(20, pg_table_bloat_bloat_size{instance=~\"${instance}:9187\"})",
  6525. "interval": "",
  6526. "legendFormat": "Database: {{datname}}, Schema: {{schemaname}}, Table: {{tablename}}",
  6527. "refId": "A"
  6528. }
  6529. ],
  6530. "thresholds": [],
  6531. "timeFrom": null,
  6532. "timeRegions": [],
  6533. "timeShift": null,
  6534. "title": "Table Bloat Size",
  6535. "tooltip": {
  6536. "shared": true,
  6537. "sort": 2,
  6538. "value_type": "individual"
  6539. },
  6540. "type": "graph",
  6541. "xaxis": {
  6542. "buckets": null,
  6543. "mode": "time",
  6544. "name": null,
  6545. "show": true,
  6546. "values": []
  6547. },
  6548. "yaxes": [
  6549. {
  6550. "decimals": 2,
  6551. "format": "bytes",
  6552. "label": null,
  6553. "logBase": 1,
  6554. "max": null,
  6555. "min": null,
  6556. "show": true
  6557. },
  6558. {
  6559. "decimals": 2,
  6560. "format": "bytes",
  6561. "label": null,
  6562. "logBase": 1,
  6563. "max": null,
  6564. "min": null,
  6565. "show": true
  6566. }
  6567. ],
  6568. "yaxis": {
  6569. "align": false,
  6570. "alignLevel": null
  6571. }
  6572. },
  6573. {
  6574. "aliasColors": {},
  6575. "bars": false,
  6576. "dashLength": 10,
  6577. "dashes": false,
  6578. "datasource": "${DS_PROMETHEUS}",
  6579. "decimals": 2,
  6580. "fieldConfig": {
  6581. "defaults": {
  6582. "links": []
  6583. },
  6584. "overrides": []
  6585. },
  6586. "fill": 1,
  6587. "fillGradient": 0,
  6588. "gridPos": {
  6589. "h": 8,
  6590. "w": 12,
  6591. "x": 12,
  6592. "y": 19
  6593. },
  6594. "hiddenSeries": false,
  6595. "id": 203,
  6596. "legend": {
  6597. "alignAsTable": true,
  6598. "avg": true,
  6599. "current": true,
  6600. "max": false,
  6601. "min": false,
  6602. "show": true,
  6603. "sort": "current",
  6604. "sortDesc": true,
  6605. "total": false,
  6606. "values": true
  6607. },
  6608. "lines": true,
  6609. "linewidth": 1,
  6610. "nullPointMode": "null",
  6611. "options": {
  6612. "alertThreshold": true
  6613. },
  6614. "percentage": false,
  6615. "pluginVersion": "8.1.2",
  6616. "pointradius": 2,
  6617. "points": false,
  6618. "renderer": "flot",
  6619. "seriesOverrides": [],
  6620. "spaceLength": 10,
  6621. "stack": false,
  6622. "steppedLine": false,
  6623. "targets": [
  6624. {
  6625. "expr": "topk(20, pg_table_bloat_extra_size{instance=~\"${instance}:9187\"})",
  6626. "interval": "",
  6627. "legendFormat": "Database: {{datname}}, Schema: {{schemaname}}, Table: {{tablename}}",
  6628. "refId": "A"
  6629. }
  6630. ],
  6631. "thresholds": [],
  6632. "timeFrom": null,
  6633. "timeRegions": [],
  6634. "timeShift": null,
  6635. "title": "Table pages Extra size (Top 20)",
  6636. "tooltip": {
  6637. "shared": true,
  6638. "sort": 2,
  6639. "value_type": "individual"
  6640. },
  6641. "type": "graph",
  6642. "xaxis": {
  6643. "buckets": null,
  6644. "mode": "time",
  6645. "name": null,
  6646. "show": true,
  6647. "values": []
  6648. },
  6649. "yaxes": [
  6650. {
  6651. "decimals": 2,
  6652. "format": "bytes",
  6653. "label": null,
  6654. "logBase": 1,
  6655. "max": null,
  6656. "min": null,
  6657. "show": true
  6658. },
  6659. {
  6660. "decimals": 2,
  6661. "format": "bytes",
  6662. "label": null,
  6663. "logBase": 1,
  6664. "max": null,
  6665. "min": null,
  6666. "show": true
  6667. }
  6668. ],
  6669. "yaxis": {
  6670. "align": false,
  6671. "alignLevel": null
  6672. }
  6673. }
  6674. ],
  6675. "title": "Table Bloat",
  6676. "type": "row"
  6677. },
  6678. {
  6679. "collapsed": true,
  6680. "datasource": "${DS_PROMETHEUS}",
  6681. "fieldConfig": {
  6682. "defaults": {},
  6683. "overrides": []
  6684. },
  6685. "gridPos": {
  6686. "h": 1,
  6687. "w": 24,
  6688. "x": 0,
  6689. "y": 11
  6690. },
  6691. "id": 88,
  6692. "panels": [
  6693. {
  6694. "cacheTimeout": null,
  6695. "datasource": "${DS_PROMETHEUS}",
  6696. "fieldConfig": {
  6697. "defaults": {
  6698. "color": {
  6699. "mode": "thresholds"
  6700. },
  6701. "custom": {},
  6702. "mappings": [
  6703. {
  6704. "options": {
  6705. "match": "null",
  6706. "result": {
  6707. "text": "0"
  6708. }
  6709. },
  6710. "type": "special"
  6711. }
  6712. ],
  6713. "thresholds": {
  6714. "mode": "absolute",
  6715. "steps": [
  6716. {
  6717. "color": "green",
  6718. "value": null
  6719. },
  6720. {
  6721. "color": "red",
  6722. "value": 80
  6723. }
  6724. ]
  6725. },
  6726. "unit": "none"
  6727. },
  6728. "overrides": []
  6729. },
  6730. "gridPos": {
  6731. "h": 3,
  6732. "w": 3,
  6733. "x": 0,
  6734. "y": 12
  6735. },
  6736. "id": 102,
  6737. "interval": null,
  6738. "links": [],
  6739. "maxDataPoints": 100,
  6740. "options": {
  6741. "colorMode": "background",
  6742. "graphMode": "none",
  6743. "justifyMode": "auto",
  6744. "orientation": "horizontal",
  6745. "reduceOptions": {
  6746. "calcs": [
  6747. "lastNotNull"
  6748. ],
  6749. "fields": "",
  6750. "values": false
  6751. },
  6752. "text": {},
  6753. "textMode": "auto"
  6754. },
  6755. "pluginVersion": "7.0.6",
  6756. "targets": [
  6757. {
  6758. "expr": "count(pg_replication_status_lag_size{instance=~\"${instance}:9187\", state=\"streaming\"} and on (instance)(pg_replication_is_replica == 0))",
  6759. "interval": "",
  6760. "legendFormat": "",
  6761. "refId": "A"
  6762. }
  6763. ],
  6764. "timeFrom": null,
  6765. "timeShift": null,
  6766. "title": "Active Replica Nodes",
  6767. "type": "stat"
  6768. },
  6769. {
  6770. "cacheTimeout": null,
  6771. "datasource": "${DS_PROMETHEUS}",
  6772. "fieldConfig": {
  6773. "defaults": {
  6774. "color": {
  6775. "mode": "thresholds"
  6776. },
  6777. "custom": {},
  6778. "mappings": [
  6779. {
  6780. "options": {
  6781. "match": "null",
  6782. "result": {
  6783. "text": "0"
  6784. }
  6785. },
  6786. "type": "special"
  6787. }
  6788. ],
  6789. "thresholds": {
  6790. "mode": "absolute",
  6791. "steps": [
  6792. {
  6793. "color": "green",
  6794. "value": null
  6795. },
  6796. {
  6797. "color": "red",
  6798. "value": 80
  6799. }
  6800. ]
  6801. },
  6802. "unit": "none"
  6803. },
  6804. "overrides": []
  6805. },
  6806. "gridPos": {
  6807. "h": 3,
  6808. "w": 3,
  6809. "x": 3,
  6810. "y": 12
  6811. },
  6812. "id": 198,
  6813. "interval": null,
  6814. "links": [],
  6815. "maxDataPoints": 100,
  6816. "options": {
  6817. "colorMode": "background",
  6818. "graphMode": "none",
  6819. "justifyMode": "auto",
  6820. "orientation": "horizontal",
  6821. "reduceOptions": {
  6822. "calcs": [
  6823. "mean"
  6824. ],
  6825. "fields": "",
  6826. "values": false
  6827. },
  6828. "text": {},
  6829. "textMode": "auto"
  6830. },
  6831. "pluginVersion": "7.0.6",
  6832. "targets": [
  6833. {
  6834. "expr": "count(pg_replication_slots_active{instance=~\"${instance}:9187\"}==1)",
  6835. "refId": "A"
  6836. }
  6837. ],
  6838. "timeFrom": null,
  6839. "timeShift": null,
  6840. "title": "Active Replication Slots",
  6841. "type": "stat"
  6842. },
  6843. {
  6844. "cacheTimeout": null,
  6845. "datasource": "${DS_PROMETHEUS}",
  6846. "fieldConfig": {
  6847. "defaults": {
  6848. "color": {
  6849. "mode": "thresholds"
  6850. },
  6851. "custom": {},
  6852. "mappings": [
  6853. {
  6854. "options": {
  6855. "match": "null",
  6856. "result": {
  6857. "text": "N/A"
  6858. }
  6859. },
  6860. "type": "special"
  6861. }
  6862. ],
  6863. "thresholds": {
  6864. "mode": "absolute",
  6865. "steps": [
  6866. {
  6867. "color": "green",
  6868. "value": null
  6869. },
  6870. {
  6871. "color": "red",
  6872. "value": 80
  6873. }
  6874. ]
  6875. },
  6876. "unit": "none"
  6877. },
  6878. "overrides": []
  6879. },
  6880. "gridPos": {
  6881. "h": 3,
  6882. "w": 6,
  6883. "x": 6,
  6884. "y": 12
  6885. },
  6886. "id": 98,
  6887. "interval": null,
  6888. "links": [],
  6889. "maxDataPoints": 100,
  6890. "options": {
  6891. "colorMode": "none",
  6892. "graphMode": "none",
  6893. "justifyMode": "auto",
  6894. "orientation": "horizontal",
  6895. "reduceOptions": {
  6896. "calcs": [
  6897. "mean"
  6898. ],
  6899. "fields": "",
  6900. "values": false
  6901. },
  6902. "text": {},
  6903. "textMode": "auto"
  6904. },
  6905. "pluginVersion": "7.0.6",
  6906. "targets": [
  6907. {
  6908. "expr": "pg_wal_position_bytes{instance=~\"${instance}:9187\"}",
  6909. "refId": "A"
  6910. }
  6911. ],
  6912. "timeFrom": null,
  6913. "timeShift": null,
  6914. "title": "Current LSN",
  6915. "type": "stat"
  6916. },
  6917. {
  6918. "aliasColors": {},
  6919. "bars": false,
  6920. "dashLength": 10,
  6921. "dashes": false,
  6922. "datasource": "${DS_PROMETHEUS}",
  6923. "fieldConfig": {
  6924. "defaults": {
  6925. "custom": {},
  6926. "links": []
  6927. },
  6928. "overrides": []
  6929. },
  6930. "fill": 1,
  6931. "fillGradient": 0,
  6932. "gridPos": {
  6933. "h": 14,
  6934. "w": 12,
  6935. "x": 12,
  6936. "y": 12
  6937. },
  6938. "hiddenSeries": false,
  6939. "id": 196,
  6940. "legend": {
  6941. "alignAsTable": true,
  6942. "avg": true,
  6943. "current": true,
  6944. "hideEmpty": false,
  6945. "hideZero": false,
  6946. "max": false,
  6947. "min": false,
  6948. "show": true,
  6949. "sort": "current",
  6950. "sortDesc": true,
  6951. "total": false,
  6952. "values": true
  6953. },
  6954. "lines": true,
  6955. "linewidth": 1,
  6956. "nullPointMode": "null",
  6957. "options": {
  6958. "alertThreshold": true,
  6959. "dataLinks": []
  6960. },
  6961. "percentage": false,
  6962. "pluginVersion": "8.1.2",
  6963. "pointradius": 2,
  6964. "points": false,
  6965. "renderer": "flot",
  6966. "seriesOverrides": [],
  6967. "spaceLength": 10,
  6968. "stack": false,
  6969. "steppedLine": false,
  6970. "targets": [
  6971. {
  6972. "expr": "pg_replication_status_lag_size{cluster_name=\"$cluster_name\"} and on (instance)(pg_replication_is_replica == 0)",
  6973. "interval": "",
  6974. "legendFormat": "Replica: {{application_name}}",
  6975. "refId": "A"
  6976. }
  6977. ],
  6978. "thresholds": [],
  6979. "timeFrom": null,
  6980. "timeRegions": [],
  6981. "timeShift": null,
  6982. "title": "Replication lag size",
  6983. "tooltip": {
  6984. "shared": true,
  6985. "sort": 0,
  6986. "value_type": "individual"
  6987. },
  6988. "type": "graph",
  6989. "xaxis": {
  6990. "buckets": null,
  6991. "mode": "time",
  6992. "name": null,
  6993. "show": true,
  6994. "values": []
  6995. },
  6996. "yaxes": [
  6997. {
  6998. "format": "bytes",
  6999. "label": null,
  7000. "logBase": 1,
  7001. "max": null,
  7002. "min": null,
  7003. "show": true
  7004. },
  7005. {
  7006. "format": "bytes",
  7007. "label": null,
  7008. "logBase": 1,
  7009. "max": null,
  7010. "min": null,
  7011. "show": true
  7012. }
  7013. ],
  7014. "yaxis": {
  7015. "align": false,
  7016. "alignLevel": null
  7017. }
  7018. },
  7019. {
  7020. "cacheTimeout": null,
  7021. "datasource": "${DS_PROMETHEUS}",
  7022. "fieldConfig": {
  7023. "defaults": {
  7024. "color": {
  7025. "mode": "thresholds"
  7026. },
  7027. "custom": {},
  7028. "mappings": [
  7029. {
  7030. "options": {
  7031. "match": "null",
  7032. "result": {
  7033. "color": "rgba(237, 129, 40, 0.89)",
  7034. "text": "0"
  7035. }
  7036. },
  7037. "type": "special"
  7038. }
  7039. ],
  7040. "thresholds": {
  7041. "mode": "absolute",
  7042. "steps": [
  7043. {
  7044. "color": "#299c46",
  7045. "value": null
  7046. },
  7047. {
  7048. "color": "rgba(237, 129, 40, 0.89)",
  7049. "value": 0
  7050. },
  7051. {
  7052. "color": "#C4162A",
  7053. "value": 1
  7054. }
  7055. ]
  7056. },
  7057. "unit": "none"
  7058. },
  7059. "overrides": []
  7060. },
  7061. "gridPos": {
  7062. "h": 3,
  7063. "w": 6,
  7064. "x": 0,
  7065. "y": 15
  7066. },
  7067. "id": 197,
  7068. "interval": null,
  7069. "links": [],
  7070. "maxDataPoints": 100,
  7071. "options": {
  7072. "colorMode": "none",
  7073. "graphMode": "none",
  7074. "justifyMode": "auto",
  7075. "orientation": "horizontal",
  7076. "reduceOptions": {
  7077. "calcs": [
  7078. "lastNotNull"
  7079. ],
  7080. "fields": "",
  7081. "values": false
  7082. },
  7083. "text": {},
  7084. "textMode": "auto"
  7085. },
  7086. "pluginVersion": "7.0.6",
  7087. "targets": [
  7088. {
  7089. "expr": "count(pg_replication_status_lag_size{instance=~\"${instance}:9187\", state!=\"streaming\"} and on (instance)(pg_replication_is_replica == 0))",
  7090. "format": "time_series",
  7091. "interval": "",
  7092. "legendFormat": "",
  7093. "refId": "A"
  7094. }
  7095. ],
  7096. "timeFrom": null,
  7097. "timeShift": null,
  7098. "title": "Replica with no streaming status",
  7099. "type": "stat"
  7100. },
  7101. {
  7102. "cacheTimeout": null,
  7103. "datasource": "${DS_PROMETHEUS}",
  7104. "fieldConfig": {
  7105. "defaults": {
  7106. "color": {
  7107. "mode": "thresholds"
  7108. },
  7109. "custom": {},
  7110. "mappings": [
  7111. {
  7112. "options": {
  7113. "match": "null",
  7114. "result": {
  7115. "color": "rgba(237, 129, 40, 0.89)",
  7116. "text": "0"
  7117. }
  7118. },
  7119. "type": "special"
  7120. }
  7121. ],
  7122. "thresholds": {
  7123. "mode": "absolute",
  7124. "steps": [
  7125. {
  7126. "color": "#299c46",
  7127. "value": null
  7128. },
  7129. {
  7130. "color": "rgba(237, 129, 40, 0.89)",
  7131. "value": 0
  7132. },
  7133. {
  7134. "color": "#C4162A",
  7135. "value": 1
  7136. }
  7137. ]
  7138. },
  7139. "unit": "none"
  7140. },
  7141. "overrides": []
  7142. },
  7143. "gridPos": {
  7144. "h": 3,
  7145. "w": 6,
  7146. "x": 6,
  7147. "y": 15
  7148. },
  7149. "id": 100,
  7150. "interval": null,
  7151. "links": [],
  7152. "maxDataPoints": 100,
  7153. "options": {
  7154. "colorMode": "none",
  7155. "graphMode": "none",
  7156. "justifyMode": "auto",
  7157. "orientation": "horizontal",
  7158. "reduceOptions": {
  7159. "calcs": [
  7160. "lastNotNull"
  7161. ],
  7162. "fields": "",
  7163. "values": false
  7164. },
  7165. "text": {},
  7166. "textMode": "auto"
  7167. },
  7168. "pluginVersion": "7.0.6",
  7169. "targets": [
  7170. {
  7171. "expr": "count(pg_replication_slots_active{instance=~\"${instance}:9187\"}==0)",
  7172. "format": "time_series",
  7173. "legendFormat": "",
  7174. "refId": "A"
  7175. }
  7176. ],
  7177. "timeFrom": null,
  7178. "timeShift": null,
  7179. "title": "Inactive Replication Slots",
  7180. "type": "stat"
  7181. },
  7182. {
  7183. "aliasColors": {},
  7184. "bars": false,
  7185. "dashLength": 10,
  7186. "dashes": false,
  7187. "datasource": "${DS_PROMETHEUS}",
  7188. "fieldConfig": {
  7189. "defaults": {
  7190. "custom": {},
  7191. "links": []
  7192. },
  7193. "overrides": []
  7194. },
  7195. "fill": 1,
  7196. "fillGradient": 0,
  7197. "gridPos": {
  7198. "h": 8,
  7199. "w": 12,
  7200. "x": 0,
  7201. "y": 18
  7202. },
  7203. "hiddenSeries": false,
  7204. "id": 90,
  7205. "legend": {
  7206. "alignAsTable": true,
  7207. "avg": true,
  7208. "current": true,
  7209. "max": false,
  7210. "min": false,
  7211. "show": true,
  7212. "total": false,
  7213. "values": true
  7214. },
  7215. "lines": true,
  7216. "linewidth": 1,
  7217. "nullPointMode": "null",
  7218. "options": {
  7219. "alertThreshold": true,
  7220. "dataLinks": []
  7221. },
  7222. "percentage": false,
  7223. "pluginVersion": "8.1.2",
  7224. "pointradius": 2,
  7225. "points": false,
  7226. "renderer": "flot",
  7227. "seriesOverrides": [],
  7228. "spaceLength": 10,
  7229. "stack": false,
  7230. "steppedLine": false,
  7231. "targets": [
  7232. {
  7233. "expr": "pg_replication_lag{cluster_name=\"$cluster_name\"} and on (instance)(pg_replication_is_replica == 1)",
  7234. "interval": "",
  7235. "legendFormat": "Replication lag in pod {{pod}}",
  7236. "refId": "A"
  7237. }
  7238. ],
  7239. "thresholds": [],
  7240. "timeFrom": null,
  7241. "timeRegions": [],
  7242. "timeShift": null,
  7243. "title": "Replication lag (seconds)",
  7244. "tooltip": {
  7245. "shared": true,
  7246. "sort": 0,
  7247. "value_type": "individual"
  7248. },
  7249. "type": "graph",
  7250. "xaxis": {
  7251. "buckets": null,
  7252. "mode": "time",
  7253. "name": null,
  7254. "show": true,
  7255. "values": []
  7256. },
  7257. "yaxes": [
  7258. {
  7259. "format": "s",
  7260. "label": null,
  7261. "logBase": 1,
  7262. "max": null,
  7263. "min": null,
  7264. "show": true
  7265. },
  7266. {
  7267. "format": "short",
  7268. "label": null,
  7269. "logBase": 1,
  7270. "max": null,
  7271. "min": null,
  7272. "show": true
  7273. }
  7274. ],
  7275. "yaxis": {
  7276. "align": false,
  7277. "alignLevel": null
  7278. }
  7279. }
  7280. ],
  7281. "title": "Replication",
  7282. "type": "row"
  7283. },
  7284. {
  7285. "collapsed": true,
  7286. "datasource": "${DS_PROMETHEUS}",
  7287. "fieldConfig": {
  7288. "defaults": {},
  7289. "overrides": []
  7290. },
  7291. "gridPos": {
  7292. "h": 1,
  7293. "w": 24,
  7294. "x": 0,
  7295. "y": 12
  7296. },
  7297. "id": 80,
  7298. "panels": [
  7299. {
  7300. "aliasColors": {},
  7301. "bars": false,
  7302. "dashLength": 10,
  7303. "dashes": false,
  7304. "datasource": "${DS_PROMETHEUS}",
  7305. "decimals": 0,
  7306. "fieldConfig": {
  7307. "defaults": {
  7308. "links": []
  7309. },
  7310. "overrides": []
  7311. },
  7312. "fill": 1,
  7313. "fillGradient": 0,
  7314. "gridPos": {
  7315. "h": 8,
  7316. "w": 11,
  7317. "x": 0,
  7318. "y": 13
  7319. },
  7320. "hiddenSeries": false,
  7321. "id": 82,
  7322. "legend": {
  7323. "alignAsTable": true,
  7324. "avg": true,
  7325. "current": true,
  7326. "hideEmpty": true,
  7327. "hideZero": true,
  7328. "max": false,
  7329. "min": false,
  7330. "show": true,
  7331. "total": false,
  7332. "values": true
  7333. },
  7334. "lines": true,
  7335. "linewidth": 1,
  7336. "nullPointMode": "null",
  7337. "options": {
  7338. "alertThreshold": true
  7339. },
  7340. "percentage": false,
  7341. "pluginVersion": "8.1.2",
  7342. "pointradius": 2,
  7343. "points": false,
  7344. "renderer": "flot",
  7345. "seriesOverrides": [],
  7346. "spaceLength": 10,
  7347. "stack": false,
  7348. "steppedLine": false,
  7349. "targets": [
  7350. {
  7351. "expr": "rate(pg_stat_archiver_archived_count{instance=~\"${instance}:9187\"}[5m])*300",
  7352. "interval": "",
  7353. "legendFormat": "# of WALs archived",
  7354. "refId": "A"
  7355. }
  7356. ],
  7357. "thresholds": [],
  7358. "timeFrom": null,
  7359. "timeRegions": [],
  7360. "timeShift": null,
  7361. "title": "No. WALs files archived",
  7362. "tooltip": {
  7363. "shared": true,
  7364. "sort": 0,
  7365. "value_type": "individual"
  7366. },
  7367. "type": "graph",
  7368. "xaxis": {
  7369. "buckets": null,
  7370. "mode": "time",
  7371. "name": null,
  7372. "show": true,
  7373. "values": []
  7374. },
  7375. "yaxes": [
  7376. {
  7377. "decimals": 0,
  7378. "format": "short",
  7379. "label": null,
  7380. "logBase": 1,
  7381. "max": null,
  7382. "min": null,
  7383. "show": true
  7384. },
  7385. {
  7386. "decimals": 0,
  7387. "format": "short",
  7388. "label": null,
  7389. "logBase": 1,
  7390. "max": null,
  7391. "min": null,
  7392. "show": true
  7393. }
  7394. ],
  7395. "yaxis": {
  7396. "align": false,
  7397. "alignLevel": null
  7398. }
  7399. },
  7400. {
  7401. "aliasColors": {},
  7402. "bars": false,
  7403. "dashLength": 10,
  7404. "dashes": false,
  7405. "datasource": "${DS_PROMETHEUS}",
  7406. "decimals": 0,
  7407. "fieldConfig": {
  7408. "defaults": {
  7409. "links": []
  7410. },
  7411. "overrides": []
  7412. },
  7413. "fill": 1,
  7414. "fillGradient": 0,
  7415. "gridPos": {
  7416. "h": 8,
  7417. "w": 10,
  7418. "x": 11,
  7419. "y": 13
  7420. },
  7421. "hiddenSeries": false,
  7422. "id": 242,
  7423. "legend": {
  7424. "alignAsTable": true,
  7425. "avg": true,
  7426. "current": true,
  7427. "hideEmpty": true,
  7428. "hideZero": true,
  7429. "max": false,
  7430. "min": false,
  7431. "show": true,
  7432. "total": false,
  7433. "values": true
  7434. },
  7435. "lines": true,
  7436. "linewidth": 1,
  7437. "nullPointMode": "null",
  7438. "options": {
  7439. "alertThreshold": true
  7440. },
  7441. "percentage": false,
  7442. "pluginVersion": "8.1.2",
  7443. "pointradius": 2,
  7444. "points": false,
  7445. "renderer": "flot",
  7446. "seriesOverrides": [],
  7447. "spaceLength": 10,
  7448. "stack": false,
  7449. "steppedLine": false,
  7450. "targets": [
  7451. {
  7452. "expr": "rate(pg_stat_archiver_failed_count{instance=~\"${instance}:9187\"}[5m])*300",
  7453. "interval": "",
  7454. "legendFormat": "# Archive attemps",
  7455. "refId": "A"
  7456. }
  7457. ],
  7458. "thresholds": [],
  7459. "timeFrom": null,
  7460. "timeRegions": [],
  7461. "timeShift": null,
  7462. "title": "Number of failed attempts for archiving WAL files",
  7463. "tooltip": {
  7464. "shared": true,
  7465. "sort": 0,
  7466. "value_type": "individual"
  7467. },
  7468. "type": "graph",
  7469. "xaxis": {
  7470. "buckets": null,
  7471. "mode": "time",
  7472. "name": null,
  7473. "show": true,
  7474. "values": []
  7475. },
  7476. "yaxes": [
  7477. {
  7478. "decimals": 0,
  7479. "format": "short",
  7480. "label": null,
  7481. "logBase": 1,
  7482. "max": null,
  7483. "min": null,
  7484. "show": true
  7485. },
  7486. {
  7487. "decimals": 0,
  7488. "format": "short",
  7489. "label": null,
  7490. "logBase": 1,
  7491. "max": null,
  7492. "min": null,
  7493. "show": true
  7494. }
  7495. ],
  7496. "yaxis": {
  7497. "align": false,
  7498. "alignLevel": null
  7499. }
  7500. },
  7501. {
  7502. "datasource": "${DS_PROMETHEUS}",
  7503. "fieldConfig": {
  7504. "defaults": {
  7505. "mappings": [],
  7506. "thresholds": {
  7507. "mode": "absolute",
  7508. "steps": [
  7509. {
  7510. "color": "green",
  7511. "value": null
  7512. },
  7513. {
  7514. "color": "red",
  7515. "value": 80
  7516. }
  7517. ]
  7518. }
  7519. },
  7520. "overrides": []
  7521. },
  7522. "gridPos": {
  7523. "h": 8,
  7524. "w": 3,
  7525. "x": 21,
  7526. "y": 13
  7527. },
  7528. "id": 241,
  7529. "options": {
  7530. "colorMode": "value",
  7531. "graphMode": "area",
  7532. "justifyMode": "auto",
  7533. "orientation": "auto",
  7534. "reduceOptions": {
  7535. "calcs": [
  7536. "mean"
  7537. ],
  7538. "fields": "",
  7539. "values": false
  7540. },
  7541. "text": {},
  7542. "textMode": "value"
  7543. },
  7544. "pluginVersion": "8.1.2",
  7545. "targets": [
  7546. {
  7547. "expr": "pg_stat_archiver_last_archive_age{instance=~\"${instance}:9187\"}",
  7548. "instant": false,
  7549. "interval": "",
  7550. "legendFormat": "",
  7551. "refId": "A"
  7552. }
  7553. ],
  7554. "timeFrom": null,
  7555. "timeShift": null,
  7556. "title": "Last archive age (Seconds)",
  7557. "type": "stat"
  7558. }
  7559. ],
  7560. "title": "Archiving",
  7561. "type": "row"
  7562. },
  7563. {
  7564. "collapsed": true,
  7565. "datasource": "${DS_PROMETHEUS}",
  7566. "fieldConfig": {
  7567. "defaults": {},
  7568. "overrides": []
  7569. },
  7570. "gridPos": {
  7571. "h": 1,
  7572. "w": 24,
  7573. "x": 0,
  7574. "y": 13
  7575. },
  7576. "id": 72,
  7577. "panels": [
  7578. {
  7579. "aliasColors": {},
  7580. "bars": false,
  7581. "dashLength": 10,
  7582. "dashes": false,
  7583. "datasource": "${DS_PROMETHEUS}",
  7584. "decimals": 0,
  7585. "fieldConfig": {
  7586. "defaults": {
  7587. "links": []
  7588. },
  7589. "overrides": []
  7590. },
  7591. "fill": 1,
  7592. "fillGradient": 0,
  7593. "gridPos": {
  7594. "h": 8,
  7595. "w": 8,
  7596. "x": 0,
  7597. "y": 14
  7598. },
  7599. "hiddenSeries": false,
  7600. "id": 74,
  7601. "legend": {
  7602. "alignAsTable": true,
  7603. "avg": true,
  7604. "current": true,
  7605. "max": false,
  7606. "min": false,
  7607. "show": true,
  7608. "sort": "current",
  7609. "sortDesc": true,
  7610. "total": false,
  7611. "values": true
  7612. },
  7613. "lines": true,
  7614. "linewidth": 1,
  7615. "nullPointMode": "null",
  7616. "options": {
  7617. "alertThreshold": true
  7618. },
  7619. "percentage": false,
  7620. "pluginVersion": "8.1.2",
  7621. "pointradius": 2,
  7622. "points": false,
  7623. "renderer": "flot",
  7624. "seriesOverrides": [],
  7625. "spaceLength": 10,
  7626. "stack": false,
  7627. "steppedLine": false,
  7628. "targets": [
  7629. {
  7630. "expr": "pg_slow_queries{instance=~\"${instance}:9187\"}",
  7631. "interval": "",
  7632. "intervalFactor": 1,
  7633. "legendFormat": "Database: {{datname}}",
  7634. "refId": "A"
  7635. }
  7636. ],
  7637. "thresholds": [],
  7638. "timeFrom": null,
  7639. "timeRegions": [],
  7640. "timeShift": null,
  7641. "title": "Slow Queries Count",
  7642. "tooltip": {
  7643. "shared": true,
  7644. "sort": 0,
  7645. "value_type": "individual"
  7646. },
  7647. "type": "graph",
  7648. "xaxis": {
  7649. "buckets": null,
  7650. "mode": "time",
  7651. "name": null,
  7652. "show": true,
  7653. "values": []
  7654. },
  7655. "yaxes": [
  7656. {
  7657. "decimals": 0,
  7658. "format": "short",
  7659. "label": null,
  7660. "logBase": 1,
  7661. "max": null,
  7662. "min": null,
  7663. "show": true
  7664. },
  7665. {
  7666. "format": "short",
  7667. "label": null,
  7668. "logBase": 1,
  7669. "max": null,
  7670. "min": null,
  7671. "show": true
  7672. }
  7673. ],
  7674. "yaxis": {
  7675. "align": false,
  7676. "alignLevel": null
  7677. }
  7678. },
  7679. {
  7680. "aliasColors": {},
  7681. "bars": false,
  7682. "dashLength": 10,
  7683. "dashes": false,
  7684. "datasource": "${DS_PROMETHEUS}",
  7685. "decimals": 0,
  7686. "fieldConfig": {
  7687. "defaults": {
  7688. "links": []
  7689. },
  7690. "overrides": []
  7691. },
  7692. "fill": 1,
  7693. "fillGradient": 0,
  7694. "gridPos": {
  7695. "h": 8,
  7696. "w": 16,
  7697. "x": 8,
  7698. "y": 14
  7699. },
  7700. "hiddenSeries": false,
  7701. "id": 86,
  7702. "legend": {
  7703. "alignAsTable": true,
  7704. "avg": true,
  7705. "current": true,
  7706. "hideEmpty": true,
  7707. "hideZero": true,
  7708. "max": false,
  7709. "min": false,
  7710. "show": true,
  7711. "sort": "current",
  7712. "sortDesc": true,
  7713. "total": false,
  7714. "values": true
  7715. },
  7716. "lines": true,
  7717. "linewidth": 1,
  7718. "nullPointMode": "null",
  7719. "options": {
  7720. "alertThreshold": true
  7721. },
  7722. "percentage": false,
  7723. "pluginVersion": "8.1.2",
  7724. "pointradius": 2,
  7725. "points": false,
  7726. "renderer": "flot",
  7727. "seriesOverrides": [],
  7728. "spaceLength": 10,
  7729. "stack": false,
  7730. "steppedLine": false,
  7731. "targets": [
  7732. {
  7733. "expr": "topk(20,rate(pg_stat_user_tables_seq_tup_read{instance=~\"${instance}:9187\"}[5m]))>0",
  7734. "interval": "",
  7735. "legendFormat": "Database: {{datname}}, Table: {{relname}}",
  7736. "refId": "A"
  7737. }
  7738. ],
  7739. "thresholds": [],
  7740. "timeFrom": null,
  7741. "timeRegions": [],
  7742. "timeShift": null,
  7743. "title": "Sequential Scans",
  7744. "tooltip": {
  7745. "shared": true,
  7746. "sort": 0,
  7747. "value_type": "individual"
  7748. },
  7749. "type": "graph",
  7750. "xaxis": {
  7751. "buckets": null,
  7752. "mode": "time",
  7753. "name": null,
  7754. "show": true,
  7755. "values": []
  7756. },
  7757. "yaxes": [
  7758. {
  7759. "decimals": 0,
  7760. "format": "short",
  7761. "label": null,
  7762. "logBase": 1,
  7763. "max": null,
  7764. "min": null,
  7765. "show": true
  7766. },
  7767. {
  7768. "decimals": 0,
  7769. "format": "short",
  7770. "label": null,
  7771. "logBase": 1,
  7772. "max": null,
  7773. "min": null,
  7774. "show": true
  7775. }
  7776. ],
  7777. "yaxis": {
  7778. "align": false,
  7779. "alignLevel": null
  7780. }
  7781. },
  7782. {
  7783. "aliasColors": {},
  7784. "bars": false,
  7785. "dashLength": 10,
  7786. "dashes": false,
  7787. "datasource": "${DS_PROMETHEUS}",
  7788. "fieldConfig": {
  7789. "defaults": {
  7790. "links": []
  7791. },
  7792. "overrides": []
  7793. },
  7794. "fill": 1,
  7795. "fillGradient": 0,
  7796. "gridPos": {
  7797. "h": 8,
  7798. "w": 8,
  7799. "x": 0,
  7800. "y": 22
  7801. },
  7802. "hiddenSeries": false,
  7803. "id": 236,
  7804. "legend": {
  7805. "alignAsTable": true,
  7806. "avg": false,
  7807. "current": true,
  7808. "max": false,
  7809. "min": false,
  7810. "show": true,
  7811. "sort": "current",
  7812. "sortDesc": true,
  7813. "total": false,
  7814. "values": true
  7815. },
  7816. "lines": true,
  7817. "linewidth": 1,
  7818. "nullPointMode": "null",
  7819. "options": {
  7820. "alertThreshold": true
  7821. },
  7822. "percentage": false,
  7823. "pluginVersion": "8.1.2",
  7824. "pointradius": 2,
  7825. "points": false,
  7826. "renderer": "flot",
  7827. "seriesOverrides": [],
  7828. "spaceLength": 10,
  7829. "stack": false,
  7830. "steppedLine": false,
  7831. "targets": [
  7832. {
  7833. "expr": "pg_long_running_transactions_age_in_seconds{instance=~\"${instance}:9187\"}",
  7834. "interval": "",
  7835. "legendFormat": "Database: {{datname}}",
  7836. "refId": "A"
  7837. }
  7838. ],
  7839. "thresholds": [],
  7840. "timeFrom": null,
  7841. "timeRegions": [],
  7842. "timeShift": null,
  7843. "title": "Long running transaction age(sec)",
  7844. "tooltip": {
  7845. "shared": true,
  7846. "sort": 0,
  7847. "value_type": "individual"
  7848. },
  7849. "type": "graph",
  7850. "xaxis": {
  7851. "buckets": null,
  7852. "mode": "time",
  7853. "name": null,
  7854. "show": true,
  7855. "values": []
  7856. },
  7857. "yaxes": [
  7858. {
  7859. "format": "s",
  7860. "label": null,
  7861. "logBase": 1,
  7862. "max": null,
  7863. "min": null,
  7864. "show": true
  7865. },
  7866. {
  7867. "format": "short",
  7868. "label": null,
  7869. "logBase": 1,
  7870. "max": null,
  7871. "min": null,
  7872. "show": true
  7873. }
  7874. ],
  7875. "yaxis": {
  7876. "align": false,
  7877. "alignLevel": null
  7878. }
  7879. },
  7880. {
  7881. "aliasColors": {},
  7882. "bars": false,
  7883. "dashLength": 10,
  7884. "dashes": false,
  7885. "datasource": "${DS_PROMETHEUS}",
  7886. "decimals": 0,
  7887. "fieldConfig": {
  7888. "defaults": {
  7889. "links": []
  7890. },
  7891. "overrides": []
  7892. },
  7893. "fill": 1,
  7894. "fillGradient": 0,
  7895. "gridPos": {
  7896. "h": 8,
  7897. "w": 8,
  7898. "x": 8,
  7899. "y": 22
  7900. },
  7901. "hiddenSeries": false,
  7902. "id": 76,
  7903. "legend": {
  7904. "alignAsTable": true,
  7905. "avg": true,
  7906. "current": true,
  7907. "max": false,
  7908. "min": false,
  7909. "show": true,
  7910. "sort": "current",
  7911. "sortDesc": true,
  7912. "total": false,
  7913. "values": true
  7914. },
  7915. "lines": true,
  7916. "linewidth": 1,
  7917. "nullPointMode": "null",
  7918. "options": {
  7919. "alertThreshold": true
  7920. },
  7921. "percentage": false,
  7922. "pluginVersion": "8.1.2",
  7923. "pointradius": 2,
  7924. "points": false,
  7925. "renderer": "flot",
  7926. "seriesOverrides": [],
  7927. "spaceLength": 10,
  7928. "stack": false,
  7929. "steppedLine": false,
  7930. "targets": [
  7931. {
  7932. "expr": "pg_blocked_queries{instance=~\"${instance}:9187\"}",
  7933. "interval": "",
  7934. "legendFormat": "Database: {{datname}}, Table: {{table}}",
  7935. "refId": "A"
  7936. }
  7937. ],
  7938. "thresholds": [],
  7939. "timeFrom": null,
  7940. "timeRegions": [],
  7941. "timeShift": null,
  7942. "title": "Blocked Queries Count",
  7943. "tooltip": {
  7944. "shared": true,
  7945. "sort": 0,
  7946. "value_type": "individual"
  7947. },
  7948. "type": "graph",
  7949. "xaxis": {
  7950. "buckets": null,
  7951. "mode": "time",
  7952. "name": null,
  7953. "show": true,
  7954. "values": []
  7955. },
  7956. "yaxes": [
  7957. {
  7958. "decimals": 0,
  7959. "format": "short",
  7960. "label": null,
  7961. "logBase": 1,
  7962. "max": null,
  7963. "min": null,
  7964. "show": true
  7965. },
  7966. {
  7967. "format": "short",
  7968. "label": null,
  7969. "logBase": 1,
  7970. "max": null,
  7971. "min": null,
  7972. "show": true
  7973. }
  7974. ],
  7975. "yaxis": {
  7976. "align": false,
  7977. "alignLevel": null
  7978. }
  7979. },
  7980. {
  7981. "aliasColors": {},
  7982. "bars": false,
  7983. "dashLength": 10,
  7984. "dashes": false,
  7985. "datasource": "${DS_PROMETHEUS}",
  7986. "decimals": 0,
  7987. "fieldConfig": {
  7988. "defaults": {
  7989. "links": []
  7990. },
  7991. "overrides": []
  7992. },
  7993. "fill": 1,
  7994. "fillGradient": 0,
  7995. "gridPos": {
  7996. "h": 8,
  7997. "w": 8,
  7998. "x": 16,
  7999. "y": 22
  8000. },
  8001. "hiddenSeries": false,
  8002. "id": 84,
  8003. "legend": {
  8004. "alignAsTable": true,
  8005. "avg": true,
  8006. "current": true,
  8007. "max": false,
  8008. "min": false,
  8009. "show": true,
  8010. "sort": "current",
  8011. "sortDesc": true,
  8012. "total": false,
  8013. "values": true
  8014. },
  8015. "lines": true,
  8016. "linewidth": 1,
  8017. "nullPointMode": "null",
  8018. "options": {
  8019. "alertThreshold": true
  8020. },
  8021. "percentage": false,
  8022. "pluginVersion": "8.1.2",
  8023. "pointradius": 2,
  8024. "points": false,
  8025. "renderer": "flot",
  8026. "seriesOverrides": [],
  8027. "spaceLength": 10,
  8028. "stack": false,
  8029. "steppedLine": false,
  8030. "targets": [
  8031. {
  8032. "expr": "pg_long_running_transactions_transactions{instance=~\"${instance}:9187\"}",
  8033. "interval": "",
  8034. "legendFormat": "Database: {{datname}}",
  8035. "refId": "A"
  8036. }
  8037. ],
  8038. "thresholds": [],
  8039. "timeFrom": null,
  8040. "timeRegions": [],
  8041. "timeShift": null,
  8042. "title": "Number of long running transactions",
  8043. "tooltip": {
  8044. "shared": true,
  8045. "sort": 0,
  8046. "value_type": "individual"
  8047. },
  8048. "type": "graph",
  8049. "xaxis": {
  8050. "buckets": null,
  8051. "mode": "time",
  8052. "name": null,
  8053. "show": true,
  8054. "values": []
  8055. },
  8056. "yaxes": [
  8057. {
  8058. "decimals": 0,
  8059. "format": "short",
  8060. "label": null,
  8061. "logBase": 1,
  8062. "max": null,
  8063. "min": null,
  8064. "show": true
  8065. },
  8066. {
  8067. "format": "short",
  8068. "label": null,
  8069. "logBase": 1,
  8070. "max": null,
  8071. "min": null,
  8072. "show": true
  8073. }
  8074. ],
  8075. "yaxis": {
  8076. "align": false,
  8077. "alignLevel": null
  8078. }
  8079. },
  8080. {
  8081. "aliasColors": {},
  8082. "bars": false,
  8083. "dashLength": 10,
  8084. "dashes": false,
  8085. "datasource": "${DS_PROMETHEUS}",
  8086. "fieldConfig": {
  8087. "defaults": {
  8088. "links": []
  8089. },
  8090. "overrides": []
  8091. },
  8092. "fill": 1,
  8093. "fillGradient": 0,
  8094. "gridPos": {
  8095. "h": 8,
  8096. "w": 8,
  8097. "x": 0,
  8098. "y": 30
  8099. },
  8100. "hiddenSeries": false,
  8101. "id": 78,
  8102. "legend": {
  8103. "alignAsTable": true,
  8104. "avg": false,
  8105. "current": true,
  8106. "hideEmpty": true,
  8107. "hideZero": true,
  8108. "max": false,
  8109. "min": false,
  8110. "show": true,
  8111. "sort": "current",
  8112. "sortDesc": true,
  8113. "total": false,
  8114. "values": true
  8115. },
  8116. "lines": true,
  8117. "linewidth": 1,
  8118. "nullPointMode": "null",
  8119. "options": {
  8120. "alertThreshold": true
  8121. },
  8122. "percentage": false,
  8123. "pluginVersion": "8.1.2",
  8124. "pointradius": 2,
  8125. "points": false,
  8126. "renderer": "flot",
  8127. "seriesOverrides": [],
  8128. "spaceLength": 10,
  8129. "stack": false,
  8130. "steppedLine": false,
  8131. "targets": [
  8132. {
  8133. "expr": "pg_oldest_blocked_age_seconds{instance=~\"${instance}:9187\"}",
  8134. "interval": "",
  8135. "legendFormat": "Database: {{datname}}",
  8136. "refId": "A"
  8137. }
  8138. ],
  8139. "thresholds": [],
  8140. "timeFrom": null,
  8141. "timeRegions": [],
  8142. "timeShift": null,
  8143. "title": "Queries largest time lock",
  8144. "tooltip": {
  8145. "shared": true,
  8146. "sort": 0,
  8147. "value_type": "individual"
  8148. },
  8149. "type": "graph",
  8150. "xaxis": {
  8151. "buckets": null,
  8152. "mode": "time",
  8153. "name": null,
  8154. "show": true,
  8155. "values": []
  8156. },
  8157. "yaxes": [
  8158. {
  8159. "decimals": null,
  8160. "format": "s",
  8161. "label": null,
  8162. "logBase": 1,
  8163. "max": null,
  8164. "min": null,
  8165. "show": true
  8166. },
  8167. {
  8168. "format": "short",
  8169. "label": null,
  8170. "logBase": 1,
  8171. "max": null,
  8172. "min": null,
  8173. "show": true
  8174. }
  8175. ],
  8176. "yaxis": {
  8177. "align": false,
  8178. "alignLevel": null
  8179. }
  8180. },
  8181. {
  8182. "aliasColors": {},
  8183. "bars": false,
  8184. "dashLength": 10,
  8185. "dashes": false,
  8186. "datasource": "${DS_PROMETHEUS}",
  8187. "fieldConfig": {
  8188. "defaults": {
  8189. "links": []
  8190. },
  8191. "overrides": []
  8192. },
  8193. "fill": 1,
  8194. "fillGradient": 0,
  8195. "gridPos": {
  8196. "h": 8,
  8197. "w": 8,
  8198. "x": 8,
  8199. "y": 30
  8200. },
  8201. "hiddenSeries": false,
  8202. "id": 114,
  8203. "legend": {
  8204. "avg": false,
  8205. "current": false,
  8206. "max": false,
  8207. "min": false,
  8208. "show": true,
  8209. "sort": "current",
  8210. "sortDesc": true,
  8211. "total": false,
  8212. "values": false
  8213. },
  8214. "lines": true,
  8215. "linewidth": 1,
  8216. "nullPointMode": "null",
  8217. "options": {
  8218. "alertThreshold": true
  8219. },
  8220. "percentage": false,
  8221. "pluginVersion": "8.1.2",
  8222. "pointradius": 2,
  8223. "points": false,
  8224. "renderer": "flot",
  8225. "seriesOverrides": [],
  8226. "spaceLength": 10,
  8227. "stack": false,
  8228. "steppedLine": false,
  8229. "targets": [
  8230. {
  8231. "expr": "pg_stuck_idle_in_transaction_queries{instance=~\"${instance}:9187\"}",
  8232. "interval": "",
  8233. "legendFormat": "Database: {{datname}}",
  8234. "refId": "A"
  8235. }
  8236. ],
  8237. "thresholds": [],
  8238. "timeFrom": null,
  8239. "timeRegions": [],
  8240. "timeShift": null,
  8241. "title": "Queries that are stuck being idle in transactions",
  8242. "tooltip": {
  8243. "shared": true,
  8244. "sort": 0,
  8245. "value_type": "individual"
  8246. },
  8247. "type": "graph",
  8248. "xaxis": {
  8249. "buckets": null,
  8250. "mode": "time",
  8251. "name": null,
  8252. "show": true,
  8253. "values": []
  8254. },
  8255. "yaxes": [
  8256. {
  8257. "decimals": 0,
  8258. "format": "short",
  8259. "label": "",
  8260. "logBase": 1,
  8261. "max": null,
  8262. "min": null,
  8263. "show": true
  8264. },
  8265. {
  8266. "format": "short",
  8267. "label": null,
  8268. "logBase": 1,
  8269. "max": null,
  8270. "min": null,
  8271. "show": true
  8272. }
  8273. ],
  8274. "yaxis": {
  8275. "align": false,
  8276. "alignLevel": null
  8277. }
  8278. }
  8279. ],
  8280. "title": "Queries",
  8281. "type": "row"
  8282. }
  8283. ],
  8284. "refresh": false,
  8285. "schemaVersion": 25,
  8286. "style": "dark",
  8287. "tags": [
  8288. "postgres",
  8289. "db",
  8290. "stats"
  8291. ],
  8292. "templating": {
  8293. "list": [
  8294. {
  8295. "allValue": null,
  8296. "current": {},
  8297. "datasource": "${DS_PROMETHEUS}",
  8298. "definition": "label_values(namespace)",
  8299. "description": null,
  8300. "error": null,
  8301. "hide": 0,
  8302. "includeAll": false,
  8303. "label": "Namespace",
  8304. "multi": false,
  8305. "name": "namespace",
  8306. "options": [],
  8307. "query": "label_values(namespace)",
  8308. "refresh": 2,
  8309. "regex": "",
  8310. "skipUrlSync": false,
  8311. "sort": 1,
  8312. "tagValuesQuery": "",
  8313. "tagsQuery": "",
  8314. "type": "query",
  8315. "useTags": false
  8316. },
  8317. {
  8318. "allValue": null,
  8319. "current": {},
  8320. "datasource": "${DS_PROMETHEUS}",
  8321. "definition": "query_result(up{namespace=\"$namespace\"})",
  8322. "description": null,
  8323. "error": null,
  8324. "hide": 0,
  8325. "includeAll": false,
  8326. "label": "Pod",
  8327. "multi": false,
  8328. "name": "pod",
  8329. "options": [],
  8330. "query": "query_result(up{namespace=\"$namespace\"})",
  8331. "refresh": 2,
  8332. "regex": "/.*pod=\"([^\":]+).*/",
  8333. "skipUrlSync": false,
  8334. "sort": 1,
  8335. "tagValuesQuery": "",
  8336. "tagsQuery": "",
  8337. "type": "query",
  8338. "useTags": false
  8339. },
  8340. {
  8341. "allValue": null,
  8342. "current": {},
  8343. "datasource": "${DS_PROMETHEUS}",
  8344. "definition": "query_result(up{namespace=\"$namespace\", pod=\"$pod\"})",
  8345. "description": null,
  8346. "error": null,
  8347. "hide": 2,
  8348. "includeAll": false,
  8349. "label": "Instance",
  8350. "multi": false,
  8351. "name": "instance",
  8352. "options": [],
  8353. "query": "query_result(up{namespace=\"$namespace\", pod=\"$pod\"})",
  8354. "refresh": 1,
  8355. "regex": "/.*instance=\"([^\":]+).*/",
  8356. "skipUrlSync": false,
  8357. "sort": 1,
  8358. "tagValuesQuery": "",
  8359. "tagsQuery": "",
  8360. "type": "query",
  8361. "useTags": false
  8362. },
  8363. {
  8364. "allValue": null,
  8365. "current": {},
  8366. "datasource": "${DS_PROMETHEUS}",
  8367. "definition": "label_values(datname)",
  8368. "description": null,
  8369. "error": null,
  8370. "hide": 0,
  8371. "includeAll": true,
  8372. "label": "Database",
  8373. "multi": true,
  8374. "name": "datname",
  8375. "options": [],
  8376. "query": "label_values(datname)",
  8377. "refresh": 1,
  8378. "regex": "",
  8379. "skipUrlSync": false,
  8380. "sort": 1,
  8381. "tagValuesQuery": "",
  8382. "tagsQuery": "",
  8383. "type": "query",
  8384. "useTags": false
  8385. },
  8386. {
  8387. "allValue": null,
  8388. "current": {},
  8389. "datasource": "${DS_PROMETHEUS}",
  8390. "definition": "query_result(pg_up{pod=\"$pod\"})",
  8391. "description": null,
  8392. "error": null,
  8393. "hide": 2,
  8394. "includeAll": false,
  8395. "label": "Cluster Name",
  8396. "multi": false,
  8397. "name": "cluster_name",
  8398. "options": [],
  8399. "query": "query_result(pg_up{pod=\"$pod\"})",
  8400. "refresh": 1,
  8401. "regex": "/.*cluster_name=\"([^\":]+).*/",
  8402. "skipUrlSync": false,
  8403. "sort": 1,
  8404. "tagValuesQuery": "",
  8405. "tagsQuery": "",
  8406. "type": "query",
  8407. "useTags": false
  8408. },
  8409. {
  8410. "datasource": null,
  8411. "description": null,
  8412. "error": null,
  8413. "filters": [],
  8414. "hide": 0,
  8415. "label": "",
  8416. "name": "Filters",
  8417. "skipUrlSync": false,
  8418. "type": "adhoc"
  8419. }
  8420. ]
  8421. },
  8422. "time": {
  8423. "from": "now-12h",
  8424. "to": "now"
  8425. },
  8426. "timepicker": {
  8427. "refresh_intervals": [
  8428. "5s",
  8429. "10s",
  8430. "30s",
  8431. "1m",
  8432. "5m",
  8433. "15m",
  8434. "30m",
  8435. "1h",
  8436. "2h",
  8437. "1d"
  8438. ],
  8439. "time_options": [
  8440. "5m",
  8441. "15m",
  8442. "1h",
  8443. "6h",
  8444. "12h",
  8445. "24h",
  8446. "2d",
  8447. "7d",
  8448. "30d"
  8449. ]
  8450. },
  8451. "timezone": "utc",
  8452. "title": "StackGres Dashboard",
  8453. "uid": "000000041",
  8454. "version": 6
  8455. }