1
0

synapse.json 344 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762
  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. "__elements": {},
  13. "__requires": [
  14. {
  15. "type": "grafana",
  16. "id": "grafana",
  17. "name": "Grafana",
  18. "version": "9.2.2"
  19. },
  20. {
  21. "type": "panel",
  22. "id": "graph",
  23. "name": "Graph (old)",
  24. "version": ""
  25. },
  26. {
  27. "type": "panel",
  28. "id": "heatmap",
  29. "name": "Heatmap",
  30. "version": ""
  31. },
  32. {
  33. "type": "datasource",
  34. "id": "prometheus",
  35. "name": "Prometheus",
  36. "version": "1.0.0"
  37. },
  38. {
  39. "type": "panel",
  40. "id": "timeseries",
  41. "name": "Time series",
  42. "version": ""
  43. }
  44. ],
  45. "annotations": {
  46. "list": [
  47. {
  48. "builtIn": 1,
  49. "datasource": {
  50. "uid": "$datasource"
  51. },
  52. "enable": false,
  53. "hide": true,
  54. "iconColor": "rgba(0, 211, 255, 1)",
  55. "limit": 100,
  56. "name": "Annotations & Alerts",
  57. "showIn": 0,
  58. "type": "dashboard"
  59. }
  60. ]
  61. },
  62. "editable": true,
  63. "fiscalYearStartMonth": 0,
  64. "graphTooltip": 0,
  65. "id": null,
  66. "links": [
  67. {
  68. "asDropdown": false,
  69. "icon": "external link",
  70. "includeVars": true,
  71. "keepTime": true,
  72. "tags": [
  73. "matrix"
  74. ],
  75. "title": "Dashboards",
  76. "type": "dashboards"
  77. }
  78. ],
  79. "liveNow": false,
  80. "panels": [
  81. {
  82. "collapsed": false,
  83. "datasource": {
  84. "type": "prometheus",
  85. "uid": "000000001"
  86. },
  87. "gridPos": {
  88. "h": 1,
  89. "w": 24,
  90. "x": 0,
  91. "y": 0
  92. },
  93. "id": 73,
  94. "panels": [],
  95. "targets": [
  96. {
  97. "datasource": {
  98. "type": "prometheus",
  99. "uid": "000000001"
  100. },
  101. "refId": "A"
  102. }
  103. ],
  104. "title": "Overview",
  105. "type": "row"
  106. },
  107. {
  108. "cards": {
  109. "cardPadding": -1,
  110. "cardRound": 0
  111. },
  112. "color": {
  113. "cardColor": "#b4ff00",
  114. "colorScale": "sqrt",
  115. "colorScheme": "interpolateInferno",
  116. "exponent": 0.5,
  117. "mode": "spectrum"
  118. },
  119. "dataFormat": "tsbuckets",
  120. "datasource": {
  121. "uid": "$datasource"
  122. },
  123. "fieldConfig": {
  124. "defaults": {
  125. "custom": {
  126. "hideFrom": {
  127. "legend": false,
  128. "tooltip": false,
  129. "viz": false
  130. },
  131. "scaleDistribution": {
  132. "type": "linear"
  133. }
  134. }
  135. },
  136. "overrides": []
  137. },
  138. "gridPos": {
  139. "h": 9,
  140. "w": 12,
  141. "x": 0,
  142. "y": 1
  143. },
  144. "heatmap": {},
  145. "hideZeroBuckets": false,
  146. "highlightCards": true,
  147. "id": 189,
  148. "legend": {
  149. "show": false
  150. },
  151. "links": [],
  152. "options": {
  153. "calculate": false,
  154. "calculation": {},
  155. "cellGap": -1,
  156. "cellRadius": 0,
  157. "cellValues": {},
  158. "color": {
  159. "exponent": 0.5,
  160. "fill": "#b4ff00",
  161. "mode": "scheme",
  162. "reverse": false,
  163. "scale": "exponential",
  164. "scheme": "Inferno",
  165. "steps": 128
  166. },
  167. "exemplars": {
  168. "color": "rgba(255,0,255,0.7)"
  169. },
  170. "filterValues": {
  171. "le": 1e-9
  172. },
  173. "legend": {
  174. "show": false
  175. },
  176. "rowsFrame": {
  177. "layout": "auto"
  178. },
  179. "showValue": "never",
  180. "tooltip": {
  181. "show": true,
  182. "yHistogram": true
  183. },
  184. "yAxis": {
  185. "axisPlacement": "left",
  186. "reverse": false,
  187. "unit": "s"
  188. }
  189. },
  190. "pluginVersion": "9.2.2",
  191. "reverseYBuckets": false,
  192. "targets": [
  193. {
  194. "datasource": {
  195. "uid": "$datasource"
  196. },
  197. "expr": "sum(rate(synapse_http_server_response_time_seconds_bucket{servlet='RoomSendEventRestServlet',instance=\"$instance\",code=~\"2..\"}[$bucket_size])) by (le)",
  198. "format": "heatmap",
  199. "interval": "",
  200. "intervalFactor": 1,
  201. "legendFormat": "{{le}}",
  202. "refId": "A"
  203. }
  204. ],
  205. "title": "Event Send Time (excluding errors, all workers)",
  206. "tooltip": {
  207. "show": true,
  208. "showHistogram": true
  209. },
  210. "type": "heatmap",
  211. "xAxis": {
  212. "show": true
  213. },
  214. "yAxis": {
  215. "format": "s",
  216. "logBase": 2,
  217. "show": true
  218. },
  219. "yBucketBound": "auto"
  220. },
  221. {
  222. "aliasColors": {},
  223. "bars": false,
  224. "dashLength": 10,
  225. "dashes": false,
  226. "datasource": {
  227. "uid": "$datasource"
  228. },
  229. "description": "",
  230. "fieldConfig": {
  231. "defaults": {
  232. "links": []
  233. },
  234. "overrides": []
  235. },
  236. "fill": 0,
  237. "fillGradient": 0,
  238. "gridPos": {
  239. "h": 9,
  240. "w": 12,
  241. "x": 12,
  242. "y": 1
  243. },
  244. "hiddenSeries": false,
  245. "id": 152,
  246. "legend": {
  247. "avg": false,
  248. "current": false,
  249. "max": false,
  250. "min": false,
  251. "rightSide": false,
  252. "show": true,
  253. "total": false,
  254. "values": false
  255. },
  256. "lines": true,
  257. "linewidth": 0,
  258. "links": [],
  259. "nullPointMode": "connected",
  260. "options": {
  261. "alertThreshold": true
  262. },
  263. "paceLength": 10,
  264. "percentage": false,
  265. "pluginVersion": "9.2.2",
  266. "pointradius": 5,
  267. "points": false,
  268. "renderer": "flot",
  269. "seriesOverrides": [
  270. {
  271. "alias": "Avg",
  272. "fill": 0,
  273. "linewidth": 3
  274. },
  275. {
  276. "alias": "99%",
  277. "color": "#C4162A",
  278. "fillBelowTo": "90%"
  279. },
  280. {
  281. "alias": "90%",
  282. "color": "#FF7383",
  283. "fillBelowTo": "75%"
  284. },
  285. {
  286. "alias": "75%",
  287. "color": "#FFEE52",
  288. "fillBelowTo": "50%"
  289. },
  290. {
  291. "alias": "50%",
  292. "color": "#73BF69",
  293. "fillBelowTo": "25%"
  294. },
  295. {
  296. "alias": "25%",
  297. "color": "#1F60C4",
  298. "fillBelowTo": "5%"
  299. },
  300. {
  301. "alias": "5%",
  302. "lines": false
  303. },
  304. {
  305. "alias": "Average",
  306. "color": "rgb(255, 255, 255)",
  307. "lines": true,
  308. "linewidth": 3
  309. },
  310. {
  311. "alias": "Events",
  312. "color": "#B877D9",
  313. "hideTooltip": true,
  314. "points": true,
  315. "yaxis": 2,
  316. "zindex": -3
  317. }
  318. ],
  319. "spaceLength": 10,
  320. "stack": false,
  321. "steppedLine": false,
  322. "targets": [
  323. {
  324. "datasource": {
  325. "uid": "$datasource"
  326. },
  327. "expr": "histogram_quantile(0.99, sum(rate(synapse_http_server_response_time_seconds_bucket{servlet='RoomSendEventRestServlet',index=~\"$index\",instance=\"$instance\",code=~\"2..\"}[$bucket_size])) by (le))",
  328. "format": "time_series",
  329. "intervalFactor": 1,
  330. "legendFormat": "99%",
  331. "refId": "D"
  332. },
  333. {
  334. "datasource": {
  335. "uid": "$datasource"
  336. },
  337. "expr": "histogram_quantile(0.9, sum(rate(synapse_http_server_response_time_seconds_bucket{servlet='RoomSendEventRestServlet',index=~\"$index\",instance=\"$instance\",code=~\"2..\"}[$bucket_size])) by (le))",
  338. "format": "time_series",
  339. "interval": "",
  340. "intervalFactor": 1,
  341. "legendFormat": "90%",
  342. "refId": "A"
  343. },
  344. {
  345. "datasource": {
  346. "uid": "$datasource"
  347. },
  348. "expr": "histogram_quantile(0.75, sum(rate(synapse_http_server_response_time_seconds_bucket{servlet='RoomSendEventRestServlet',index=~\"$index\",instance=\"$instance\",code=~\"2..\"}[$bucket_size])) by (le))",
  349. "format": "time_series",
  350. "intervalFactor": 1,
  351. "legendFormat": "75%",
  352. "refId": "C"
  353. },
  354. {
  355. "datasource": {
  356. "uid": "$datasource"
  357. },
  358. "expr": "histogram_quantile(0.5, sum(rate(synapse_http_server_response_time_seconds_bucket{servlet='RoomSendEventRestServlet',index=~\"$index\",instance=\"$instance\",code=~\"2..\"}[$bucket_size])) by (le))",
  359. "format": "time_series",
  360. "intervalFactor": 1,
  361. "legendFormat": "50%",
  362. "refId": "B"
  363. },
  364. {
  365. "datasource": {
  366. "uid": "$datasource"
  367. },
  368. "expr": "histogram_quantile(0.25, sum(rate(synapse_http_server_response_time_seconds_bucket{servlet='RoomSendEventRestServlet',index=~\"$index\",instance=\"$instance\",code=~\"2..\"}[$bucket_size])) by (le))",
  369. "legendFormat": "25%",
  370. "refId": "F"
  371. },
  372. {
  373. "datasource": {
  374. "uid": "$datasource"
  375. },
  376. "expr": "histogram_quantile(0.05, sum(rate(synapse_http_server_response_time_seconds_bucket{servlet='RoomSendEventRestServlet',index=~\"$index\",instance=\"$instance\",code=~\"2..\"}[$bucket_size])) by (le))",
  377. "legendFormat": "5%",
  378. "refId": "G"
  379. },
  380. {
  381. "datasource": {
  382. "uid": "$datasource"
  383. },
  384. "expr": "sum(rate(synapse_http_server_response_time_seconds_sum{servlet='RoomSendEventRestServlet',index=~\"$index\",instance=\"$instance\",code=~\"2..\"}[$bucket_size])) / sum(rate(synapse_http_server_response_time_seconds_count{servlet='RoomSendEventRestServlet',index=~\"$index\",instance=\"$instance\",code=~\"2..\"}[$bucket_size]))",
  385. "legendFormat": "Average",
  386. "refId": "H"
  387. },
  388. {
  389. "datasource": {
  390. "uid": "$datasource"
  391. },
  392. "expr": "sum(rate(synapse_storage_events_persisted_events_total{instance=\"$instance\"}[$bucket_size]))",
  393. "hide": false,
  394. "instant": false,
  395. "legendFormat": "Events",
  396. "refId": "E"
  397. }
  398. ],
  399. "thresholds": [
  400. {
  401. "$$hashKey": "object:283",
  402. "colorMode": "warning",
  403. "fill": false,
  404. "line": true,
  405. "op": "gt",
  406. "value": 1,
  407. "yaxis": "left"
  408. },
  409. {
  410. "$$hashKey": "object:284",
  411. "colorMode": "critical",
  412. "fill": false,
  413. "line": true,
  414. "op": "gt",
  415. "value": 2,
  416. "yaxis": "left"
  417. }
  418. ],
  419. "timeRegions": [],
  420. "title": "Event Send Time Quantiles (excluding errors, all workers)",
  421. "tooltip": {
  422. "shared": true,
  423. "sort": 2,
  424. "value_type": "individual"
  425. },
  426. "type": "graph",
  427. "xaxis": {
  428. "mode": "time",
  429. "show": true,
  430. "values": []
  431. },
  432. "yaxes": [
  433. {
  434. "$$hashKey": "object:255",
  435. "format": "s",
  436. "label": "",
  437. "logBase": 1,
  438. "min": "0",
  439. "show": true
  440. },
  441. {
  442. "$$hashKey": "object:256",
  443. "format": "hertz",
  444. "label": "",
  445. "logBase": 1,
  446. "min": "0",
  447. "show": true
  448. }
  449. ],
  450. "yaxis": {
  451. "align": false
  452. }
  453. },
  454. {
  455. "aliasColors": {},
  456. "bars": false,
  457. "dashLength": 10,
  458. "dashes": false,
  459. "datasource": {
  460. "uid": "$datasource"
  461. },
  462. "fieldConfig": {
  463. "defaults": {
  464. "links": []
  465. },
  466. "overrides": []
  467. },
  468. "fill": 1,
  469. "fillGradient": 0,
  470. "gridPos": {
  471. "h": 9,
  472. "w": 12,
  473. "x": 0,
  474. "y": 10
  475. },
  476. "hiddenSeries": false,
  477. "id": 75,
  478. "legend": {
  479. "avg": false,
  480. "current": false,
  481. "max": false,
  482. "min": false,
  483. "show": true,
  484. "total": false,
  485. "values": false
  486. },
  487. "lines": true,
  488. "linewidth": 3,
  489. "links": [],
  490. "nullPointMode": "null",
  491. "options": {
  492. "alertThreshold": true
  493. },
  494. "paceLength": 10,
  495. "percentage": false,
  496. "pluginVersion": "9.2.2",
  497. "pointradius": 5,
  498. "points": false,
  499. "renderer": "flot",
  500. "seriesOverrides": [],
  501. "spaceLength": 10,
  502. "stack": false,
  503. "steppedLine": false,
  504. "targets": [
  505. {
  506. "datasource": {
  507. "uid": "$datasource"
  508. },
  509. "expr": "rate(process_cpu_seconds_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])",
  510. "format": "time_series",
  511. "interval": "",
  512. "intervalFactor": 1,
  513. "legendFormat": "{{job}}-{{index}} ",
  514. "refId": "A"
  515. }
  516. ],
  517. "thresholds": [
  518. {
  519. "$$hashKey": "object:566",
  520. "colorMode": "critical",
  521. "fill": true,
  522. "line": true,
  523. "op": "gt",
  524. "value": 1,
  525. "yaxis": "left"
  526. }
  527. ],
  528. "timeRegions": [],
  529. "title": "CPU usage",
  530. "tooltip": {
  531. "shared": false,
  532. "sort": 0,
  533. "value_type": "individual"
  534. },
  535. "type": "graph",
  536. "xaxis": {
  537. "mode": "time",
  538. "show": true,
  539. "values": []
  540. },
  541. "yaxes": [
  542. {
  543. "$$hashKey": "object:538",
  544. "format": "percentunit",
  545. "logBase": 1,
  546. "max": "1.5",
  547. "min": "0",
  548. "show": true
  549. },
  550. {
  551. "$$hashKey": "object:539",
  552. "format": "short",
  553. "logBase": 1,
  554. "show": true
  555. }
  556. ],
  557. "yaxis": {
  558. "align": false
  559. }
  560. },
  561. {
  562. "aliasColors": {},
  563. "bars": false,
  564. "dashLength": 10,
  565. "dashes": false,
  566. "datasource": {
  567. "uid": "$datasource"
  568. },
  569. "editable": true,
  570. "error": false,
  571. "fieldConfig": {
  572. "defaults": {
  573. "links": []
  574. },
  575. "overrides": []
  576. },
  577. "fill": 1,
  578. "fillGradient": 0,
  579. "grid": {},
  580. "gridPos": {
  581. "h": 9,
  582. "w": 12,
  583. "x": 12,
  584. "y": 10
  585. },
  586. "hiddenSeries": false,
  587. "id": 198,
  588. "legend": {
  589. "avg": false,
  590. "current": false,
  591. "max": false,
  592. "min": false,
  593. "show": true,
  594. "total": false,
  595. "values": false
  596. },
  597. "lines": true,
  598. "linewidth": 3,
  599. "links": [],
  600. "nullPointMode": "null",
  601. "options": {
  602. "alertThreshold": true
  603. },
  604. "paceLength": 10,
  605. "percentage": false,
  606. "pluginVersion": "9.2.2",
  607. "pointradius": 5,
  608. "points": false,
  609. "renderer": "flot",
  610. "seriesOverrides": [],
  611. "spaceLength": 10,
  612. "stack": false,
  613. "steppedLine": false,
  614. "targets": [
  615. {
  616. "datasource": {
  617. "uid": "$datasource"
  618. },
  619. "expr": "process_resident_memory_bytes{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}",
  620. "format": "time_series",
  621. "interval": "",
  622. "intervalFactor": 2,
  623. "legendFormat": "{{job}} {{index}}",
  624. "refId": "A",
  625. "step": 20,
  626. "target": ""
  627. },
  628. {
  629. "datasource": {
  630. "uid": "$datasource"
  631. },
  632. "expr": "sum(process_resident_memory_bytes{instance=\"$instance\",job=~\"$job\",index=~\"$index\"})",
  633. "hide": true,
  634. "interval": "",
  635. "legendFormat": "total",
  636. "refId": "B"
  637. }
  638. ],
  639. "thresholds": [],
  640. "timeRegions": [],
  641. "title": "Memory",
  642. "tooltip": {
  643. "shared": false,
  644. "sort": 0,
  645. "value_type": "cumulative"
  646. },
  647. "transformations": [],
  648. "type": "graph",
  649. "xaxis": {
  650. "mode": "time",
  651. "show": true,
  652. "values": []
  653. },
  654. "yaxes": [
  655. {
  656. "$$hashKey": "object:1560",
  657. "format": "bytes",
  658. "logBase": 1,
  659. "min": "0",
  660. "show": true
  661. },
  662. {
  663. "$$hashKey": "object:1561",
  664. "format": "short",
  665. "logBase": 1,
  666. "show": true
  667. }
  668. ],
  669. "yaxis": {
  670. "align": false
  671. }
  672. },
  673. {
  674. "aliasColors": {},
  675. "bars": false,
  676. "dashLength": 10,
  677. "dashes": false,
  678. "datasource": {
  679. "uid": "$datasource"
  680. },
  681. "fieldConfig": {
  682. "defaults": {
  683. "links": []
  684. },
  685. "overrides": []
  686. },
  687. "fill": 1,
  688. "fillGradient": 0,
  689. "gridPos": {
  690. "h": 7,
  691. "w": 12,
  692. "x": 12,
  693. "y": 19
  694. },
  695. "hiddenSeries": false,
  696. "id": 37,
  697. "legend": {
  698. "avg": false,
  699. "current": false,
  700. "max": false,
  701. "min": false,
  702. "show": true,
  703. "total": false,
  704. "values": false
  705. },
  706. "lines": true,
  707. "linewidth": 1,
  708. "links": [],
  709. "nullPointMode": "null",
  710. "options": {
  711. "alertThreshold": true
  712. },
  713. "paceLength": 10,
  714. "percentage": false,
  715. "pluginVersion": "9.2.2",
  716. "pointradius": 5,
  717. "points": false,
  718. "renderer": "flot",
  719. "seriesOverrides": [
  720. {
  721. "$$hashKey": "object:639",
  722. "alias": "/max$/",
  723. "color": "#890F02",
  724. "fill": 0,
  725. "legend": false
  726. }
  727. ],
  728. "spaceLength": 10,
  729. "stack": false,
  730. "steppedLine": false,
  731. "targets": [
  732. {
  733. "datasource": {
  734. "uid": "$datasource"
  735. },
  736. "expr": "process_open_fds{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}",
  737. "format": "time_series",
  738. "hide": false,
  739. "interval": "",
  740. "intervalFactor": 2,
  741. "legendFormat": "{{job}}-{{index}}",
  742. "refId": "A",
  743. "step": 20
  744. },
  745. {
  746. "datasource": {
  747. "uid": "$datasource"
  748. },
  749. "expr": "process_max_fds{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}",
  750. "format": "time_series",
  751. "hide": true,
  752. "interval": "",
  753. "intervalFactor": 2,
  754. "legendFormat": "{{job}}-{{index}} max",
  755. "refId": "B",
  756. "step": 20
  757. }
  758. ],
  759. "thresholds": [],
  760. "timeRegions": [],
  761. "title": "Open FDs",
  762. "tooltip": {
  763. "shared": false,
  764. "sort": 0,
  765. "value_type": "individual"
  766. },
  767. "type": "graph",
  768. "xaxis": {
  769. "mode": "time",
  770. "show": true,
  771. "values": []
  772. },
  773. "yaxes": [
  774. {
  775. "$$hashKey": "object:650",
  776. "format": "none",
  777. "label": "",
  778. "logBase": 1,
  779. "show": true
  780. },
  781. {
  782. "$$hashKey": "object:651",
  783. "format": "short",
  784. "logBase": 1,
  785. "show": true
  786. }
  787. ],
  788. "yaxis": {
  789. "align": false
  790. }
  791. },
  792. {
  793. "collapsed": true,
  794. "datasource": {
  795. "type": "prometheus",
  796. "uid": "$datasource"
  797. },
  798. "gridPos": {
  799. "h": 1,
  800. "w": 24,
  801. "x": 0,
  802. "y": 26
  803. },
  804. "id": 54,
  805. "panels": [
  806. {
  807. "aliasColors": {},
  808. "bars": false,
  809. "dashLength": 10,
  810. "dashes": false,
  811. "datasource": {
  812. "uid": "$datasource"
  813. },
  814. "editable": true,
  815. "error": false,
  816. "fieldConfig": {
  817. "defaults": {
  818. "links": []
  819. },
  820. "overrides": []
  821. },
  822. "fill": 1,
  823. "fillGradient": 0,
  824. "grid": {},
  825. "gridPos": {
  826. "h": 7,
  827. "w": 12,
  828. "x": 0,
  829. "y": 27
  830. },
  831. "hiddenSeries": false,
  832. "id": 5,
  833. "legend": {
  834. "alignAsTable": false,
  835. "avg": false,
  836. "current": false,
  837. "hideEmpty": false,
  838. "hideZero": false,
  839. "max": false,
  840. "min": false,
  841. "rightSide": false,
  842. "show": true,
  843. "total": false,
  844. "values": false
  845. },
  846. "lines": true,
  847. "linewidth": 3,
  848. "links": [],
  849. "nullPointMode": "null",
  850. "options": {
  851. "alertThreshold": true
  852. },
  853. "paceLength": 10,
  854. "percentage": false,
  855. "pluginVersion": "9.2.2",
  856. "pointradius": 5,
  857. "points": false,
  858. "renderer": "flot",
  859. "seriesOverrides": [
  860. {
  861. "$$hashKey": "object:1240",
  862. "alias": "/user/"
  863. },
  864. {
  865. "$$hashKey": "object:1241",
  866. "alias": "/system/"
  867. }
  868. ],
  869. "spaceLength": 10,
  870. "stack": false,
  871. "steppedLine": false,
  872. "targets": [
  873. {
  874. "datasource": {
  875. "uid": "$datasource"
  876. },
  877. "expr": "rate(process_cpu_system_seconds_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])",
  878. "format": "time_series",
  879. "intervalFactor": 1,
  880. "legendFormat": "{{job}}-{{index}} system ",
  881. "metric": "",
  882. "refId": "B",
  883. "step": 20
  884. },
  885. {
  886. "datasource": {
  887. "uid": "$datasource"
  888. },
  889. "expr": "rate(process_cpu_user_seconds_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])",
  890. "format": "time_series",
  891. "hide": false,
  892. "interval": "",
  893. "intervalFactor": 1,
  894. "legendFormat": "{{job}}-{{index}} user",
  895. "refId": "A",
  896. "step": 20
  897. }
  898. ],
  899. "thresholds": [
  900. {
  901. "$$hashKey": "object:1278",
  902. "colorMode": "custom",
  903. "fillColor": "rgba(255, 255, 255, 1)",
  904. "line": true,
  905. "lineColor": "rgba(216, 200, 27, 0.27)",
  906. "op": "gt",
  907. "value": 0.5,
  908. "yaxis": "left"
  909. },
  910. {
  911. "$$hashKey": "object:1279",
  912. "colorMode": "custom",
  913. "fillColor": "rgba(255, 255, 255, 1)",
  914. "line": true,
  915. "lineColor": "rgb(87, 6, 16)",
  916. "op": "gt",
  917. "value": 0.8,
  918. "yaxis": "left"
  919. },
  920. {
  921. "$$hashKey": "object:1498",
  922. "colorMode": "critical",
  923. "fill": true,
  924. "line": true,
  925. "op": "gt",
  926. "value": 1,
  927. "yaxis": "left"
  928. }
  929. ],
  930. "timeRegions": [],
  931. "title": "CPU",
  932. "tooltip": {
  933. "shared": false,
  934. "sort": 0,
  935. "value_type": "individual"
  936. },
  937. "type": "graph",
  938. "xaxis": {
  939. "mode": "time",
  940. "show": true,
  941. "values": []
  942. },
  943. "yaxes": [
  944. {
  945. "$$hashKey": "object:1250",
  946. "format": "percentunit",
  947. "label": "",
  948. "logBase": 1,
  949. "max": "1.2",
  950. "min": 0,
  951. "show": true
  952. },
  953. {
  954. "$$hashKey": "object:1251",
  955. "format": "short",
  956. "logBase": 1,
  957. "show": true
  958. }
  959. ],
  960. "yaxis": {
  961. "align": false
  962. }
  963. },
  964. {
  965. "datasource": {
  966. "type": "prometheus",
  967. "uid": "${DS_PROMETHEUS}"
  968. },
  969. "description": "Shows the time in which the given percentage of reactor ticks completed, over the sampled timespan",
  970. "fieldConfig": {
  971. "defaults": {
  972. "color": {
  973. "mode": "palette-classic"
  974. },
  975. "custom": {
  976. "axisCenteredZero": false,
  977. "axisColorMode": "text",
  978. "axisLabel": "",
  979. "axisPlacement": "auto",
  980. "barAlignment": 0,
  981. "drawStyle": "line",
  982. "fillOpacity": 10,
  983. "gradientMode": "none",
  984. "hideFrom": {
  985. "legend": false,
  986. "tooltip": false,
  987. "viz": false
  988. },
  989. "lineInterpolation": "linear",
  990. "lineWidth": 1,
  991. "pointSize": 5,
  992. "scaleDistribution": {
  993. "type": "linear"
  994. },
  995. "showPoints": "never",
  996. "spanNulls": true,
  997. "stacking": {
  998. "group": "A",
  999. "mode": "none"
  1000. },
  1001. "thresholdsStyle": {
  1002. "mode": "off"
  1003. }
  1004. },
  1005. "links": [],
  1006. "mappings": [],
  1007. "thresholds": {
  1008. "mode": "absolute",
  1009. "steps": [
  1010. {
  1011. "color": "green"
  1012. },
  1013. {
  1014. "color": "red",
  1015. "value": 80
  1016. }
  1017. ]
  1018. },
  1019. "unit": "s"
  1020. },
  1021. "overrides": []
  1022. },
  1023. "gridPos": {
  1024. "h": 7,
  1025. "w": 12,
  1026. "x": 12,
  1027. "y": 27
  1028. },
  1029. "id": 105,
  1030. "interval": "",
  1031. "links": [],
  1032. "options": {
  1033. "legend": {
  1034. "calcs": [],
  1035. "displayMode": "list",
  1036. "placement": "bottom",
  1037. "showLegend": true
  1038. },
  1039. "tooltip": {
  1040. "mode": "single",
  1041. "sort": "none"
  1042. }
  1043. },
  1044. "pluginVersion": "8.3.2",
  1045. "targets": [
  1046. {
  1047. "datasource": {
  1048. "type": "prometheus",
  1049. "uid": "${DS_PROMETHEUS}"
  1050. },
  1051. "exemplar": true,
  1052. "expr": "histogram_quantile(0.999, rate(python_twisted_reactor_tick_time_bucket{index=~\"$index\",instance=\"$instance\",job=~\"$job\"}[$bucket_size]))",
  1053. "hide": false,
  1054. "interval": "",
  1055. "legendFormat": "{{job}}-{{index}} 99.9%",
  1056. "refId": "E"
  1057. },
  1058. {
  1059. "datasource": {
  1060. "type": "prometheus",
  1061. "uid": "${DS_PROMETHEUS}"
  1062. },
  1063. "exemplar": true,
  1064. "expr": "histogram_quantile(0.99, rate(python_twisted_reactor_tick_time_bucket{index=~\"$index\",instance=\"$instance\",job=~\"$job\"}[$bucket_size]))",
  1065. "format": "time_series",
  1066. "interval": "",
  1067. "intervalFactor": 2,
  1068. "legendFormat": "{{job}}-{{index}} 99%",
  1069. "refId": "A",
  1070. "step": 20
  1071. },
  1072. {
  1073. "datasource": {
  1074. "type": "prometheus",
  1075. "uid": "${DS_PROMETHEUS}"
  1076. },
  1077. "exemplar": true,
  1078. "expr": "histogram_quantile(0.95, rate(python_twisted_reactor_tick_time_bucket{index=~\"$index\",instance=\"$instance\",job=~\"$job\"}[$bucket_size]))",
  1079. "format": "time_series",
  1080. "interval": "",
  1081. "intervalFactor": 1,
  1082. "legendFormat": "{{job}}-{{index}} 95%",
  1083. "refId": "B"
  1084. },
  1085. {
  1086. "datasource": {
  1087. "type": "prometheus",
  1088. "uid": "${DS_PROMETHEUS}"
  1089. },
  1090. "expr": "histogram_quantile(0.90, rate(python_twisted_reactor_tick_time_bucket{index=~\"$index\",instance=\"$instance\",job=~\"$job\"}[$bucket_size]))",
  1091. "format": "time_series",
  1092. "intervalFactor": 1,
  1093. "legendFormat": "{{job}}-{{index}} 90%",
  1094. "refId": "C"
  1095. },
  1096. {
  1097. "datasource": {
  1098. "type": "prometheus",
  1099. "uid": "${DS_PROMETHEUS}"
  1100. },
  1101. "expr": "rate(python_twisted_reactor_tick_time_sum{index=~\"$index\",instance=\"$instance\",job=~\"$job\"}[$bucket_size]) / rate(python_twisted_reactor_tick_time_count{index=~\"$index\",instance=\"$instance\",job=~\"$job\"}[$bucket_size])",
  1102. "format": "time_series",
  1103. "intervalFactor": 1,
  1104. "legendFormat": "{{job}}-{{index}} mean",
  1105. "refId": "D"
  1106. }
  1107. ],
  1108. "title": "Reactor tick quantiles",
  1109. "type": "timeseries"
  1110. },
  1111. {
  1112. "aliasColors": {},
  1113. "bars": false,
  1114. "dashLength": 10,
  1115. "dashes": false,
  1116. "datasource": {
  1117. "uid": "$datasource"
  1118. },
  1119. "editable": true,
  1120. "error": false,
  1121. "fieldConfig": {
  1122. "defaults": {
  1123. "links": []
  1124. },
  1125. "overrides": []
  1126. },
  1127. "fill": 0,
  1128. "fillGradient": 0,
  1129. "grid": {},
  1130. "gridPos": {
  1131. "h": 7,
  1132. "w": 12,
  1133. "x": 0,
  1134. "y": 34
  1135. },
  1136. "hiddenSeries": false,
  1137. "id": 34,
  1138. "legend": {
  1139. "avg": false,
  1140. "current": false,
  1141. "max": false,
  1142. "min": false,
  1143. "show": true,
  1144. "total": false,
  1145. "values": false
  1146. },
  1147. "lines": true,
  1148. "linewidth": 1,
  1149. "links": [],
  1150. "nullPointMode": "null",
  1151. "options": {
  1152. "alertThreshold": true
  1153. },
  1154. "paceLength": 10,
  1155. "percentage": false,
  1156. "pluginVersion": "9.2.2",
  1157. "pointradius": 5,
  1158. "points": false,
  1159. "renderer": "flot",
  1160. "seriesOverrides": [],
  1161. "spaceLength": 10,
  1162. "stack": false,
  1163. "steppedLine": false,
  1164. "targets": [
  1165. {
  1166. "datasource": {
  1167. "uid": "$datasource"
  1168. },
  1169. "expr": "process_resident_memory_bytes{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}",
  1170. "format": "time_series",
  1171. "interval": "",
  1172. "intervalFactor": 2,
  1173. "legendFormat": "{{job}} {{index}}",
  1174. "refId": "A",
  1175. "step": 20,
  1176. "target": ""
  1177. },
  1178. {
  1179. "datasource": {
  1180. "uid": "$datasource"
  1181. },
  1182. "expr": "sum(process_resident_memory_bytes{instance=\"$instance\",job=~\"$job\",index=~\"$index\"})",
  1183. "interval": "",
  1184. "legendFormat": "total",
  1185. "refId": "B"
  1186. }
  1187. ],
  1188. "thresholds": [],
  1189. "timeRegions": [],
  1190. "title": "Memory",
  1191. "tooltip": {
  1192. "shared": false,
  1193. "sort": 0,
  1194. "value_type": "cumulative"
  1195. },
  1196. "transformations": [],
  1197. "type": "graph",
  1198. "xaxis": {
  1199. "mode": "time",
  1200. "show": true,
  1201. "values": []
  1202. },
  1203. "yaxes": [
  1204. {
  1205. "format": "bytes",
  1206. "logBase": 1,
  1207. "min": "0",
  1208. "show": true
  1209. },
  1210. {
  1211. "format": "short",
  1212. "logBase": 1,
  1213. "show": true
  1214. }
  1215. ],
  1216. "yaxis": {
  1217. "align": false
  1218. }
  1219. },
  1220. {
  1221. "aliasColors": {},
  1222. "bars": false,
  1223. "dashLength": 10,
  1224. "dashes": false,
  1225. "datasource": {
  1226. "uid": "$datasource"
  1227. },
  1228. "fieldConfig": {
  1229. "defaults": {
  1230. "links": []
  1231. },
  1232. "overrides": []
  1233. },
  1234. "fill": 1,
  1235. "fillGradient": 0,
  1236. "gridPos": {
  1237. "h": 7,
  1238. "w": 12,
  1239. "x": 12,
  1240. "y": 34
  1241. },
  1242. "hiddenSeries": false,
  1243. "id": 49,
  1244. "legend": {
  1245. "avg": false,
  1246. "current": false,
  1247. "max": false,
  1248. "min": false,
  1249. "show": true,
  1250. "total": false,
  1251. "values": false
  1252. },
  1253. "lines": true,
  1254. "linewidth": 1,
  1255. "links": [],
  1256. "nullPointMode": "null",
  1257. "options": {
  1258. "alertThreshold": true
  1259. },
  1260. "paceLength": 10,
  1261. "percentage": false,
  1262. "pluginVersion": "9.2.2",
  1263. "pointradius": 5,
  1264. "points": false,
  1265. "renderer": "flot",
  1266. "seriesOverrides": [
  1267. {
  1268. "alias": "/^up/",
  1269. "legend": false,
  1270. "yaxis": 2
  1271. }
  1272. ],
  1273. "spaceLength": 10,
  1274. "stack": false,
  1275. "steppedLine": false,
  1276. "targets": [
  1277. {
  1278. "datasource": {
  1279. "uid": "$datasource"
  1280. },
  1281. "expr": "scrape_duration_seconds{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}",
  1282. "format": "time_series",
  1283. "interval": "",
  1284. "intervalFactor": 2,
  1285. "legendFormat": "{{job}}-{{index}}",
  1286. "refId": "A",
  1287. "step": 20
  1288. }
  1289. ],
  1290. "thresholds": [],
  1291. "timeRegions": [],
  1292. "title": "Prometheus scrape time",
  1293. "tooltip": {
  1294. "shared": false,
  1295. "sort": 0,
  1296. "value_type": "individual"
  1297. },
  1298. "type": "graph",
  1299. "xaxis": {
  1300. "mode": "time",
  1301. "show": true,
  1302. "values": []
  1303. },
  1304. "yaxes": [
  1305. {
  1306. "format": "s",
  1307. "logBase": 1,
  1308. "min": "0",
  1309. "show": true
  1310. },
  1311. {
  1312. "decimals": 0,
  1313. "format": "none",
  1314. "label": "",
  1315. "logBase": 1,
  1316. "max": "0",
  1317. "min": "-1",
  1318. "show": false
  1319. }
  1320. ],
  1321. "yaxis": {
  1322. "align": false
  1323. }
  1324. },
  1325. {
  1326. "aliasColors": {},
  1327. "bars": false,
  1328. "dashLength": 10,
  1329. "dashes": false,
  1330. "datasource": {
  1331. "uid": "$datasource"
  1332. },
  1333. "fieldConfig": {
  1334. "defaults": {
  1335. "links": []
  1336. },
  1337. "overrides": []
  1338. },
  1339. "fill": 0,
  1340. "fillGradient": 0,
  1341. "gridPos": {
  1342. "h": 7,
  1343. "w": 12,
  1344. "x": 0,
  1345. "y": 41
  1346. },
  1347. "hiddenSeries": false,
  1348. "id": 53,
  1349. "legend": {
  1350. "avg": false,
  1351. "current": false,
  1352. "max": false,
  1353. "min": false,
  1354. "show": true,
  1355. "total": false,
  1356. "values": false
  1357. },
  1358. "lines": true,
  1359. "linewidth": 1,
  1360. "links": [],
  1361. "nullPointMode": "null",
  1362. "options": {
  1363. "alertThreshold": true
  1364. },
  1365. "paceLength": 10,
  1366. "percentage": false,
  1367. "pluginVersion": "9.2.2",
  1368. "pointradius": 5,
  1369. "points": false,
  1370. "renderer": "flot",
  1371. "seriesOverrides": [],
  1372. "spaceLength": 10,
  1373. "stack": false,
  1374. "steppedLine": false,
  1375. "targets": [
  1376. {
  1377. "datasource": {
  1378. "uid": "$datasource"
  1379. },
  1380. "expr": "min_over_time(up{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])",
  1381. "format": "time_series",
  1382. "intervalFactor": 2,
  1383. "legendFormat": "{{job}}-{{index}}",
  1384. "refId": "A"
  1385. }
  1386. ],
  1387. "thresholds": [],
  1388. "timeRegions": [],
  1389. "title": "Up",
  1390. "tooltip": {
  1391. "shared": false,
  1392. "sort": 0,
  1393. "value_type": "individual"
  1394. },
  1395. "type": "graph",
  1396. "xaxis": {
  1397. "mode": "time",
  1398. "show": true,
  1399. "values": []
  1400. },
  1401. "yaxes": [
  1402. {
  1403. "format": "short",
  1404. "logBase": 1,
  1405. "show": true
  1406. },
  1407. {
  1408. "format": "short",
  1409. "logBase": 1,
  1410. "show": true
  1411. }
  1412. ],
  1413. "yaxis": {
  1414. "align": false
  1415. }
  1416. },
  1417. {
  1418. "aliasColors": {},
  1419. "bars": false,
  1420. "dashLength": 10,
  1421. "dashes": false,
  1422. "datasource": {
  1423. "uid": "$datasource"
  1424. },
  1425. "fieldConfig": {
  1426. "defaults": {
  1427. "links": []
  1428. },
  1429. "overrides": []
  1430. },
  1431. "fill": 1,
  1432. "fillGradient": 0,
  1433. "gridPos": {
  1434. "h": 7,
  1435. "w": 12,
  1436. "x": 12,
  1437. "y": 41
  1438. },
  1439. "hiddenSeries": false,
  1440. "id": 120,
  1441. "legend": {
  1442. "avg": false,
  1443. "current": false,
  1444. "max": false,
  1445. "min": false,
  1446. "show": true,
  1447. "total": false,
  1448. "values": false
  1449. },
  1450. "lines": true,
  1451. "linewidth": 1,
  1452. "links": [],
  1453. "nullPointMode": "null as zero",
  1454. "options": {
  1455. "alertThreshold": true
  1456. },
  1457. "percentage": false,
  1458. "pluginVersion": "9.2.2",
  1459. "pointradius": 2,
  1460. "points": false,
  1461. "renderer": "flot",
  1462. "seriesOverrides": [],
  1463. "spaceLength": 10,
  1464. "stack": true,
  1465. "steppedLine": false,
  1466. "targets": [
  1467. {
  1468. "datasource": {
  1469. "uid": "$datasource"
  1470. },
  1471. "expr": "rate(synapse_http_server_response_ru_utime_seconds{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])+rate(synapse_http_server_response_ru_stime_seconds{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])",
  1472. "format": "time_series",
  1473. "hide": false,
  1474. "instant": false,
  1475. "intervalFactor": 1,
  1476. "legendFormat": "{{job}}-{{index}} {{method}} {{servlet}} {{tag}}",
  1477. "refId": "A"
  1478. },
  1479. {
  1480. "datasource": {
  1481. "uid": "$datasource"
  1482. },
  1483. "expr": "rate(synapse_background_process_ru_utime_seconds_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])+rate(synapse_background_process_ru_stime_seconds_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])",
  1484. "format": "time_series",
  1485. "hide": false,
  1486. "instant": false,
  1487. "interval": "",
  1488. "intervalFactor": 1,
  1489. "legendFormat": "{{job}}-{{index}} {{name}}",
  1490. "refId": "B"
  1491. }
  1492. ],
  1493. "thresholds": [
  1494. {
  1495. "colorMode": "critical",
  1496. "fill": true,
  1497. "line": true,
  1498. "op": "gt",
  1499. "value": 1,
  1500. "yaxis": "left"
  1501. }
  1502. ],
  1503. "timeRegions": [],
  1504. "title": "Stacked CPU usage",
  1505. "tooltip": {
  1506. "shared": false,
  1507. "sort": 0,
  1508. "value_type": "individual"
  1509. },
  1510. "type": "graph",
  1511. "xaxis": {
  1512. "mode": "time",
  1513. "show": true,
  1514. "values": []
  1515. },
  1516. "yaxes": [
  1517. {
  1518. "$$hashKey": "object:572",
  1519. "format": "percentunit",
  1520. "logBase": 1,
  1521. "show": true
  1522. },
  1523. {
  1524. "$$hashKey": "object:573",
  1525. "format": "short",
  1526. "logBase": 1,
  1527. "show": true
  1528. }
  1529. ],
  1530. "yaxis": {
  1531. "align": false
  1532. }
  1533. },
  1534. {
  1535. "aliasColors": {},
  1536. "bars": false,
  1537. "dashLength": 10,
  1538. "dashes": false,
  1539. "datasource": {
  1540. "type": "prometheus",
  1541. "uid": "$datasource"
  1542. },
  1543. "fieldConfig": {
  1544. "defaults": {
  1545. "links": []
  1546. },
  1547. "overrides": []
  1548. },
  1549. "fill": 1,
  1550. "fillGradient": 0,
  1551. "gridPos": {
  1552. "h": 7,
  1553. "w": 12,
  1554. "x": 0,
  1555. "y": 48
  1556. },
  1557. "hiddenSeries": false,
  1558. "id": 136,
  1559. "interval": "",
  1560. "legend": {
  1561. "avg": false,
  1562. "current": false,
  1563. "max": false,
  1564. "min": false,
  1565. "show": true,
  1566. "total": false,
  1567. "values": false
  1568. },
  1569. "lines": true,
  1570. "linewidth": 1,
  1571. "nullPointMode": "null",
  1572. "options": {
  1573. "alertThreshold": true
  1574. },
  1575. "percentage": false,
  1576. "pluginVersion": "9.2.2",
  1577. "pointradius": 2,
  1578. "points": false,
  1579. "renderer": "flot",
  1580. "seriesOverrides": [],
  1581. "spaceLength": 10,
  1582. "stack": false,
  1583. "steppedLine": false,
  1584. "targets": [
  1585. {
  1586. "datasource": {
  1587. "uid": "$datasource"
  1588. },
  1589. "editorMode": "code",
  1590. "expr": "rate(synapse_http_client_requests_total{job=~\"$job\",index=~\"$index\",instance=\"$instance\"}[$bucket_size])",
  1591. "legendFormat": "{{job}}-{{index}} {{method}}",
  1592. "range": true,
  1593. "refId": "A"
  1594. },
  1595. {
  1596. "datasource": {
  1597. "uid": "$datasource"
  1598. },
  1599. "editorMode": "code",
  1600. "expr": "rate(synapse_http_matrixfederationclient_requests_total{job=~\"$job\",index=~\"$index\",instance=\"$instance\"}[$bucket_size])",
  1601. "legendFormat": "{{job}}-{{index}} {{method}} (federation)",
  1602. "range": true,
  1603. "refId": "B"
  1604. }
  1605. ],
  1606. "thresholds": [],
  1607. "timeRegions": [],
  1608. "title": "Outgoing HTTP request rate",
  1609. "tooltip": {
  1610. "shared": false,
  1611. "sort": 0,
  1612. "value_type": "individual"
  1613. },
  1614. "type": "graph",
  1615. "xaxis": {
  1616. "mode": "time",
  1617. "show": true,
  1618. "values": []
  1619. },
  1620. "yaxes": [
  1621. {
  1622. "$$hashKey": "object:123",
  1623. "format": "reqps",
  1624. "logBase": 1,
  1625. "show": true
  1626. },
  1627. {
  1628. "$$hashKey": "object:124",
  1629. "format": "short",
  1630. "logBase": 1,
  1631. "show": true
  1632. }
  1633. ],
  1634. "yaxis": {
  1635. "align": false
  1636. }
  1637. },
  1638. {
  1639. "datasource": {
  1640. "type": "prometheus",
  1641. "uid": "${DS_PROMETHEUS}"
  1642. },
  1643. "fieldConfig": {
  1644. "defaults": {
  1645. "color": {
  1646. "mode": "palette-classic"
  1647. },
  1648. "custom": {
  1649. "axisCenteredZero": false,
  1650. "axisColorMode": "text",
  1651. "axisLabel": "active threads",
  1652. "axisPlacement": "auto",
  1653. "barAlignment": 0,
  1654. "drawStyle": "line",
  1655. "fillOpacity": 0,
  1656. "gradientMode": "none",
  1657. "hideFrom": {
  1658. "legend": false,
  1659. "tooltip": false,
  1660. "viz": false
  1661. },
  1662. "lineInterpolation": "linear",
  1663. "lineWidth": 1,
  1664. "pointSize": 5,
  1665. "scaleDistribution": {
  1666. "type": "linear"
  1667. },
  1668. "showPoints": "auto",
  1669. "spanNulls": false,
  1670. "stacking": {
  1671. "group": "A",
  1672. "mode": "none"
  1673. },
  1674. "thresholdsStyle": {
  1675. "mode": "off"
  1676. }
  1677. },
  1678. "mappings": [],
  1679. "thresholds": {
  1680. "mode": "absolute",
  1681. "steps": [
  1682. {
  1683. "color": "green"
  1684. },
  1685. {
  1686. "color": "red",
  1687. "value": 80
  1688. }
  1689. ]
  1690. }
  1691. },
  1692. "overrides": []
  1693. },
  1694. "gridPos": {
  1695. "h": 7,
  1696. "w": 12,
  1697. "x": 12,
  1698. "y": 48
  1699. },
  1700. "id": 207,
  1701. "options": {
  1702. "legend": {
  1703. "calcs": [],
  1704. "displayMode": "list",
  1705. "placement": "bottom",
  1706. "showLegend": true
  1707. },
  1708. "tooltip": {
  1709. "mode": "single",
  1710. "sort": "none"
  1711. }
  1712. },
  1713. "targets": [
  1714. {
  1715. "datasource": {
  1716. "type": "prometheus",
  1717. "uid": "${DS_PROMETHEUS}"
  1718. },
  1719. "exemplar": true,
  1720. "expr": "synapse_threadpool_working_threads{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}",
  1721. "interval": "",
  1722. "legendFormat": "{{job}}-{{index}} {{name}}",
  1723. "refId": "A"
  1724. }
  1725. ],
  1726. "title": "Threadpool activity",
  1727. "type": "timeseries"
  1728. }
  1729. ],
  1730. "targets": [
  1731. {
  1732. "datasource": {
  1733. "type": "prometheus",
  1734. "uid": "$datasource"
  1735. },
  1736. "refId": "A"
  1737. }
  1738. ],
  1739. "title": "Process info",
  1740. "type": "row"
  1741. },
  1742. {
  1743. "collapsed": true,
  1744. "datasource": {
  1745. "type": "prometheus",
  1746. "uid": "$datasource"
  1747. },
  1748. "gridPos": {
  1749. "h": 1,
  1750. "w": 24,
  1751. "x": 0,
  1752. "y": 27
  1753. },
  1754. "id": 56,
  1755. "panels": [
  1756. {
  1757. "cards": {
  1758. "cardPadding": -1,
  1759. "cardRound": 0
  1760. },
  1761. "color": {
  1762. "cardColor": "#b4ff00",
  1763. "colorScale": "sqrt",
  1764. "colorScheme": "interpolateInferno",
  1765. "exponent": 0.5,
  1766. "mode": "spectrum"
  1767. },
  1768. "dataFormat": "tsbuckets",
  1769. "datasource": {
  1770. "uid": "$datasource"
  1771. },
  1772. "fieldConfig": {
  1773. "defaults": {
  1774. "custom": {
  1775. "hideFrom": {
  1776. "legend": false,
  1777. "tooltip": false,
  1778. "viz": false
  1779. },
  1780. "scaleDistribution": {
  1781. "type": "linear"
  1782. }
  1783. }
  1784. },
  1785. "overrides": []
  1786. },
  1787. "gridPos": {
  1788. "h": 9,
  1789. "w": 12,
  1790. "x": 0,
  1791. "y": 56
  1792. },
  1793. "heatmap": {},
  1794. "hideZeroBuckets": false,
  1795. "highlightCards": true,
  1796. "id": 85,
  1797. "legend": {
  1798. "show": false
  1799. },
  1800. "links": [],
  1801. "options": {
  1802. "calculate": false,
  1803. "calculation": {},
  1804. "cellGap": -1,
  1805. "cellRadius": 0,
  1806. "cellValues": {},
  1807. "color": {
  1808. "exponent": 0.5,
  1809. "fill": "#b4ff00",
  1810. "mode": "scheme",
  1811. "reverse": false,
  1812. "scale": "exponential",
  1813. "scheme": "Inferno",
  1814. "steps": 128
  1815. },
  1816. "exemplars": {
  1817. "color": "rgba(255,0,255,0.7)"
  1818. },
  1819. "filterValues": {
  1820. "le": 1e-9
  1821. },
  1822. "legend": {
  1823. "show": false
  1824. },
  1825. "rowsFrame": {
  1826. "layout": "auto"
  1827. },
  1828. "showValue": "never",
  1829. "tooltip": {
  1830. "show": true,
  1831. "yHistogram": true
  1832. },
  1833. "yAxis": {
  1834. "axisPlacement": "left",
  1835. "reverse": false,
  1836. "unit": "s"
  1837. }
  1838. },
  1839. "pluginVersion": "9.2.2",
  1840. "reverseYBuckets": false,
  1841. "targets": [
  1842. {
  1843. "datasource": {
  1844. "uid": "$datasource"
  1845. },
  1846. "expr": "sum(rate(synapse_http_server_response_time_seconds_bucket{servlet='RoomSendEventRestServlet',instance=\"$instance\"}[$bucket_size])) by (le)",
  1847. "format": "heatmap",
  1848. "intervalFactor": 1,
  1849. "legendFormat": "{{le}}",
  1850. "refId": "A"
  1851. }
  1852. ],
  1853. "title": "Event Send Time (Including errors, across all workers)",
  1854. "tooltip": {
  1855. "show": true,
  1856. "showHistogram": true
  1857. },
  1858. "type": "heatmap",
  1859. "xAxis": {
  1860. "show": true
  1861. },
  1862. "yAxis": {
  1863. "format": "s",
  1864. "logBase": 2,
  1865. "show": true
  1866. },
  1867. "yBucketBound": "auto"
  1868. },
  1869. {
  1870. "aliasColors": {},
  1871. "bars": false,
  1872. "dashLength": 10,
  1873. "dashes": false,
  1874. "datasource": {
  1875. "uid": "$datasource"
  1876. },
  1877. "description": "",
  1878. "editable": true,
  1879. "error": false,
  1880. "fieldConfig": {
  1881. "defaults": {
  1882. "links": []
  1883. },
  1884. "overrides": []
  1885. },
  1886. "fill": 1,
  1887. "fillGradient": 0,
  1888. "grid": {},
  1889. "gridPos": {
  1890. "h": 9,
  1891. "w": 12,
  1892. "x": 12,
  1893. "y": 56
  1894. },
  1895. "hiddenSeries": false,
  1896. "id": 33,
  1897. "legend": {
  1898. "avg": false,
  1899. "current": false,
  1900. "max": false,
  1901. "min": false,
  1902. "show": false,
  1903. "total": false,
  1904. "values": false
  1905. },
  1906. "lines": true,
  1907. "linewidth": 2,
  1908. "links": [],
  1909. "nullPointMode": "null",
  1910. "options": {
  1911. "alertThreshold": true
  1912. },
  1913. "paceLength": 10,
  1914. "percentage": false,
  1915. "pluginVersion": "9.2.2",
  1916. "pointradius": 5,
  1917. "points": false,
  1918. "renderer": "flot",
  1919. "seriesOverrides": [],
  1920. "spaceLength": 10,
  1921. "stack": false,
  1922. "steppedLine": false,
  1923. "targets": [
  1924. {
  1925. "datasource": {
  1926. "uid": "$datasource"
  1927. },
  1928. "expr": "sum(rate(synapse_storage_events_persisted_events_total{instance=\"$instance\"}[$bucket_size])) without (job,index)",
  1929. "format": "time_series",
  1930. "interval": "",
  1931. "intervalFactor": 2,
  1932. "legendFormat": "",
  1933. "refId": "A",
  1934. "step": 20,
  1935. "target": ""
  1936. }
  1937. ],
  1938. "thresholds": [],
  1939. "timeRegions": [],
  1940. "title": "Events Persisted (all workers)",
  1941. "tooltip": {
  1942. "shared": true,
  1943. "sort": 0,
  1944. "value_type": "cumulative"
  1945. },
  1946. "type": "graph",
  1947. "xaxis": {
  1948. "mode": "time",
  1949. "show": true,
  1950. "values": []
  1951. },
  1952. "yaxes": [
  1953. {
  1954. "$$hashKey": "object:102",
  1955. "format": "hertz",
  1956. "logBase": 1,
  1957. "show": true
  1958. },
  1959. {
  1960. "$$hashKey": "object:103",
  1961. "format": "short",
  1962. "logBase": 1,
  1963. "show": true
  1964. }
  1965. ],
  1966. "yaxis": {
  1967. "align": false
  1968. }
  1969. },
  1970. {
  1971. "aliasColors": {},
  1972. "bars": false,
  1973. "dashLength": 10,
  1974. "dashes": false,
  1975. "datasource": {
  1976. "uid": "$datasource"
  1977. },
  1978. "decimals": 1,
  1979. "fill": 1,
  1980. "fillGradient": 0,
  1981. "gridPos": {
  1982. "h": 7,
  1983. "w": 12,
  1984. "x": 0,
  1985. "y": 65
  1986. },
  1987. "hiddenSeries": false,
  1988. "id": 40,
  1989. "legend": {
  1990. "avg": false,
  1991. "current": false,
  1992. "max": false,
  1993. "min": false,
  1994. "show": true,
  1995. "total": false,
  1996. "values": false
  1997. },
  1998. "lines": true,
  1999. "linewidth": 1,
  2000. "links": [],
  2001. "nullPointMode": "null",
  2002. "options": {
  2003. "alertThreshold": true
  2004. },
  2005. "percentage": false,
  2006. "pluginVersion": "9.2.2",
  2007. "pointradius": 5,
  2008. "points": false,
  2009. "renderer": "flot",
  2010. "seriesOverrides": [],
  2011. "spaceLength": 10,
  2012. "stack": false,
  2013. "steppedLine": false,
  2014. "targets": [
  2015. {
  2016. "datasource": {
  2017. "uid": "$datasource"
  2018. },
  2019. "expr": "rate(synapse_storage_events_persisted_by_source_type{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])",
  2020. "format": "time_series",
  2021. "intervalFactor": 2,
  2022. "legendFormat": "{{type}}",
  2023. "refId": "D"
  2024. }
  2025. ],
  2026. "thresholds": [],
  2027. "timeRegions": [],
  2028. "title": "Events/s Local vs Remote",
  2029. "tooltip": {
  2030. "shared": true,
  2031. "sort": 2,
  2032. "value_type": "individual"
  2033. },
  2034. "type": "graph",
  2035. "xaxis": {
  2036. "mode": "time",
  2037. "show": true,
  2038. "values": []
  2039. },
  2040. "yaxes": [
  2041. {
  2042. "format": "hertz",
  2043. "label": "",
  2044. "logBase": 1,
  2045. "min": "0",
  2046. "show": true
  2047. },
  2048. {
  2049. "format": "short",
  2050. "logBase": 1,
  2051. "show": true
  2052. }
  2053. ],
  2054. "yaxis": {
  2055. "align": false
  2056. }
  2057. },
  2058. {
  2059. "aliasColors": {},
  2060. "bars": false,
  2061. "dashLength": 10,
  2062. "dashes": false,
  2063. "datasource": {
  2064. "uid": "$datasource"
  2065. },
  2066. "decimals": 1,
  2067. "fill": 1,
  2068. "fillGradient": 0,
  2069. "gridPos": {
  2070. "h": 7,
  2071. "w": 12,
  2072. "x": 12,
  2073. "y": 65
  2074. },
  2075. "hiddenSeries": false,
  2076. "id": 46,
  2077. "legend": {
  2078. "avg": false,
  2079. "current": false,
  2080. "max": false,
  2081. "min": false,
  2082. "show": true,
  2083. "total": false,
  2084. "values": false
  2085. },
  2086. "lines": true,
  2087. "linewidth": 1,
  2088. "links": [],
  2089. "nullPointMode": "null",
  2090. "options": {
  2091. "alertThreshold": true
  2092. },
  2093. "percentage": false,
  2094. "pluginVersion": "9.2.2",
  2095. "pointradius": 5,
  2096. "points": false,
  2097. "renderer": "flot",
  2098. "seriesOverrides": [],
  2099. "spaceLength": 10,
  2100. "stack": false,
  2101. "steppedLine": false,
  2102. "targets": [
  2103. {
  2104. "datasource": {
  2105. "uid": "$datasource"
  2106. },
  2107. "expr": "rate(synapse_storage_events_persisted_by_event_type{job=~\"$job\",index=~\"$index\",instance=\"$instance\"}[$bucket_size])",
  2108. "format": "time_series",
  2109. "instant": false,
  2110. "intervalFactor": 2,
  2111. "legendFormat": "{{type}}",
  2112. "refId": "A",
  2113. "step": 20
  2114. }
  2115. ],
  2116. "thresholds": [],
  2117. "timeRegions": [],
  2118. "title": "Events/s by Type",
  2119. "tooltip": {
  2120. "shared": false,
  2121. "sort": 2,
  2122. "value_type": "individual"
  2123. },
  2124. "type": "graph",
  2125. "xaxis": {
  2126. "mode": "time",
  2127. "show": true,
  2128. "values": []
  2129. },
  2130. "yaxes": [
  2131. {
  2132. "format": "hertz",
  2133. "logBase": 1,
  2134. "min": "0",
  2135. "show": true
  2136. },
  2137. {
  2138. "format": "short",
  2139. "logBase": 1,
  2140. "show": true
  2141. }
  2142. ],
  2143. "yaxis": {
  2144. "align": false
  2145. }
  2146. },
  2147. {
  2148. "aliasColors": {
  2149. "irc-freenode (local)": "#EAB839"
  2150. },
  2151. "bars": false,
  2152. "dashLength": 10,
  2153. "dashes": false,
  2154. "datasource": {
  2155. "uid": "$datasource"
  2156. },
  2157. "decimals": 1,
  2158. "fill": 1,
  2159. "fillGradient": 0,
  2160. "gridPos": {
  2161. "h": 7,
  2162. "w": 12,
  2163. "x": 0,
  2164. "y": 72
  2165. },
  2166. "hiddenSeries": false,
  2167. "id": 44,
  2168. "legend": {
  2169. "alignAsTable": true,
  2170. "avg": false,
  2171. "current": false,
  2172. "hideEmpty": true,
  2173. "hideZero": true,
  2174. "max": false,
  2175. "min": false,
  2176. "show": true,
  2177. "total": false,
  2178. "values": false
  2179. },
  2180. "lines": true,
  2181. "linewidth": 1,
  2182. "links": [],
  2183. "nullPointMode": "null",
  2184. "options": {
  2185. "alertThreshold": true
  2186. },
  2187. "percentage": false,
  2188. "pluginVersion": "9.2.2",
  2189. "pointradius": 5,
  2190. "points": false,
  2191. "renderer": "flot",
  2192. "seriesOverrides": [],
  2193. "spaceLength": 10,
  2194. "stack": false,
  2195. "steppedLine": false,
  2196. "targets": [
  2197. {
  2198. "datasource": {
  2199. "uid": "$datasource"
  2200. },
  2201. "expr": "rate(synapse_storage_events_persisted_by_origin{job=~\"$job\",index=~\"$index\",instance=\"$instance\"}[$bucket_size])",
  2202. "format": "time_series",
  2203. "intervalFactor": 2,
  2204. "legendFormat": "{{origin_entity}} ({{origin_type}})",
  2205. "refId": "A",
  2206. "step": 20
  2207. }
  2208. ],
  2209. "thresholds": [],
  2210. "timeRegions": [],
  2211. "title": "Events/s by Origin",
  2212. "tooltip": {
  2213. "shared": false,
  2214. "sort": 2,
  2215. "value_type": "individual"
  2216. },
  2217. "type": "graph",
  2218. "xaxis": {
  2219. "mode": "time",
  2220. "show": true,
  2221. "values": []
  2222. },
  2223. "yaxes": [
  2224. {
  2225. "format": "hertz",
  2226. "logBase": 1,
  2227. "min": "0",
  2228. "show": true
  2229. },
  2230. {
  2231. "format": "short",
  2232. "logBase": 1,
  2233. "show": true
  2234. }
  2235. ],
  2236. "yaxis": {
  2237. "align": false
  2238. }
  2239. },
  2240. {
  2241. "aliasColors": {},
  2242. "bars": false,
  2243. "dashLength": 10,
  2244. "dashes": false,
  2245. "datasource": {
  2246. "type": "prometheus",
  2247. "uid": "$datasource"
  2248. },
  2249. "decimals": 1,
  2250. "fill": 1,
  2251. "fillGradient": 0,
  2252. "gridPos": {
  2253. "h": 7,
  2254. "w": 12,
  2255. "x": 12,
  2256. "y": 72
  2257. },
  2258. "hiddenSeries": false,
  2259. "id": 45,
  2260. "legend": {
  2261. "alignAsTable": true,
  2262. "avg": false,
  2263. "current": false,
  2264. "hideEmpty": true,
  2265. "hideZero": true,
  2266. "max": false,
  2267. "min": false,
  2268. "show": true,
  2269. "total": false,
  2270. "values": false
  2271. },
  2272. "lines": true,
  2273. "linewidth": 1,
  2274. "links": [],
  2275. "nullPointMode": "null",
  2276. "options": {
  2277. "alertThreshold": true
  2278. },
  2279. "percentage": false,
  2280. "pluginVersion": "9.2.2",
  2281. "pointradius": 5,
  2282. "points": false,
  2283. "renderer": "flot",
  2284. "seriesOverrides": [],
  2285. "spaceLength": 10,
  2286. "stack": false,
  2287. "steppedLine": false,
  2288. "targets": [
  2289. {
  2290. "datasource": {
  2291. "uid": "$datasource"
  2292. },
  2293. "editorMode": "code",
  2294. "expr": "sum(rate(synapse_storage_events_persisted_events_sep_total{job=~\"$job\",index=~\"$index\", type=\"m.room.member\",instance=\"$instance\", origin_type=\"local\"}[$bucket_size])) by (origin_type, origin_entity)",
  2295. "format": "time_series",
  2296. "intervalFactor": 2,
  2297. "legendFormat": "{{origin_entity}} ({{origin_type}})",
  2298. "range": true,
  2299. "refId": "A",
  2300. "step": 20
  2301. }
  2302. ],
  2303. "thresholds": [],
  2304. "timeRegions": [],
  2305. "title": "Memberships/s by Origin",
  2306. "tooltip": {
  2307. "shared": true,
  2308. "sort": 2,
  2309. "value_type": "individual"
  2310. },
  2311. "type": "graph",
  2312. "xaxis": {
  2313. "mode": "time",
  2314. "show": true,
  2315. "values": []
  2316. },
  2317. "yaxes": [
  2318. {
  2319. "$$hashKey": "object:232",
  2320. "format": "hertz",
  2321. "logBase": 1,
  2322. "min": "0",
  2323. "show": true
  2324. },
  2325. {
  2326. "$$hashKey": "object:233",
  2327. "format": "short",
  2328. "logBase": 1,
  2329. "show": true
  2330. }
  2331. ],
  2332. "yaxis": {
  2333. "align": false
  2334. }
  2335. },
  2336. {
  2337. "aliasColors": {},
  2338. "bars": false,
  2339. "dashLength": 10,
  2340. "dashes": false,
  2341. "datasource": {
  2342. "type": "prometheus",
  2343. "uid": "${DS_PROMETHEUS}"
  2344. },
  2345. "fieldConfig": {
  2346. "defaults": {
  2347. "links": []
  2348. },
  2349. "overrides": []
  2350. },
  2351. "fill": 0,
  2352. "fillGradient": 0,
  2353. "gridPos": {
  2354. "h": 9,
  2355. "w": 12,
  2356. "x": 0,
  2357. "y": 79
  2358. },
  2359. "hiddenSeries": false,
  2360. "id": 118,
  2361. "legend": {
  2362. "avg": false,
  2363. "current": false,
  2364. "max": false,
  2365. "min": false,
  2366. "show": true,
  2367. "total": false,
  2368. "values": false
  2369. },
  2370. "lines": true,
  2371. "linewidth": 1,
  2372. "links": [],
  2373. "nullPointMode": "null",
  2374. "options": {
  2375. "alertThreshold": true
  2376. },
  2377. "paceLength": 10,
  2378. "percentage": false,
  2379. "pluginVersion": "9.2.2",
  2380. "pointradius": 5,
  2381. "points": false,
  2382. "renderer": "flot",
  2383. "repeatDirection": "h",
  2384. "seriesOverrides": [
  2385. {
  2386. "$$hashKey": "object:316",
  2387. "alias": "mean",
  2388. "linewidth": 2
  2389. }
  2390. ],
  2391. "spaceLength": 10,
  2392. "stack": false,
  2393. "steppedLine": false,
  2394. "targets": [
  2395. {
  2396. "datasource": {
  2397. "type": "prometheus",
  2398. "uid": "${DS_PROMETHEUS}"
  2399. },
  2400. "exemplar": true,
  2401. "expr": "histogram_quantile(0.99, sum(rate(synapse_http_server_response_time_seconds_bucket{servlet='RoomSendEventRestServlet',instance=\"$instance\",code=~\"2..\",job=~\"$job\",index=~\"$index\"}[$bucket_size])) without (method))",
  2402. "format": "time_series",
  2403. "interval": "",
  2404. "intervalFactor": 1,
  2405. "legendFormat": "{{job}}-{{index}} 99%",
  2406. "refId": "A"
  2407. },
  2408. {
  2409. "datasource": {
  2410. "type": "prometheus",
  2411. "uid": "${DS_PROMETHEUS}"
  2412. },
  2413. "expr": "histogram_quantile(0.95, sum(rate(synapse_http_server_response_time_seconds_bucket{servlet='RoomSendEventRestServlet',instance=\"$instance\",code=~\"2..\",job=~\"$job\",index=~\"$index\"}[$bucket_size])) without (method))",
  2414. "format": "time_series",
  2415. "interval": "",
  2416. "intervalFactor": 1,
  2417. "legendFormat": "{{job}}-{{index}} 95%",
  2418. "refId": "B"
  2419. },
  2420. {
  2421. "datasource": {
  2422. "type": "prometheus",
  2423. "uid": "${DS_PROMETHEUS}"
  2424. },
  2425. "expr": "histogram_quantile(0.90, sum(rate(synapse_http_server_response_time_seconds_bucket{servlet='RoomSendEventRestServlet',instance=\"$instance\",code=~\"2..\",job=~\"$job\",index=~\"$index\"}[$bucket_size])) without (method))",
  2426. "format": "time_series",
  2427. "intervalFactor": 1,
  2428. "legendFormat": "{{job}}-{{index}} 90%",
  2429. "refId": "C"
  2430. },
  2431. {
  2432. "datasource": {
  2433. "type": "prometheus",
  2434. "uid": "${DS_PROMETHEUS}"
  2435. },
  2436. "expr": "histogram_quantile(0.50, sum(rate(synapse_http_server_response_time_seconds_bucket{servlet='RoomSendEventRestServlet',instance=\"$instance\",code=~\"2..\",job=~\"$job\",index=~\"$index\"}[$bucket_size])) without (method))",
  2437. "format": "time_series",
  2438. "intervalFactor": 1,
  2439. "legendFormat": "{{job}}-{{index}} 50%",
  2440. "refId": "D"
  2441. },
  2442. {
  2443. "datasource": {
  2444. "type": "prometheus",
  2445. "uid": "${DS_PROMETHEUS}"
  2446. },
  2447. "editorMode": "code",
  2448. "expr": "sum(rate(synapse_http_server_response_time_seconds_sum{servlet='RoomSendEventRestServlet',instance=\"$instance\",code=~\"2..\",job=~\"$job\",index=~\"$index\"}[$bucket_size])) without (method) / sum(rate(synapse_http_server_response_time_seconds_count{servlet='RoomSendEventRestServlet',instance=\"$instance\",code=~\"2..\",job=~\"$job\",index=~\"$index\"}[$bucket_size])) without (method)",
  2449. "format": "time_series",
  2450. "intervalFactor": 1,
  2451. "legendFormat": "{{job}}-{{index}} mean",
  2452. "range": true,
  2453. "refId": "E"
  2454. }
  2455. ],
  2456. "thresholds": [],
  2457. "timeRegions": [],
  2458. "title": "Event send time quantiles by worker",
  2459. "tooltip": {
  2460. "shared": true,
  2461. "sort": 0,
  2462. "value_type": "individual"
  2463. },
  2464. "type": "graph",
  2465. "xaxis": {
  2466. "mode": "time",
  2467. "show": true,
  2468. "values": []
  2469. },
  2470. "yaxes": [
  2471. {
  2472. "$$hashKey": "object:263",
  2473. "format": "s",
  2474. "logBase": 1,
  2475. "show": true
  2476. },
  2477. {
  2478. "$$hashKey": "object:264",
  2479. "format": "short",
  2480. "logBase": 1,
  2481. "show": true
  2482. }
  2483. ],
  2484. "yaxis": {
  2485. "align": false
  2486. }
  2487. },
  2488. {
  2489. "datasource": {
  2490. "type": "prometheus",
  2491. "uid": "$datasource"
  2492. },
  2493. "description": "CPU and DB time spent on most expensive state resolution in a room, summed over all workers. This is a very rough proxy for \"how fast is state res\", but it doesn't accurately represent the system load (e.g. it completely ignores cheap state resolutions).\n",
  2494. "fieldConfig": {
  2495. "defaults": {
  2496. "color": {
  2497. "mode": "palette-classic"
  2498. },
  2499. "custom": {
  2500. "axisCenteredZero": false,
  2501. "axisColorMode": "text",
  2502. "axisLabel": "",
  2503. "axisPlacement": "auto",
  2504. "barAlignment": 0,
  2505. "drawStyle": "line",
  2506. "fillOpacity": 30,
  2507. "gradientMode": "none",
  2508. "hideFrom": {
  2509. "legend": false,
  2510. "tooltip": false,
  2511. "viz": false
  2512. },
  2513. "lineInterpolation": "linear",
  2514. "lineWidth": 1,
  2515. "pointSize": 5,
  2516. "scaleDistribution": {
  2517. "type": "linear"
  2518. },
  2519. "showPoints": "auto",
  2520. "spanNulls": false,
  2521. "stacking": {
  2522. "group": "A",
  2523. "mode": "normal"
  2524. },
  2525. "thresholdsStyle": {
  2526. "mode": "off"
  2527. }
  2528. },
  2529. "mappings": [],
  2530. "thresholds": {
  2531. "mode": "absolute",
  2532. "steps": [
  2533. {
  2534. "color": "green"
  2535. },
  2536. {
  2537. "color": "red",
  2538. "value": 80
  2539. }
  2540. ]
  2541. },
  2542. "unit": "s/s"
  2543. },
  2544. "overrides": []
  2545. },
  2546. "gridPos": {
  2547. "h": 9,
  2548. "w": 12,
  2549. "x": 12,
  2550. "y": 79
  2551. },
  2552. "id": 222,
  2553. "options": {
  2554. "legend": {
  2555. "calcs": [],
  2556. "displayMode": "list",
  2557. "placement": "bottom",
  2558. "showLegend": false
  2559. },
  2560. "tooltip": {
  2561. "mode": "multi",
  2562. "sort": "none"
  2563. }
  2564. },
  2565. "targets": [
  2566. {
  2567. "datasource": {
  2568. "type": "prometheus",
  2569. "uid": "$datasource"
  2570. },
  2571. "exemplar": false,
  2572. "expr": "sum(rate(synapse_state_res_db_for_biggest_room_seconds_total{instance=\"$instance\"}[1m]))",
  2573. "format": "time_series",
  2574. "hide": false,
  2575. "instant": false,
  2576. "interval": "",
  2577. "legendFormat": "DB time",
  2578. "refId": "B"
  2579. },
  2580. {
  2581. "datasource": {
  2582. "type": "prometheus",
  2583. "uid": "$datasource"
  2584. },
  2585. "exemplar": false,
  2586. "expr": "sum(rate(synapse_state_res_cpu_for_biggest_room_seconds_total{instance=\"$instance\"}[1m]))",
  2587. "format": "time_series",
  2588. "hide": false,
  2589. "instant": false,
  2590. "interval": "",
  2591. "legendFormat": "CPU time",
  2592. "refId": "C"
  2593. }
  2594. ],
  2595. "title": "Stateres worst-case",
  2596. "type": "timeseries"
  2597. }
  2598. ],
  2599. "targets": [
  2600. {
  2601. "datasource": {
  2602. "type": "prometheus",
  2603. "uid": "$datasource"
  2604. },
  2605. "refId": "A"
  2606. }
  2607. ],
  2608. "title": "Event persistence",
  2609. "type": "row"
  2610. },
  2611. {
  2612. "collapsed": true,
  2613. "datasource": {
  2614. "type": "prometheus",
  2615. "uid": "$datasource"
  2616. },
  2617. "gridPos": {
  2618. "h": 1,
  2619. "w": 24,
  2620. "x": 0,
  2621. "y": 28
  2622. },
  2623. "id": 57,
  2624. "panels": [
  2625. {
  2626. "aliasColors": {},
  2627. "bars": false,
  2628. "dashLength": 10,
  2629. "dashes": false,
  2630. "datasource": {
  2631. "type": "prometheus",
  2632. "uid": "$datasource"
  2633. },
  2634. "editable": true,
  2635. "error": false,
  2636. "fieldConfig": {
  2637. "defaults": {
  2638. "links": []
  2639. },
  2640. "overrides": []
  2641. },
  2642. "fill": 2,
  2643. "fillGradient": 0,
  2644. "grid": {},
  2645. "gridPos": {
  2646. "h": 8,
  2647. "w": 12,
  2648. "x": 0,
  2649. "y": 57
  2650. },
  2651. "hiddenSeries": false,
  2652. "id": 4,
  2653. "legend": {
  2654. "alignAsTable": true,
  2655. "avg": false,
  2656. "current": false,
  2657. "hideEmpty": false,
  2658. "hideZero": true,
  2659. "max": false,
  2660. "min": false,
  2661. "rightSide": false,
  2662. "show": true,
  2663. "total": false,
  2664. "values": false
  2665. },
  2666. "lines": true,
  2667. "linewidth": 1,
  2668. "links": [],
  2669. "nullPointMode": "null",
  2670. "options": {
  2671. "alertThreshold": true
  2672. },
  2673. "percentage": false,
  2674. "pluginVersion": "9.2.2",
  2675. "pointradius": 5,
  2676. "points": false,
  2677. "renderer": "flot",
  2678. "seriesOverrides": [],
  2679. "spaceLength": 10,
  2680. "stack": false,
  2681. "steppedLine": false,
  2682. "targets": [
  2683. {
  2684. "datasource": {
  2685. "uid": "$datasource"
  2686. },
  2687. "expr": "rate(synapse_http_server_requests_received_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])",
  2688. "format": "time_series",
  2689. "interval": "",
  2690. "intervalFactor": 2,
  2691. "legendFormat": "{{job}}-{{index}} {{method}} {{servlet}} {{tag}}",
  2692. "refId": "A",
  2693. "step": 20
  2694. }
  2695. ],
  2696. "thresholds": [
  2697. {
  2698. "$$hashKey": "object:234",
  2699. "colorMode": "custom",
  2700. "fill": true,
  2701. "fillColor": "rgba(216, 200, 27, 0.27)",
  2702. "op": "gt",
  2703. "value": 100,
  2704. "yaxis": "left"
  2705. },
  2706. {
  2707. "$$hashKey": "object:235",
  2708. "colorMode": "custom",
  2709. "fill": true,
  2710. "fillColor": "rgba(234, 112, 112, 0.22)",
  2711. "op": "gt",
  2712. "value": 250,
  2713. "yaxis": "left"
  2714. }
  2715. ],
  2716. "timeRegions": [],
  2717. "title": "Request Count by arrival time",
  2718. "tooltip": {
  2719. "shared": false,
  2720. "sort": 2,
  2721. "value_type": "individual"
  2722. },
  2723. "type": "graph",
  2724. "xaxis": {
  2725. "mode": "time",
  2726. "show": true,
  2727. "values": []
  2728. },
  2729. "yaxes": [
  2730. {
  2731. "$$hashKey": "object:206",
  2732. "format": "hertz",
  2733. "logBase": 1,
  2734. "show": true
  2735. },
  2736. {
  2737. "$$hashKey": "object:207",
  2738. "format": "short",
  2739. "logBase": 1,
  2740. "show": true
  2741. }
  2742. ],
  2743. "yaxis": {
  2744. "align": false
  2745. }
  2746. },
  2747. {
  2748. "aliasColors": {},
  2749. "bars": false,
  2750. "dashLength": 10,
  2751. "dashes": false,
  2752. "datasource": {
  2753. "type": "prometheus",
  2754. "uid": "$datasource"
  2755. },
  2756. "editable": true,
  2757. "error": false,
  2758. "fieldConfig": {
  2759. "defaults": {
  2760. "links": []
  2761. },
  2762. "overrides": []
  2763. },
  2764. "fill": 1,
  2765. "fillGradient": 0,
  2766. "grid": {},
  2767. "gridPos": {
  2768. "h": 8,
  2769. "w": 12,
  2770. "x": 12,
  2771. "y": 57
  2772. },
  2773. "hiddenSeries": false,
  2774. "id": 32,
  2775. "legend": {
  2776. "avg": false,
  2777. "current": false,
  2778. "max": false,
  2779. "min": false,
  2780. "show": true,
  2781. "total": false,
  2782. "values": false
  2783. },
  2784. "lines": true,
  2785. "linewidth": 2,
  2786. "links": [],
  2787. "nullPointMode": "null",
  2788. "options": {
  2789. "alertThreshold": true
  2790. },
  2791. "percentage": false,
  2792. "pluginVersion": "9.2.2",
  2793. "pointradius": 5,
  2794. "points": false,
  2795. "renderer": "flot",
  2796. "seriesOverrides": [],
  2797. "spaceLength": 10,
  2798. "stack": false,
  2799. "steppedLine": false,
  2800. "targets": [
  2801. {
  2802. "datasource": {
  2803. "uid": "$datasource"
  2804. },
  2805. "expr": "rate(synapse_http_server_requests_received_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\",method!=\"OPTIONS\"}[$bucket_size]) and topk(10,synapse_http_server_requests_received_total{instance=\"$instance\",job=~\"$job\",method!=\"OPTIONS\"})",
  2806. "format": "time_series",
  2807. "intervalFactor": 2,
  2808. "legendFormat": "{{method}} {{servlet}} {{job}}-{{index}}",
  2809. "refId": "A",
  2810. "step": 20,
  2811. "target": ""
  2812. }
  2813. ],
  2814. "thresholds": [],
  2815. "timeRegions": [],
  2816. "title": "Top 10 Request Counts",
  2817. "tooltip": {
  2818. "shared": false,
  2819. "sort": 2,
  2820. "value_type": "cumulative"
  2821. },
  2822. "type": "graph",
  2823. "xaxis": {
  2824. "mode": "time",
  2825. "show": true,
  2826. "values": []
  2827. },
  2828. "yaxes": [
  2829. {
  2830. "$$hashKey": "object:305",
  2831. "format": "hertz",
  2832. "logBase": 1,
  2833. "show": true
  2834. },
  2835. {
  2836. "$$hashKey": "object:306",
  2837. "format": "short",
  2838. "logBase": 1,
  2839. "show": true
  2840. }
  2841. ],
  2842. "yaxis": {
  2843. "align": false
  2844. }
  2845. },
  2846. {
  2847. "aliasColors": {},
  2848. "bars": false,
  2849. "dashLength": 10,
  2850. "dashes": false,
  2851. "datasource": {
  2852. "type": "prometheus",
  2853. "uid": "$datasource"
  2854. },
  2855. "editable": true,
  2856. "error": false,
  2857. "fieldConfig": {
  2858. "defaults": {
  2859. "links": []
  2860. },
  2861. "overrides": []
  2862. },
  2863. "fill": 2,
  2864. "fillGradient": 0,
  2865. "grid": {},
  2866. "gridPos": {
  2867. "h": 8,
  2868. "w": 12,
  2869. "x": 0,
  2870. "y": 65
  2871. },
  2872. "hiddenSeries": false,
  2873. "id": 139,
  2874. "legend": {
  2875. "alignAsTable": true,
  2876. "avg": false,
  2877. "current": false,
  2878. "hideEmpty": false,
  2879. "hideZero": true,
  2880. "max": false,
  2881. "min": false,
  2882. "rightSide": false,
  2883. "show": true,
  2884. "total": false,
  2885. "values": false
  2886. },
  2887. "lines": true,
  2888. "linewidth": 1,
  2889. "links": [],
  2890. "nullPointMode": "null",
  2891. "options": {
  2892. "alertThreshold": true
  2893. },
  2894. "percentage": false,
  2895. "pluginVersion": "9.2.2",
  2896. "pointradius": 5,
  2897. "points": false,
  2898. "renderer": "flot",
  2899. "seriesOverrides": [],
  2900. "spaceLength": 10,
  2901. "stack": false,
  2902. "steppedLine": false,
  2903. "targets": [
  2904. {
  2905. "datasource": {
  2906. "uid": "$datasource"
  2907. },
  2908. "expr": "rate(synapse_http_server_in_flight_requests_ru_utime_seconds_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])+rate(synapse_http_server_in_flight_requests_ru_stime_seconds_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])",
  2909. "format": "time_series",
  2910. "interval": "",
  2911. "intervalFactor": 1,
  2912. "legendFormat": "{{job}}-{{index}} {{method}} {{servlet}} {{tag}}",
  2913. "refId": "A",
  2914. "step": 20
  2915. }
  2916. ],
  2917. "thresholds": [
  2918. {
  2919. "$$hashKey": "object:135",
  2920. "colorMode": "custom",
  2921. "fill": true,
  2922. "fillColor": "rgba(216, 200, 27, 0.27)",
  2923. "op": "gt",
  2924. "value": 100,
  2925. "yaxis": "left"
  2926. },
  2927. {
  2928. "$$hashKey": "object:136",
  2929. "colorMode": "custom",
  2930. "fill": true,
  2931. "fillColor": "rgba(234, 112, 112, 0.22)",
  2932. "op": "gt",
  2933. "value": 250,
  2934. "yaxis": "left"
  2935. }
  2936. ],
  2937. "timeRegions": [],
  2938. "title": "Total CPU Usage by Endpoint",
  2939. "tooltip": {
  2940. "shared": false,
  2941. "sort": 2,
  2942. "value_type": "individual"
  2943. },
  2944. "type": "graph",
  2945. "xaxis": {
  2946. "mode": "time",
  2947. "show": true,
  2948. "values": []
  2949. },
  2950. "yaxes": [
  2951. {
  2952. "$$hashKey": "object:107",
  2953. "format": "percentunit",
  2954. "logBase": 1,
  2955. "show": true
  2956. },
  2957. {
  2958. "$$hashKey": "object:108",
  2959. "format": "short",
  2960. "logBase": 1,
  2961. "show": true
  2962. }
  2963. ],
  2964. "yaxis": {
  2965. "align": false
  2966. }
  2967. },
  2968. {
  2969. "aliasColors": {},
  2970. "bars": false,
  2971. "dashLength": 10,
  2972. "dashes": false,
  2973. "datasource": {
  2974. "type": "prometheus",
  2975. "uid": "$datasource"
  2976. },
  2977. "editable": true,
  2978. "error": false,
  2979. "fieldConfig": {
  2980. "defaults": {
  2981. "links": []
  2982. },
  2983. "overrides": []
  2984. },
  2985. "fill": 0,
  2986. "fillGradient": 0,
  2987. "grid": {},
  2988. "gridPos": {
  2989. "h": 8,
  2990. "w": 12,
  2991. "x": 12,
  2992. "y": 65
  2993. },
  2994. "hiddenSeries": false,
  2995. "id": 52,
  2996. "legend": {
  2997. "alignAsTable": true,
  2998. "avg": false,
  2999. "current": false,
  3000. "hideEmpty": false,
  3001. "hideZero": true,
  3002. "max": false,
  3003. "min": false,
  3004. "rightSide": false,
  3005. "show": true,
  3006. "total": false,
  3007. "values": false
  3008. },
  3009. "lines": true,
  3010. "linewidth": 1,
  3011. "links": [],
  3012. "nullPointMode": "null",
  3013. "options": {
  3014. "alertThreshold": true
  3015. },
  3016. "percentage": false,
  3017. "pluginVersion": "9.2.2",
  3018. "pointradius": 5,
  3019. "points": false,
  3020. "renderer": "flot",
  3021. "seriesOverrides": [],
  3022. "spaceLength": 10,
  3023. "stack": false,
  3024. "steppedLine": false,
  3025. "targets": [
  3026. {
  3027. "datasource": {
  3028. "uid": "$datasource"
  3029. },
  3030. "expr": "(rate(synapse_http_server_in_flight_requests_ru_utime_seconds_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])+rate(synapse_http_server_in_flight_requests_ru_stime_seconds_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])) / rate(synapse_http_server_requests_received_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])",
  3031. "format": "time_series",
  3032. "interval": "",
  3033. "intervalFactor": 1,
  3034. "legendFormat": "{{job}}-{{index}} {{method}} {{servlet}} {{tag}}",
  3035. "refId": "A",
  3036. "step": 20
  3037. }
  3038. ],
  3039. "thresholds": [
  3040. {
  3041. "$$hashKey": "object:417",
  3042. "colorMode": "custom",
  3043. "fill": true,
  3044. "fillColor": "rgba(216, 200, 27, 0.27)",
  3045. "op": "gt",
  3046. "value": 100,
  3047. "yaxis": "left"
  3048. },
  3049. {
  3050. "$$hashKey": "object:418",
  3051. "colorMode": "custom",
  3052. "fill": true,
  3053. "fillColor": "rgba(234, 112, 112, 0.22)",
  3054. "op": "gt",
  3055. "value": 250,
  3056. "yaxis": "left"
  3057. }
  3058. ],
  3059. "timeRegions": [],
  3060. "title": "Average CPU Usage by Endpoint",
  3061. "tooltip": {
  3062. "shared": false,
  3063. "sort": 2,
  3064. "value_type": "individual"
  3065. },
  3066. "type": "graph",
  3067. "xaxis": {
  3068. "mode": "time",
  3069. "show": true,
  3070. "values": []
  3071. },
  3072. "yaxes": [
  3073. {
  3074. "$$hashKey": "object:389",
  3075. "format": "s",
  3076. "logBase": 1,
  3077. "show": true
  3078. },
  3079. {
  3080. "$$hashKey": "object:390",
  3081. "format": "short",
  3082. "logBase": 1,
  3083. "show": true
  3084. }
  3085. ],
  3086. "yaxis": {
  3087. "align": false
  3088. }
  3089. },
  3090. {
  3091. "aliasColors": {},
  3092. "bars": false,
  3093. "dashLength": 10,
  3094. "dashes": false,
  3095. "datasource": {
  3096. "type": "prometheus",
  3097. "uid": "$datasource"
  3098. },
  3099. "editable": true,
  3100. "error": false,
  3101. "fieldConfig": {
  3102. "defaults": {
  3103. "links": []
  3104. },
  3105. "overrides": []
  3106. },
  3107. "fill": 1,
  3108. "fillGradient": 0,
  3109. "grid": {},
  3110. "gridPos": {
  3111. "h": 8,
  3112. "w": 12,
  3113. "x": 0,
  3114. "y": 73
  3115. },
  3116. "hiddenSeries": false,
  3117. "id": 7,
  3118. "legend": {
  3119. "alignAsTable": true,
  3120. "avg": false,
  3121. "current": false,
  3122. "hideEmpty": true,
  3123. "hideZero": true,
  3124. "max": false,
  3125. "min": false,
  3126. "show": true,
  3127. "total": false,
  3128. "values": false
  3129. },
  3130. "lines": true,
  3131. "linewidth": 1,
  3132. "links": [],
  3133. "nullPointMode": "null",
  3134. "options": {
  3135. "alertThreshold": true
  3136. },
  3137. "percentage": false,
  3138. "pluginVersion": "9.2.2",
  3139. "pointradius": 5,
  3140. "points": false,
  3141. "renderer": "flot",
  3142. "seriesOverrides": [],
  3143. "spaceLength": 10,
  3144. "stack": false,
  3145. "steppedLine": false,
  3146. "targets": [
  3147. {
  3148. "datasource": {
  3149. "uid": "$datasource"
  3150. },
  3151. "expr": "rate(synapse_http_server_in_flight_requests_db_txn_duration_seconds_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])",
  3152. "format": "time_series",
  3153. "interval": "",
  3154. "intervalFactor": 1,
  3155. "legendFormat": "{{job}}-{{index}} {{method}} {{servlet}} {{tag}}",
  3156. "refId": "A",
  3157. "step": 20
  3158. }
  3159. ],
  3160. "thresholds": [],
  3161. "timeRegions": [],
  3162. "title": "DB Usage by endpoint",
  3163. "tooltip": {
  3164. "shared": false,
  3165. "sort": 2,
  3166. "value_type": "cumulative"
  3167. },
  3168. "type": "graph",
  3169. "xaxis": {
  3170. "mode": "time",
  3171. "show": true,
  3172. "values": []
  3173. },
  3174. "yaxes": [
  3175. {
  3176. "$$hashKey": "object:488",
  3177. "format": "percentunit",
  3178. "logBase": 1,
  3179. "show": true
  3180. },
  3181. {
  3182. "$$hashKey": "object:489",
  3183. "format": "short",
  3184. "logBase": 1,
  3185. "show": true
  3186. }
  3187. ],
  3188. "yaxis": {
  3189. "align": false
  3190. }
  3191. },
  3192. {
  3193. "aliasColors": {},
  3194. "bars": false,
  3195. "dashLength": 10,
  3196. "dashes": false,
  3197. "datasource": {
  3198. "uid": "$datasource"
  3199. },
  3200. "editable": true,
  3201. "error": false,
  3202. "fieldConfig": {
  3203. "defaults": {
  3204. "links": []
  3205. },
  3206. "overrides": []
  3207. },
  3208. "fill": 2,
  3209. "fillGradient": 0,
  3210. "grid": {},
  3211. "gridPos": {
  3212. "h": 8,
  3213. "w": 12,
  3214. "x": 12,
  3215. "y": 73
  3216. },
  3217. "hiddenSeries": false,
  3218. "id": 47,
  3219. "legend": {
  3220. "alignAsTable": true,
  3221. "avg": true,
  3222. "current": false,
  3223. "hideEmpty": false,
  3224. "hideZero": true,
  3225. "max": true,
  3226. "min": false,
  3227. "rightSide": false,
  3228. "show": true,
  3229. "total": false,
  3230. "values": true
  3231. },
  3232. "lines": true,
  3233. "linewidth": 1,
  3234. "links": [],
  3235. "nullPointMode": "null",
  3236. "options": {
  3237. "alertThreshold": true
  3238. },
  3239. "percentage": false,
  3240. "pluginVersion": "9.2.2",
  3241. "pointradius": 5,
  3242. "points": false,
  3243. "renderer": "flot",
  3244. "seriesOverrides": [],
  3245. "spaceLength": 10,
  3246. "stack": false,
  3247. "steppedLine": false,
  3248. "targets": [
  3249. {
  3250. "datasource": {
  3251. "uid": "$datasource"
  3252. },
  3253. "expr": "(sum(rate(synapse_http_server_response_time_seconds_sum{instance=\"$instance\",job=~\"$job\",index=~\"$index\",tag!=\"incremental_sync\"}[$bucket_size])) without (code))/(sum(rate(synapse_http_server_response_time_seconds_count{instance=\"$instance\",job=~\"$job\",index=~\"$index\",tag!=\"incremental_sync\"}[$bucket_size])) without (code))",
  3254. "format": "time_series",
  3255. "hide": false,
  3256. "interval": "",
  3257. "intervalFactor": 1,
  3258. "legendFormat": "{{job}}-{{index}} {{method}} {{servlet}}",
  3259. "refId": "A",
  3260. "step": 20
  3261. }
  3262. ],
  3263. "thresholds": [],
  3264. "timeRegions": [],
  3265. "title": "Non-sync avg response time",
  3266. "tooltip": {
  3267. "shared": false,
  3268. "sort": 2,
  3269. "value_type": "individual"
  3270. },
  3271. "type": "graph",
  3272. "xaxis": {
  3273. "mode": "time",
  3274. "show": true,
  3275. "values": []
  3276. },
  3277. "yaxes": [
  3278. {
  3279. "format": "s",
  3280. "logBase": 1,
  3281. "show": true
  3282. },
  3283. {
  3284. "format": "short",
  3285. "logBase": 1,
  3286. "show": false
  3287. }
  3288. ],
  3289. "yaxis": {
  3290. "align": false
  3291. }
  3292. },
  3293. {
  3294. "aliasColors": {},
  3295. "bars": false,
  3296. "dashLength": 10,
  3297. "dashes": false,
  3298. "datasource": {
  3299. "uid": "$datasource"
  3300. },
  3301. "fieldConfig": {
  3302. "defaults": {
  3303. "links": []
  3304. },
  3305. "overrides": []
  3306. },
  3307. "fill": 1,
  3308. "fillGradient": 0,
  3309. "gridPos": {
  3310. "h": 9,
  3311. "w": 12,
  3312. "x": 0,
  3313. "y": 81
  3314. },
  3315. "hiddenSeries": false,
  3316. "id": 103,
  3317. "legend": {
  3318. "avg": false,
  3319. "current": false,
  3320. "max": false,
  3321. "min": false,
  3322. "show": true,
  3323. "total": false,
  3324. "values": false
  3325. },
  3326. "lines": true,
  3327. "linewidth": 1,
  3328. "links": [],
  3329. "nullPointMode": "null",
  3330. "options": {
  3331. "alertThreshold": true
  3332. },
  3333. "percentage": false,
  3334. "pluginVersion": "9.2.2",
  3335. "pointradius": 5,
  3336. "points": false,
  3337. "renderer": "flot",
  3338. "seriesOverrides": [
  3339. {
  3340. "alias": "Total",
  3341. "color": "rgb(255, 255, 255)",
  3342. "fill": 0,
  3343. "linewidth": 3
  3344. }
  3345. ],
  3346. "spaceLength": 10,
  3347. "stack": false,
  3348. "steppedLine": false,
  3349. "targets": [
  3350. {
  3351. "datasource": {
  3352. "uid": "$datasource"
  3353. },
  3354. "expr": "topk(10,synapse_http_server_in_flight_requests_count{instance=\"$instance\",job=~\"$job\",index=~\"$index\"})",
  3355. "format": "time_series",
  3356. "interval": "",
  3357. "intervalFactor": 1,
  3358. "legendFormat": "{{job}}-{{index}} {{method}} {{servlet}}",
  3359. "refId": "A"
  3360. },
  3361. {
  3362. "datasource": {
  3363. "uid": "$datasource"
  3364. },
  3365. "expr": "sum(avg_over_time(synapse_http_server_in_flight_requests_count{job=\"$job\",index=~\"$index\",instance=\"$instance\"}[$bucket_size]))",
  3366. "interval": "",
  3367. "legendFormat": "Total",
  3368. "refId": "B"
  3369. }
  3370. ],
  3371. "thresholds": [],
  3372. "timeRegions": [],
  3373. "title": "Requests in flight",
  3374. "tooltip": {
  3375. "shared": false,
  3376. "sort": 2,
  3377. "value_type": "individual"
  3378. },
  3379. "type": "graph",
  3380. "xaxis": {
  3381. "mode": "time",
  3382. "show": true,
  3383. "values": []
  3384. },
  3385. "yaxes": [
  3386. {
  3387. "format": "short",
  3388. "logBase": 1,
  3389. "show": true
  3390. },
  3391. {
  3392. "format": "short",
  3393. "logBase": 1,
  3394. "show": true
  3395. }
  3396. ],
  3397. "yaxis": {
  3398. "align": false
  3399. }
  3400. }
  3401. ],
  3402. "targets": [
  3403. {
  3404. "datasource": {
  3405. "type": "prometheus",
  3406. "uid": "$datasource"
  3407. },
  3408. "refId": "A"
  3409. }
  3410. ],
  3411. "title": "Requests",
  3412. "type": "row"
  3413. },
  3414. {
  3415. "collapsed": true,
  3416. "datasource": {
  3417. "type": "prometheus",
  3418. "uid": "$datasource"
  3419. },
  3420. "gridPos": {
  3421. "h": 1,
  3422. "w": 24,
  3423. "x": 0,
  3424. "y": 29
  3425. },
  3426. "id": 97,
  3427. "panels": [
  3428. {
  3429. "aliasColors": {},
  3430. "bars": false,
  3431. "dashLength": 10,
  3432. "dashes": false,
  3433. "datasource": {
  3434. "uid": "$datasource"
  3435. },
  3436. "fieldConfig": {
  3437. "defaults": {
  3438. "links": []
  3439. },
  3440. "overrides": []
  3441. },
  3442. "fill": 1,
  3443. "fillGradient": 0,
  3444. "gridPos": {
  3445. "h": 9,
  3446. "w": 12,
  3447. "x": 0,
  3448. "y": 5
  3449. },
  3450. "hiddenSeries": false,
  3451. "id": 99,
  3452. "legend": {
  3453. "avg": false,
  3454. "current": false,
  3455. "max": false,
  3456. "min": false,
  3457. "show": true,
  3458. "total": false,
  3459. "values": false
  3460. },
  3461. "lines": true,
  3462. "linewidth": 1,
  3463. "links": [],
  3464. "nullPointMode": "null",
  3465. "options": {
  3466. "alertThreshold": true
  3467. },
  3468. "paceLength": 10,
  3469. "percentage": false,
  3470. "pluginVersion": "8.4.3",
  3471. "pointradius": 5,
  3472. "points": false,
  3473. "renderer": "flot",
  3474. "seriesOverrides": [],
  3475. "spaceLength": 10,
  3476. "stack": false,
  3477. "steppedLine": false,
  3478. "targets": [
  3479. {
  3480. "datasource": {
  3481. "uid": "$datasource"
  3482. },
  3483. "expr": "rate(synapse_background_process_ru_utime_seconds_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])+rate(synapse_background_process_ru_stime_seconds_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])",
  3484. "format": "time_series",
  3485. "interval": "",
  3486. "intervalFactor": 1,
  3487. "legendFormat": "{{job}}-{{index}} {{name}}",
  3488. "refId": "A"
  3489. }
  3490. ],
  3491. "thresholds": [],
  3492. "timeRegions": [],
  3493. "title": "CPU usage by background jobs",
  3494. "tooltip": {
  3495. "shared": false,
  3496. "sort": 0,
  3497. "value_type": "individual"
  3498. },
  3499. "type": "graph",
  3500. "xaxis": {
  3501. "mode": "time",
  3502. "show": true,
  3503. "values": []
  3504. },
  3505. "yaxes": [
  3506. {
  3507. "format": "percentunit",
  3508. "logBase": 1,
  3509. "show": true
  3510. },
  3511. {
  3512. "format": "short",
  3513. "logBase": 1,
  3514. "show": true
  3515. }
  3516. ],
  3517. "yaxis": {
  3518. "align": false
  3519. }
  3520. },
  3521. {
  3522. "aliasColors": {},
  3523. "bars": false,
  3524. "dashLength": 10,
  3525. "dashes": false,
  3526. "datasource": {
  3527. "uid": "$datasource"
  3528. },
  3529. "fieldConfig": {
  3530. "defaults": {
  3531. "links": []
  3532. },
  3533. "overrides": []
  3534. },
  3535. "fill": 1,
  3536. "fillGradient": 0,
  3537. "gridPos": {
  3538. "h": 9,
  3539. "w": 12,
  3540. "x": 12,
  3541. "y": 5
  3542. },
  3543. "hiddenSeries": false,
  3544. "id": 101,
  3545. "legend": {
  3546. "avg": false,
  3547. "current": false,
  3548. "max": false,
  3549. "min": false,
  3550. "show": true,
  3551. "total": false,
  3552. "values": false
  3553. },
  3554. "lines": true,
  3555. "linewidth": 1,
  3556. "links": [],
  3557. "nullPointMode": "null",
  3558. "options": {
  3559. "alertThreshold": true
  3560. },
  3561. "paceLength": 10,
  3562. "percentage": false,
  3563. "pluginVersion": "8.4.3",
  3564. "pointradius": 5,
  3565. "points": false,
  3566. "renderer": "flot",
  3567. "seriesOverrides": [],
  3568. "spaceLength": 10,
  3569. "stack": false,
  3570. "steppedLine": false,
  3571. "targets": [
  3572. {
  3573. "datasource": {
  3574. "uid": "$datasource"
  3575. },
  3576. "expr": "rate(synapse_background_process_db_txn_duration_seconds_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size]) + rate(synapse_background_process_db_sched_duration_seconds_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])",
  3577. "format": "time_series",
  3578. "hide": false,
  3579. "intervalFactor": 1,
  3580. "legendFormat": "{{job}}-{{index}} {{name}}",
  3581. "refId": "A"
  3582. }
  3583. ],
  3584. "thresholds": [],
  3585. "timeRegions": [],
  3586. "title": "DB usage by background jobs (including scheduling time)",
  3587. "tooltip": {
  3588. "shared": false,
  3589. "sort": 0,
  3590. "value_type": "individual"
  3591. },
  3592. "type": "graph",
  3593. "xaxis": {
  3594. "mode": "time",
  3595. "show": true,
  3596. "values": []
  3597. },
  3598. "yaxes": [
  3599. {
  3600. "format": "percentunit",
  3601. "logBase": 1,
  3602. "show": true
  3603. },
  3604. {
  3605. "format": "short",
  3606. "logBase": 1,
  3607. "show": true
  3608. }
  3609. ],
  3610. "yaxis": {
  3611. "align": false
  3612. }
  3613. },
  3614. {
  3615. "aliasColors": {},
  3616. "bars": false,
  3617. "dashLength": 10,
  3618. "dashes": false,
  3619. "datasource": {
  3620. "uid": "$datasource"
  3621. },
  3622. "fieldConfig": {
  3623. "defaults": {
  3624. "links": []
  3625. },
  3626. "overrides": []
  3627. },
  3628. "fill": 1,
  3629. "fillGradient": 0,
  3630. "gridPos": {
  3631. "h": 8,
  3632. "w": 12,
  3633. "x": 0,
  3634. "y": 14
  3635. },
  3636. "hiddenSeries": false,
  3637. "id": 138,
  3638. "legend": {
  3639. "avg": false,
  3640. "current": false,
  3641. "max": false,
  3642. "min": false,
  3643. "show": true,
  3644. "total": false,
  3645. "values": false
  3646. },
  3647. "lines": true,
  3648. "linewidth": 1,
  3649. "nullPointMode": "null",
  3650. "options": {
  3651. "alertThreshold": true
  3652. },
  3653. "percentage": false,
  3654. "pluginVersion": "8.4.3",
  3655. "pointradius": 2,
  3656. "points": false,
  3657. "renderer": "flot",
  3658. "seriesOverrides": [],
  3659. "spaceLength": 10,
  3660. "stack": false,
  3661. "steppedLine": false,
  3662. "targets": [
  3663. {
  3664. "datasource": {
  3665. "uid": "$datasource"
  3666. },
  3667. "expr": "synapse_background_process_in_flight_count{job=~\"$job\",index=~\"$index\",instance=\"$instance\"}",
  3668. "legendFormat": "{{job}}-{{index}} {{name}}",
  3669. "refId": "A"
  3670. }
  3671. ],
  3672. "thresholds": [],
  3673. "timeRegions": [],
  3674. "title": "Background jobs in flight",
  3675. "tooltip": {
  3676. "shared": false,
  3677. "sort": 0,
  3678. "value_type": "individual"
  3679. },
  3680. "type": "graph",
  3681. "xaxis": {
  3682. "mode": "time",
  3683. "show": true,
  3684. "values": []
  3685. },
  3686. "yaxes": [
  3687. {
  3688. "format": "short",
  3689. "logBase": 1,
  3690. "show": true
  3691. },
  3692. {
  3693. "format": "short",
  3694. "logBase": 1,
  3695. "show": true
  3696. }
  3697. ],
  3698. "yaxis": {
  3699. "align": false
  3700. }
  3701. }
  3702. ],
  3703. "targets": [
  3704. {
  3705. "datasource": {
  3706. "type": "prometheus",
  3707. "uid": "$datasource"
  3708. },
  3709. "refId": "A"
  3710. }
  3711. ],
  3712. "title": "Background jobs",
  3713. "type": "row"
  3714. },
  3715. {
  3716. "collapsed": true,
  3717. "datasource": {
  3718. "type": "prometheus",
  3719. "uid": "$datasource"
  3720. },
  3721. "gridPos": {
  3722. "h": 1,
  3723. "w": 24,
  3724. "x": 0,
  3725. "y": 30
  3726. },
  3727. "id": 81,
  3728. "panels": [
  3729. {
  3730. "aliasColors": {},
  3731. "bars": false,
  3732. "dashLength": 10,
  3733. "dashes": false,
  3734. "datasource": {
  3735. "uid": "$datasource"
  3736. },
  3737. "fieldConfig": {
  3738. "defaults": {
  3739. "links": []
  3740. },
  3741. "overrides": []
  3742. },
  3743. "fill": 1,
  3744. "fillGradient": 0,
  3745. "gridPos": {
  3746. "h": 9,
  3747. "w": 12,
  3748. "x": 0,
  3749. "y": 59
  3750. },
  3751. "hiddenSeries": false,
  3752. "id": 79,
  3753. "legend": {
  3754. "avg": false,
  3755. "current": false,
  3756. "max": false,
  3757. "min": false,
  3758. "show": true,
  3759. "total": false,
  3760. "values": false
  3761. },
  3762. "lines": true,
  3763. "linewidth": 1,
  3764. "links": [],
  3765. "nullPointMode": "null",
  3766. "options": {
  3767. "alertThreshold": true
  3768. },
  3769. "paceLength": 10,
  3770. "percentage": false,
  3771. "pluginVersion": "9.2.2",
  3772. "pointradius": 5,
  3773. "points": false,
  3774. "renderer": "flot",
  3775. "seriesOverrides": [],
  3776. "spaceLength": 10,
  3777. "stack": false,
  3778. "steppedLine": false,
  3779. "targets": [
  3780. {
  3781. "datasource": {
  3782. "uid": "$datasource"
  3783. },
  3784. "expr": "sum(rate(synapse_federation_client_sent_transactions_total{instance=\"$instance\"}[$bucket_size]))",
  3785. "format": "time_series",
  3786. "intervalFactor": 1,
  3787. "legendFormat": "successful txn rate",
  3788. "refId": "A"
  3789. },
  3790. {
  3791. "datasource": {
  3792. "uid": "$datasource"
  3793. },
  3794. "expr": "sum(rate(synapse_util_metrics_block_count_total{block_name=\"_send_new_transaction\",instance=\"$instance\"}[$bucket_size]) - ignoring (block_name) rate(synapse_federation_client_sent_transactions_total{instance=\"$instance\"}[$bucket_size]))",
  3795. "legendFormat": "failed txn rate",
  3796. "refId": "B"
  3797. }
  3798. ],
  3799. "thresholds": [],
  3800. "timeRegions": [],
  3801. "title": "Outgoing federation transaction rate",
  3802. "tooltip": {
  3803. "shared": true,
  3804. "sort": 0,
  3805. "value_type": "individual"
  3806. },
  3807. "type": "graph",
  3808. "xaxis": {
  3809. "mode": "time",
  3810. "show": true,
  3811. "values": []
  3812. },
  3813. "yaxes": [
  3814. {
  3815. "format": "hertz",
  3816. "logBase": 1,
  3817. "show": true
  3818. },
  3819. {
  3820. "format": "short",
  3821. "logBase": 1,
  3822. "show": true
  3823. }
  3824. ],
  3825. "yaxis": {
  3826. "align": false
  3827. }
  3828. },
  3829. {
  3830. "aliasColors": {},
  3831. "bars": false,
  3832. "dashLength": 10,
  3833. "dashes": false,
  3834. "datasource": {
  3835. "uid": "$datasource"
  3836. },
  3837. "fieldConfig": {
  3838. "defaults": {
  3839. "links": []
  3840. },
  3841. "overrides": []
  3842. },
  3843. "fill": 1,
  3844. "fillGradient": 0,
  3845. "gridPos": {
  3846. "h": 9,
  3847. "w": 12,
  3848. "x": 12,
  3849. "y": 59
  3850. },
  3851. "hiddenSeries": false,
  3852. "id": 83,
  3853. "legend": {
  3854. "avg": false,
  3855. "current": false,
  3856. "max": false,
  3857. "min": false,
  3858. "show": true,
  3859. "total": false,
  3860. "values": false
  3861. },
  3862. "lines": true,
  3863. "linewidth": 1,
  3864. "links": [],
  3865. "nullPointMode": "null",
  3866. "options": {
  3867. "alertThreshold": true
  3868. },
  3869. "paceLength": 10,
  3870. "percentage": false,
  3871. "pluginVersion": "9.2.2",
  3872. "pointradius": 5,
  3873. "points": false,
  3874. "renderer": "flot",
  3875. "seriesOverrides": [],
  3876. "spaceLength": 10,
  3877. "stack": false,
  3878. "steppedLine": false,
  3879. "targets": [
  3880. {
  3881. "datasource": {
  3882. "uid": "$datasource"
  3883. },
  3884. "expr": "sum(rate(synapse_federation_server_received_pdus_total{instance=~\"$instance\"}[$bucket_size]))",
  3885. "format": "time_series",
  3886. "intervalFactor": 1,
  3887. "legendFormat": "pdus",
  3888. "refId": "A"
  3889. },
  3890. {
  3891. "datasource": {
  3892. "uid": "$datasource"
  3893. },
  3894. "expr": "sum(rate(synapse_federation_server_received_edus_total{instance=~\"$instance\"}[$bucket_size]))",
  3895. "format": "time_series",
  3896. "intervalFactor": 1,
  3897. "legendFormat": "edus",
  3898. "refId": "B"
  3899. }
  3900. ],
  3901. "thresholds": [],
  3902. "timeRegions": [],
  3903. "title": "Incoming PDU/EDU rate",
  3904. "tooltip": {
  3905. "shared": true,
  3906. "sort": 0,
  3907. "value_type": "individual"
  3908. },
  3909. "type": "graph",
  3910. "xaxis": {
  3911. "mode": "time",
  3912. "show": true,
  3913. "values": []
  3914. },
  3915. "yaxes": [
  3916. {
  3917. "format": "hertz",
  3918. "logBase": 1,
  3919. "show": true
  3920. },
  3921. {
  3922. "format": "short",
  3923. "logBase": 1,
  3924. "show": true
  3925. }
  3926. ],
  3927. "yaxis": {
  3928. "align": false
  3929. }
  3930. },
  3931. {
  3932. "aliasColors": {},
  3933. "bars": false,
  3934. "dashLength": 10,
  3935. "dashes": false,
  3936. "datasource": {
  3937. "uid": "$datasource"
  3938. },
  3939. "fieldConfig": {
  3940. "defaults": {
  3941. "links": []
  3942. },
  3943. "overrides": []
  3944. },
  3945. "fill": 1,
  3946. "fillGradient": 0,
  3947. "gridPos": {
  3948. "h": 9,
  3949. "w": 12,
  3950. "x": 0,
  3951. "y": 68
  3952. },
  3953. "hiddenSeries": false,
  3954. "id": 109,
  3955. "legend": {
  3956. "avg": false,
  3957. "current": false,
  3958. "max": false,
  3959. "min": false,
  3960. "show": true,
  3961. "total": false,
  3962. "values": false
  3963. },
  3964. "lines": true,
  3965. "linewidth": 1,
  3966. "links": [],
  3967. "nullPointMode": "null",
  3968. "options": {
  3969. "alertThreshold": true
  3970. },
  3971. "paceLength": 10,
  3972. "percentage": false,
  3973. "pluginVersion": "9.2.2",
  3974. "pointradius": 5,
  3975. "points": false,
  3976. "renderer": "flot",
  3977. "seriesOverrides": [],
  3978. "spaceLength": 10,
  3979. "stack": false,
  3980. "steppedLine": false,
  3981. "targets": [
  3982. {
  3983. "datasource": {
  3984. "uid": "$datasource"
  3985. },
  3986. "expr": "sum(rate(synapse_federation_client_sent_pdu_destinations:total_total{instance=\"$instance\"}[$bucket_size]))",
  3987. "format": "time_series",
  3988. "interval": "",
  3989. "intervalFactor": 1,
  3990. "legendFormat": "pdus",
  3991. "refId": "A"
  3992. },
  3993. {
  3994. "datasource": {
  3995. "uid": "$datasource"
  3996. },
  3997. "expr": "sum(rate(synapse_federation_client_sent_edus_total{instance=\"$instance\"}[$bucket_size]))",
  3998. "format": "time_series",
  3999. "intervalFactor": 1,
  4000. "legendFormat": "edus",
  4001. "refId": "B"
  4002. }
  4003. ],
  4004. "thresholds": [],
  4005. "timeRegions": [],
  4006. "title": "Outgoing PDU/EDU rate",
  4007. "tooltip": {
  4008. "shared": true,
  4009. "sort": 0,
  4010. "value_type": "individual"
  4011. },
  4012. "type": "graph",
  4013. "xaxis": {
  4014. "mode": "time",
  4015. "show": true,
  4016. "values": []
  4017. },
  4018. "yaxes": [
  4019. {
  4020. "format": "hertz",
  4021. "logBase": 1,
  4022. "show": true
  4023. },
  4024. {
  4025. "format": "short",
  4026. "logBase": 1,
  4027. "show": true
  4028. }
  4029. ],
  4030. "yaxis": {
  4031. "align": false
  4032. }
  4033. },
  4034. {
  4035. "aliasColors": {},
  4036. "bars": false,
  4037. "dashLength": 10,
  4038. "dashes": false,
  4039. "datasource": {
  4040. "type": "prometheus",
  4041. "uid": "$datasource"
  4042. },
  4043. "fieldConfig": {
  4044. "defaults": {
  4045. "links": []
  4046. },
  4047. "overrides": []
  4048. },
  4049. "fill": 1,
  4050. "fillGradient": 0,
  4051. "gridPos": {
  4052. "h": 9,
  4053. "w": 12,
  4054. "x": 12,
  4055. "y": 68
  4056. },
  4057. "hiddenSeries": false,
  4058. "id": 111,
  4059. "legend": {
  4060. "avg": false,
  4061. "current": false,
  4062. "max": false,
  4063. "min": false,
  4064. "show": true,
  4065. "total": false,
  4066. "values": false
  4067. },
  4068. "lines": true,
  4069. "linewidth": 1,
  4070. "links": [],
  4071. "nullPointMode": "null",
  4072. "options": {
  4073. "alertThreshold": true
  4074. },
  4075. "paceLength": 10,
  4076. "percentage": false,
  4077. "pluginVersion": "9.2.2",
  4078. "pointradius": 5,
  4079. "points": false,
  4080. "renderer": "flot",
  4081. "seriesOverrides": [],
  4082. "spaceLength": 10,
  4083. "stack": false,
  4084. "steppedLine": false,
  4085. "targets": [
  4086. {
  4087. "datasource": {
  4088. "uid": "$datasource"
  4089. },
  4090. "editorMode": "code",
  4091. "expr": "rate(synapse_federation_client_sent_edus_by_type_total{instance=\"$instance\"}[$bucket_size])",
  4092. "format": "time_series",
  4093. "interval": "",
  4094. "intervalFactor": 1,
  4095. "legendFormat": "{{type}}",
  4096. "range": true,
  4097. "refId": "A"
  4098. }
  4099. ],
  4100. "thresholds": [],
  4101. "timeRegions": [],
  4102. "title": "Outgoing EDUs by type",
  4103. "tooltip": {
  4104. "shared": true,
  4105. "sort": 0,
  4106. "value_type": "individual"
  4107. },
  4108. "type": "graph",
  4109. "xaxis": {
  4110. "mode": "time",
  4111. "show": true,
  4112. "values": []
  4113. },
  4114. "yaxes": [
  4115. {
  4116. "$$hashKey": "object:462",
  4117. "format": "hertz",
  4118. "logBase": 1,
  4119. "show": true
  4120. },
  4121. {
  4122. "$$hashKey": "object:463",
  4123. "format": "short",
  4124. "logBase": 1,
  4125. "show": true
  4126. }
  4127. ],
  4128. "yaxis": {
  4129. "align": false
  4130. }
  4131. },
  4132. {
  4133. "aliasColors": {},
  4134. "bars": false,
  4135. "dashLength": 10,
  4136. "dashes": false,
  4137. "datasource": {
  4138. "type": "prometheus",
  4139. "uid": "$datasource"
  4140. },
  4141. "description": "The number of events in the in-memory queues ",
  4142. "fieldConfig": {
  4143. "defaults": {
  4144. "links": []
  4145. },
  4146. "overrides": []
  4147. },
  4148. "fill": 1,
  4149. "fillGradient": 0,
  4150. "gridPos": {
  4151. "h": 8,
  4152. "w": 12,
  4153. "x": 0,
  4154. "y": 77
  4155. },
  4156. "hiddenSeries": false,
  4157. "id": 142,
  4158. "legend": {
  4159. "avg": false,
  4160. "current": false,
  4161. "max": false,
  4162. "min": false,
  4163. "show": true,
  4164. "total": false,
  4165. "values": false
  4166. },
  4167. "lines": true,
  4168. "linewidth": 1,
  4169. "nullPointMode": "null",
  4170. "options": {
  4171. "alertThreshold": true
  4172. },
  4173. "percentage": false,
  4174. "pluginVersion": "9.2.2",
  4175. "pointradius": 2,
  4176. "points": false,
  4177. "renderer": "flot",
  4178. "seriesOverrides": [],
  4179. "spaceLength": 10,
  4180. "stack": false,
  4181. "steppedLine": false,
  4182. "targets": [
  4183. {
  4184. "datasource": {
  4185. "type": "prometheus",
  4186. "uid": "$datasource"
  4187. },
  4188. "editorMode": "code",
  4189. "expr": "synapse_federation_transaction_queue_pending_pdus{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}",
  4190. "interval": "",
  4191. "legendFormat": "pending PDUs {{job}}-{{index}}",
  4192. "range": true,
  4193. "refId": "A"
  4194. },
  4195. {
  4196. "datasource": {
  4197. "type": "prometheus",
  4198. "uid": "$datasource"
  4199. },
  4200. "expr": "synapse_federation_transaction_queue_pending_edus{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}",
  4201. "interval": "",
  4202. "legendFormat": "pending EDUs {{job}}-{{index}}",
  4203. "refId": "B"
  4204. }
  4205. ],
  4206. "thresholds": [],
  4207. "timeRegions": [],
  4208. "title": "In-memory federation transmission queues",
  4209. "tooltip": {
  4210. "shared": true,
  4211. "sort": 0,
  4212. "value_type": "individual"
  4213. },
  4214. "type": "graph",
  4215. "xaxis": {
  4216. "mode": "time",
  4217. "show": true,
  4218. "values": []
  4219. },
  4220. "yaxes": [
  4221. {
  4222. "$$hashKey": "object:547",
  4223. "format": "short",
  4224. "label": "events",
  4225. "logBase": 1,
  4226. "min": "0",
  4227. "show": true
  4228. },
  4229. {
  4230. "$$hashKey": "object:548",
  4231. "format": "short",
  4232. "label": "",
  4233. "logBase": 1,
  4234. "show": true
  4235. }
  4236. ],
  4237. "yaxis": {
  4238. "align": false
  4239. }
  4240. },
  4241. {
  4242. "aliasColors": {},
  4243. "bars": false,
  4244. "dashLength": 10,
  4245. "dashes": false,
  4246. "datasource": {
  4247. "uid": "$datasource"
  4248. },
  4249. "description": "Number of events queued up on the master process for processing by the federation sender",
  4250. "fieldConfig": {
  4251. "defaults": {
  4252. "links": []
  4253. },
  4254. "overrides": []
  4255. },
  4256. "fill": 1,
  4257. "fillGradient": 0,
  4258. "gridPos": {
  4259. "h": 9,
  4260. "w": 12,
  4261. "x": 12,
  4262. "y": 77
  4263. },
  4264. "hiddenSeries": false,
  4265. "id": 140,
  4266. "legend": {
  4267. "avg": false,
  4268. "current": false,
  4269. "max": false,
  4270. "min": false,
  4271. "show": true,
  4272. "total": false,
  4273. "values": false
  4274. },
  4275. "lines": true,
  4276. "linewidth": 1,
  4277. "links": [],
  4278. "nullPointMode": "null",
  4279. "options": {
  4280. "alertThreshold": true
  4281. },
  4282. "paceLength": 10,
  4283. "percentage": false,
  4284. "pluginVersion": "9.2.2",
  4285. "pointradius": 5,
  4286. "points": false,
  4287. "renderer": "flot",
  4288. "seriesOverrides": [],
  4289. "spaceLength": 10,
  4290. "stack": false,
  4291. "steppedLine": false,
  4292. "targets": [
  4293. {
  4294. "datasource": {
  4295. "uid": "$datasource"
  4296. },
  4297. "expr": "synapse_federation_send_queue_presence_changed_size{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}",
  4298. "format": "time_series",
  4299. "interval": "",
  4300. "intervalFactor": 1,
  4301. "legendFormat": "presence changed",
  4302. "refId": "A"
  4303. },
  4304. {
  4305. "datasource": {
  4306. "uid": "$datasource"
  4307. },
  4308. "expr": "synapse_federation_send_queue_presence_map_size{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}",
  4309. "format": "time_series",
  4310. "hide": false,
  4311. "interval": "",
  4312. "intervalFactor": 1,
  4313. "legendFormat": "presence map",
  4314. "refId": "B"
  4315. },
  4316. {
  4317. "datasource": {
  4318. "uid": "$datasource"
  4319. },
  4320. "expr": "synapse_federation_send_queue_presence_destinations_size{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}",
  4321. "format": "time_series",
  4322. "hide": false,
  4323. "interval": "",
  4324. "intervalFactor": 1,
  4325. "legendFormat": "presence destinations",
  4326. "refId": "E"
  4327. },
  4328. {
  4329. "datasource": {
  4330. "uid": "$datasource"
  4331. },
  4332. "expr": "synapse_federation_send_queue_keyed_edu_size{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}",
  4333. "format": "time_series",
  4334. "hide": false,
  4335. "interval": "",
  4336. "intervalFactor": 1,
  4337. "legendFormat": "keyed edus",
  4338. "refId": "C"
  4339. },
  4340. {
  4341. "datasource": {
  4342. "uid": "$datasource"
  4343. },
  4344. "expr": "synapse_federation_send_queue_edus_size{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}",
  4345. "format": "time_series",
  4346. "hide": false,
  4347. "interval": "",
  4348. "intervalFactor": 1,
  4349. "legendFormat": "other edus",
  4350. "refId": "D"
  4351. },
  4352. {
  4353. "datasource": {
  4354. "uid": "$datasource"
  4355. },
  4356. "expr": "synapse_federation_send_queue_pos_time_size{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}",
  4357. "format": "time_series",
  4358. "hide": false,
  4359. "interval": "",
  4360. "intervalFactor": 1,
  4361. "legendFormat": "stream positions",
  4362. "refId": "F"
  4363. }
  4364. ],
  4365. "thresholds": [],
  4366. "timeRegions": [],
  4367. "title": "Outgoing EDU queues on master",
  4368. "tooltip": {
  4369. "shared": true,
  4370. "sort": 0,
  4371. "value_type": "individual"
  4372. },
  4373. "type": "graph",
  4374. "xaxis": {
  4375. "mode": "time",
  4376. "show": true,
  4377. "values": []
  4378. },
  4379. "yaxes": [
  4380. {
  4381. "format": "none",
  4382. "logBase": 1,
  4383. "min": "0",
  4384. "show": true
  4385. },
  4386. {
  4387. "format": "short",
  4388. "logBase": 1,
  4389. "show": true
  4390. }
  4391. ],
  4392. "yaxis": {
  4393. "align": false
  4394. }
  4395. },
  4396. {
  4397. "cards": {
  4398. "cardPadding": -1
  4399. },
  4400. "color": {
  4401. "cardColor": "#b4ff00",
  4402. "colorScale": "sqrt",
  4403. "colorScheme": "interpolateInferno",
  4404. "exponent": 0.5,
  4405. "min": 0,
  4406. "mode": "spectrum"
  4407. },
  4408. "dataFormat": "tsbuckets",
  4409. "datasource": {
  4410. "uid": "$datasource"
  4411. },
  4412. "fieldConfig": {
  4413. "defaults": {
  4414. "custom": {
  4415. "hideFrom": {
  4416. "legend": false,
  4417. "tooltip": false,
  4418. "viz": false
  4419. },
  4420. "scaleDistribution": {
  4421. "type": "linear"
  4422. }
  4423. }
  4424. },
  4425. "overrides": []
  4426. },
  4427. "gridPos": {
  4428. "h": 9,
  4429. "w": 12,
  4430. "x": 0,
  4431. "y": 85
  4432. },
  4433. "heatmap": {},
  4434. "hideZeroBuckets": false,
  4435. "highlightCards": true,
  4436. "id": 166,
  4437. "legend": {
  4438. "show": false
  4439. },
  4440. "links": [],
  4441. "options": {
  4442. "calculate": false,
  4443. "calculation": {},
  4444. "cellGap": -1,
  4445. "cellValues": {
  4446. "decimals": 2
  4447. },
  4448. "color": {
  4449. "exponent": 0.5,
  4450. "fill": "#b4ff00",
  4451. "min": 0,
  4452. "mode": "scheme",
  4453. "reverse": false,
  4454. "scale": "exponential",
  4455. "scheme": "Inferno",
  4456. "steps": 128
  4457. },
  4458. "exemplars": {
  4459. "color": "rgba(255,0,255,0.7)"
  4460. },
  4461. "filterValues": {
  4462. "le": 1e-9
  4463. },
  4464. "legend": {
  4465. "show": false
  4466. },
  4467. "rowsFrame": {
  4468. "layout": "auto"
  4469. },
  4470. "showValue": "never",
  4471. "tooltip": {
  4472. "show": true,
  4473. "yHistogram": true
  4474. },
  4475. "yAxis": {
  4476. "axisPlacement": "left",
  4477. "decimals": 0,
  4478. "reverse": false,
  4479. "unit": "s"
  4480. }
  4481. },
  4482. "pluginVersion": "9.2.2",
  4483. "reverseYBuckets": false,
  4484. "targets": [
  4485. {
  4486. "datasource": {
  4487. "uid": "$datasource"
  4488. },
  4489. "expr": "sum(rate(synapse_event_processing_lag_by_event_bucket{instance=\"$instance\",name=\"federation_sender\"}[$bucket_size])) by (le)",
  4490. "format": "heatmap",
  4491. "instant": false,
  4492. "interval": "",
  4493. "intervalFactor": 1,
  4494. "legendFormat": "{{ le }}",
  4495. "refId": "A"
  4496. }
  4497. ],
  4498. "title": "Federation send PDU lag",
  4499. "tooltip": {
  4500. "show": true,
  4501. "showHistogram": true
  4502. },
  4503. "tooltipDecimals": 2,
  4504. "type": "heatmap",
  4505. "xAxis": {
  4506. "show": true
  4507. },
  4508. "yAxis": {
  4509. "decimals": 0,
  4510. "format": "s",
  4511. "logBase": 1,
  4512. "show": true
  4513. },
  4514. "yBucketBound": "auto"
  4515. },
  4516. {
  4517. "aliasColors": {},
  4518. "bars": false,
  4519. "dashLength": 10,
  4520. "dashes": false,
  4521. "datasource": {
  4522. "uid": "$datasource"
  4523. },
  4524. "fieldConfig": {
  4525. "defaults": {
  4526. "links": []
  4527. },
  4528. "overrides": []
  4529. },
  4530. "fill": 0,
  4531. "fillGradient": 0,
  4532. "gridPos": {
  4533. "h": 9,
  4534. "w": 12,
  4535. "x": 12,
  4536. "y": 86
  4537. },
  4538. "hiddenSeries": false,
  4539. "id": 162,
  4540. "legend": {
  4541. "avg": false,
  4542. "current": false,
  4543. "max": false,
  4544. "min": false,
  4545. "rightSide": false,
  4546. "show": true,
  4547. "total": false,
  4548. "values": false
  4549. },
  4550. "lines": true,
  4551. "linewidth": 0,
  4552. "links": [],
  4553. "nullPointMode": "connected",
  4554. "options": {
  4555. "alertThreshold": true
  4556. },
  4557. "paceLength": 10,
  4558. "percentage": false,
  4559. "pluginVersion": "9.2.2",
  4560. "pointradius": 5,
  4561. "points": false,
  4562. "renderer": "flot",
  4563. "seriesOverrides": [
  4564. {
  4565. "alias": "Avg",
  4566. "fill": 0,
  4567. "linewidth": 3
  4568. },
  4569. {
  4570. "alias": "99%",
  4571. "color": "#C4162A",
  4572. "fillBelowTo": "90%"
  4573. },
  4574. {
  4575. "alias": "90%",
  4576. "color": "#FF7383",
  4577. "fillBelowTo": "75%"
  4578. },
  4579. {
  4580. "alias": "75%",
  4581. "color": "#FFEE52",
  4582. "fillBelowTo": "50%"
  4583. },
  4584. {
  4585. "alias": "50%",
  4586. "color": "#73BF69",
  4587. "fillBelowTo": "25%"
  4588. },
  4589. {
  4590. "alias": "25%",
  4591. "color": "#1F60C4",
  4592. "fillBelowTo": "5%"
  4593. },
  4594. {
  4595. "alias": "5%",
  4596. "lines": false
  4597. },
  4598. {
  4599. "alias": "Average",
  4600. "color": "rgb(255, 255, 255)",
  4601. "lines": true,
  4602. "linewidth": 3
  4603. }
  4604. ],
  4605. "spaceLength": 10,
  4606. "stack": false,
  4607. "steppedLine": false,
  4608. "targets": [
  4609. {
  4610. "datasource": {
  4611. "uid": "$datasource"
  4612. },
  4613. "expr": "histogram_quantile(0.99, sum(rate(synapse_event_processing_lag_by_event_bucket{name='federation_sender',index=~\"$index\",instance=\"$instance\"}[$bucket_size])) by (le))",
  4614. "format": "time_series",
  4615. "interval": "",
  4616. "intervalFactor": 1,
  4617. "legendFormat": "99%",
  4618. "refId": "D"
  4619. },
  4620. {
  4621. "datasource": {
  4622. "uid": "$datasource"
  4623. },
  4624. "expr": "histogram_quantile(0.9, sum(rate(synapse_event_processing_lag_by_event_bucket{name='federation_sender',index=~\"$index\",instance=\"$instance\"}[$bucket_size])) by (le))",
  4625. "format": "time_series",
  4626. "interval": "",
  4627. "intervalFactor": 1,
  4628. "legendFormat": "90%",
  4629. "refId": "A"
  4630. },
  4631. {
  4632. "datasource": {
  4633. "uid": "$datasource"
  4634. },
  4635. "expr": "histogram_quantile(0.75, sum(rate(synapse_event_processing_lag_by_event_bucket{name='federation_sender',index=~\"$index\",instance=\"$instance\"}[$bucket_size])) by (le))",
  4636. "format": "time_series",
  4637. "interval": "",
  4638. "intervalFactor": 1,
  4639. "legendFormat": "75%",
  4640. "refId": "C"
  4641. },
  4642. {
  4643. "datasource": {
  4644. "uid": "$datasource"
  4645. },
  4646. "expr": "histogram_quantile(0.5, sum(rate(synapse_event_processing_lag_by_event_bucket{name='federation_sender',index=~\"$index\",instance=\"$instance\"}[$bucket_size])) by (le))",
  4647. "format": "time_series",
  4648. "interval": "",
  4649. "intervalFactor": 1,
  4650. "legendFormat": "50%",
  4651. "refId": "B"
  4652. },
  4653. {
  4654. "datasource": {
  4655. "uid": "$datasource"
  4656. },
  4657. "expr": "histogram_quantile(0.25, sum(rate(synapse_event_processing_lag_by_event_bucket{name='federation_sender',index=~\"$index\",instance=\"$instance\"}[$bucket_size])) by (le))",
  4658. "interval": "",
  4659. "legendFormat": "25%",
  4660. "refId": "F"
  4661. },
  4662. {
  4663. "datasource": {
  4664. "uid": "$datasource"
  4665. },
  4666. "expr": "histogram_quantile(0.05, sum(rate(synapse_event_processing_lag_by_event_bucket{name='federation_sender',index=~\"$index\",instance=\"$instance\"}[$bucket_size])) by (le))",
  4667. "interval": "",
  4668. "legendFormat": "5%",
  4669. "refId": "G"
  4670. },
  4671. {
  4672. "datasource": {
  4673. "uid": "$datasource"
  4674. },
  4675. "expr": "sum(rate(synapse_event_processing_lag_by_event_sum{name='federation_sender',index=~\"$index\",instance=\"$instance\"}[$bucket_size])) / sum(rate(synapse_event_processing_lag_by_event_count{name='federation_sender',index=~\"$index\",instance=\"$instance\"}[$bucket_size]))",
  4676. "interval": "",
  4677. "legendFormat": "Average",
  4678. "refId": "H"
  4679. }
  4680. ],
  4681. "thresholds": [
  4682. {
  4683. "colorMode": "warning",
  4684. "fill": false,
  4685. "line": true,
  4686. "op": "gt",
  4687. "value": 0.25,
  4688. "yaxis": "left"
  4689. },
  4690. {
  4691. "colorMode": "critical",
  4692. "fill": false,
  4693. "line": true,
  4694. "op": "gt",
  4695. "value": 1,
  4696. "yaxis": "left"
  4697. }
  4698. ],
  4699. "timeRegions": [],
  4700. "title": "Federation send PDU lag quantiles",
  4701. "tooltip": {
  4702. "shared": true,
  4703. "sort": 2,
  4704. "value_type": "individual"
  4705. },
  4706. "type": "graph",
  4707. "xaxis": {
  4708. "mode": "time",
  4709. "show": true,
  4710. "values": []
  4711. },
  4712. "yaxes": [
  4713. {
  4714. "format": "s",
  4715. "label": "",
  4716. "logBase": 1,
  4717. "min": "0",
  4718. "show": true
  4719. },
  4720. {
  4721. "format": "hertz",
  4722. "label": "",
  4723. "logBase": 1,
  4724. "min": "0",
  4725. "show": true
  4726. }
  4727. ],
  4728. "yaxis": {
  4729. "align": false
  4730. }
  4731. },
  4732. {
  4733. "cards": {
  4734. "cardPadding": -1
  4735. },
  4736. "color": {
  4737. "cardColor": "#b4ff00",
  4738. "colorScale": "sqrt",
  4739. "colorScheme": "interpolateInferno",
  4740. "exponent": 0.5,
  4741. "min": 0,
  4742. "mode": "spectrum"
  4743. },
  4744. "dataFormat": "tsbuckets",
  4745. "datasource": {
  4746. "uid": "$datasource"
  4747. },
  4748. "gridPos": {
  4749. "h": 9,
  4750. "w": 12,
  4751. "x": 0,
  4752. "y": 94
  4753. },
  4754. "heatmap": {},
  4755. "hideZeroBuckets": false,
  4756. "highlightCards": true,
  4757. "id": 164,
  4758. "legend": {
  4759. "show": false
  4760. },
  4761. "links": [],
  4762. "reverseYBuckets": false,
  4763. "targets": [
  4764. {
  4765. "datasource": {
  4766. "uid": "$datasource"
  4767. },
  4768. "expr": "sum(rate(synapse_federation_server_pdu_process_time_bucket{instance=\"$instance\"}[$bucket_size])) by (le)",
  4769. "format": "heatmap",
  4770. "instant": false,
  4771. "interval": "",
  4772. "intervalFactor": 1,
  4773. "legendFormat": "{{ le }}",
  4774. "refId": "A"
  4775. }
  4776. ],
  4777. "title": "Handle inbound PDU time",
  4778. "tooltip": {
  4779. "show": true,
  4780. "showHistogram": true
  4781. },
  4782. "tooltipDecimals": 2,
  4783. "type": "heatmap",
  4784. "xAxis": {
  4785. "show": true
  4786. },
  4787. "yAxis": {
  4788. "decimals": 0,
  4789. "format": "s",
  4790. "logBase": 1,
  4791. "show": true
  4792. },
  4793. "yBucketBound": "auto"
  4794. },
  4795. {
  4796. "aliasColors": {},
  4797. "bars": false,
  4798. "dashLength": 10,
  4799. "dashes": false,
  4800. "datasource": {
  4801. "uid": "$datasource"
  4802. },
  4803. "editable": true,
  4804. "error": false,
  4805. "fieldConfig": {
  4806. "defaults": {
  4807. "links": []
  4808. },
  4809. "overrides": []
  4810. },
  4811. "fill": 1,
  4812. "fillGradient": 0,
  4813. "grid": {},
  4814. "gridPos": {
  4815. "h": 9,
  4816. "w": 12,
  4817. "x": 12,
  4818. "y": 95
  4819. },
  4820. "hiddenSeries": false,
  4821. "id": 203,
  4822. "legend": {
  4823. "avg": false,
  4824. "current": false,
  4825. "max": false,
  4826. "min": false,
  4827. "show": true,
  4828. "total": false,
  4829. "values": false
  4830. },
  4831. "lines": true,
  4832. "linewidth": 2,
  4833. "links": [],
  4834. "nullPointMode": "null",
  4835. "options": {
  4836. "alertThreshold": true
  4837. },
  4838. "paceLength": 10,
  4839. "percentage": false,
  4840. "pluginVersion": "9.0.4",
  4841. "pointradius": 5,
  4842. "points": false,
  4843. "renderer": "flot",
  4844. "seriesOverrides": [],
  4845. "spaceLength": 10,
  4846. "stack": false,
  4847. "steppedLine": false,
  4848. "targets": [
  4849. {
  4850. "datasource": {
  4851. "uid": "$datasource"
  4852. },
  4853. "expr": "synapse_federation_server_oldest_inbound_pdu_in_staging{job=\"$job\",index=~\"$index\",instance=\"$instance\"}",
  4854. "format": "time_series",
  4855. "interval": "",
  4856. "intervalFactor": 1,
  4857. "legendFormat": "rss {{index}}",
  4858. "refId": "A",
  4859. "step": 4
  4860. }
  4861. ],
  4862. "thresholds": [],
  4863. "timeRegions": [],
  4864. "title": "Age of oldest event in staging area",
  4865. "tooltip": {
  4866. "msResolution": false,
  4867. "shared": true,
  4868. "sort": 0,
  4869. "value_type": "cumulative"
  4870. },
  4871. "type": "graph",
  4872. "xaxis": {
  4873. "mode": "time",
  4874. "show": true,
  4875. "values": []
  4876. },
  4877. "yaxes": [
  4878. {
  4879. "$$hashKey": "object:92",
  4880. "format": "ms",
  4881. "logBase": 1,
  4882. "min": 0,
  4883. "show": true
  4884. },
  4885. {
  4886. "$$hashKey": "object:93",
  4887. "format": "short",
  4888. "logBase": 1,
  4889. "show": true
  4890. }
  4891. ],
  4892. "yaxis": {
  4893. "align": false
  4894. }
  4895. },
  4896. {
  4897. "aliasColors": {},
  4898. "bars": false,
  4899. "dashLength": 10,
  4900. "dashes": false,
  4901. "datasource": {
  4902. "uid": "$datasource"
  4903. },
  4904. "editable": true,
  4905. "error": false,
  4906. "fieldConfig": {
  4907. "defaults": {
  4908. "links": []
  4909. },
  4910. "overrides": []
  4911. },
  4912. "fill": 1,
  4913. "fillGradient": 0,
  4914. "grid": {},
  4915. "gridPos": {
  4916. "h": 9,
  4917. "w": 12,
  4918. "x": 0,
  4919. "y": 103
  4920. },
  4921. "hiddenSeries": false,
  4922. "id": 202,
  4923. "legend": {
  4924. "avg": false,
  4925. "current": false,
  4926. "max": false,
  4927. "min": false,
  4928. "show": true,
  4929. "total": false,
  4930. "values": false
  4931. },
  4932. "lines": true,
  4933. "linewidth": 2,
  4934. "links": [],
  4935. "nullPointMode": "null",
  4936. "options": {
  4937. "alertThreshold": true
  4938. },
  4939. "paceLength": 10,
  4940. "percentage": false,
  4941. "pluginVersion": "9.0.4",
  4942. "pointradius": 5,
  4943. "points": false,
  4944. "renderer": "flot",
  4945. "seriesOverrides": [],
  4946. "spaceLength": 10,
  4947. "stack": false,
  4948. "steppedLine": false,
  4949. "targets": [
  4950. {
  4951. "datasource": {
  4952. "uid": "$datasource"
  4953. },
  4954. "expr": "synapse_federation_server_number_inbound_pdu_in_staging{job=\"$job\",index=~\"$index\",instance=\"$instance\"}",
  4955. "format": "time_series",
  4956. "interval": "",
  4957. "intervalFactor": 1,
  4958. "legendFormat": "rss {{index}}",
  4959. "refId": "A",
  4960. "step": 4
  4961. }
  4962. ],
  4963. "thresholds": [],
  4964. "timeRegions": [],
  4965. "title": "Number of events in federation staging area",
  4966. "tooltip": {
  4967. "msResolution": false,
  4968. "shared": true,
  4969. "sort": 0,
  4970. "value_type": "cumulative"
  4971. },
  4972. "type": "graph",
  4973. "xaxis": {
  4974. "mode": "time",
  4975. "show": true,
  4976. "values": []
  4977. },
  4978. "yaxes": [
  4979. {
  4980. "$$hashKey": "object:92",
  4981. "format": "none",
  4982. "logBase": 1,
  4983. "min": 0,
  4984. "show": true
  4985. },
  4986. {
  4987. "$$hashKey": "object:93",
  4988. "format": "short",
  4989. "logBase": 1,
  4990. "show": true
  4991. }
  4992. ],
  4993. "yaxis": {
  4994. "align": false
  4995. }
  4996. },
  4997. {
  4998. "aliasColors": {},
  4999. "bars": false,
  5000. "dashLength": 10,
  5001. "dashes": false,
  5002. "datasource": {
  5003. "type": "prometheus",
  5004. "uid": "$datasource"
  5005. },
  5006. "fill": 1,
  5007. "fillGradient": 0,
  5008. "gridPos": {
  5009. "h": 8,
  5010. "w": 12,
  5011. "x": 12,
  5012. "y": 104
  5013. },
  5014. "hiddenSeries": false,
  5015. "id": 205,
  5016. "legend": {
  5017. "avg": false,
  5018. "current": false,
  5019. "max": false,
  5020. "min": false,
  5021. "show": true,
  5022. "total": false,
  5023. "values": false
  5024. },
  5025. "lines": true,
  5026. "linewidth": 1,
  5027. "nullPointMode": "null",
  5028. "options": {
  5029. "alertThreshold": true
  5030. },
  5031. "percentage": false,
  5032. "pluginVersion": "9.0.4",
  5033. "pointradius": 2,
  5034. "points": false,
  5035. "renderer": "flot",
  5036. "seriesOverrides": [],
  5037. "spaceLength": 10,
  5038. "stack": false,
  5039. "steppedLine": false,
  5040. "targets": [
  5041. {
  5042. "datasource": {
  5043. "type": "prometheus",
  5044. "uid": "$datasource"
  5045. },
  5046. "expr": "sum(rate(synapse_federation_soft_failed_events_total{instance=\"$instance\"}[$bucket_size]))",
  5047. "interval": "",
  5048. "legendFormat": "soft-failed events",
  5049. "refId": "A"
  5050. }
  5051. ],
  5052. "thresholds": [],
  5053. "timeRegions": [],
  5054. "title": "Soft-failed event rate",
  5055. "tooltip": {
  5056. "shared": true,
  5057. "sort": 0,
  5058. "value_type": "individual"
  5059. },
  5060. "type": "graph",
  5061. "xaxis": {
  5062. "mode": "time",
  5063. "show": true,
  5064. "values": []
  5065. },
  5066. "yaxes": [
  5067. {
  5068. "$$hashKey": "object:131",
  5069. "format": "hertz",
  5070. "logBase": 1,
  5071. "show": true
  5072. },
  5073. {
  5074. "$$hashKey": "object:132",
  5075. "format": "short",
  5076. "logBase": 1,
  5077. "show": false
  5078. }
  5079. ],
  5080. "yaxis": {
  5081. "align": false
  5082. }
  5083. }
  5084. ],
  5085. "targets": [
  5086. {
  5087. "datasource": {
  5088. "type": "prometheus",
  5089. "uid": "$datasource"
  5090. },
  5091. "refId": "A"
  5092. }
  5093. ],
  5094. "title": "Federation",
  5095. "type": "row"
  5096. },
  5097. {
  5098. "collapsed": true,
  5099. "gridPos": {
  5100. "h": 1,
  5101. "w": 24,
  5102. "x": 0,
  5103. "y": 31
  5104. },
  5105. "id": 227,
  5106. "panels": [
  5107. {
  5108. "datasource": {
  5109. "type": "prometheus",
  5110. "uid": "${DS_PROMETHEUS}"
  5111. },
  5112. "fieldConfig": {
  5113. "defaults": {
  5114. "color": {
  5115. "mode": "palette-classic"
  5116. },
  5117. "custom": {
  5118. "axisLabel": "",
  5119. "axisPlacement": "auto",
  5120. "barAlignment": 0,
  5121. "drawStyle": "line",
  5122. "fillOpacity": 0,
  5123. "gradientMode": "none",
  5124. "hideFrom": {
  5125. "legend": false,
  5126. "tooltip": false,
  5127. "viz": false
  5128. },
  5129. "lineInterpolation": "linear",
  5130. "lineWidth": 1,
  5131. "pointSize": 5,
  5132. "scaleDistribution": {
  5133. "type": "linear"
  5134. },
  5135. "showPoints": "auto",
  5136. "spanNulls": false,
  5137. "stacking": {
  5138. "group": "A",
  5139. "mode": "none"
  5140. },
  5141. "thresholdsStyle": {
  5142. "mode": "off"
  5143. }
  5144. },
  5145. "mappings": [],
  5146. "thresholds": {
  5147. "mode": "absolute",
  5148. "steps": [
  5149. {
  5150. "color": "green"
  5151. },
  5152. {
  5153. "color": "red",
  5154. "value": 80
  5155. }
  5156. ]
  5157. }
  5158. },
  5159. "overrides": []
  5160. },
  5161. "gridPos": {
  5162. "h": 8,
  5163. "w": 12,
  5164. "x": 0,
  5165. "y": 1
  5166. },
  5167. "id": 239,
  5168. "options": {
  5169. "legend": {
  5170. "calcs": [],
  5171. "displayMode": "list",
  5172. "placement": "bottom",
  5173. "showLegend": true
  5174. },
  5175. "tooltip": {
  5176. "mode": "single",
  5177. "sort": "none"
  5178. }
  5179. },
  5180. "targets": [
  5181. {
  5182. "datasource": {
  5183. "type": "prometheus",
  5184. "uid": "${DS_PROMETHEUS}"
  5185. },
  5186. "expr": "sum(increase(synapse_rate_limit_reject_total{instance=\"$instance\"}[$bucket_size]))",
  5187. "refId": "A"
  5188. }
  5189. ],
  5190. "title": "Number of rate limit rejected requests",
  5191. "type": "timeseries"
  5192. },
  5193. {
  5194. "datasource": {
  5195. "type": "prometheus",
  5196. "uid": "${DS_PROMETHEUS}"
  5197. },
  5198. "fieldConfig": {
  5199. "defaults": {
  5200. "color": {
  5201. "mode": "palette-classic"
  5202. },
  5203. "custom": {
  5204. "axisLabel": "",
  5205. "axisPlacement": "auto",
  5206. "barAlignment": 0,
  5207. "drawStyle": "line",
  5208. "fillOpacity": 0,
  5209. "gradientMode": "none",
  5210. "hideFrom": {
  5211. "legend": false,
  5212. "tooltip": false,
  5213. "viz": false
  5214. },
  5215. "lineInterpolation": "linear",
  5216. "lineWidth": 1,
  5217. "pointSize": 5,
  5218. "scaleDistribution": {
  5219. "type": "linear"
  5220. },
  5221. "showPoints": "auto",
  5222. "spanNulls": false,
  5223. "stacking": {
  5224. "group": "A",
  5225. "mode": "none"
  5226. },
  5227. "thresholdsStyle": {
  5228. "mode": "off"
  5229. }
  5230. },
  5231. "mappings": [],
  5232. "thresholds": {
  5233. "mode": "absolute",
  5234. "steps": [
  5235. {
  5236. "color": "green"
  5237. },
  5238. {
  5239. "color": "red",
  5240. "value": 80
  5241. }
  5242. ]
  5243. }
  5244. },
  5245. "overrides": []
  5246. },
  5247. "gridPos": {
  5248. "h": 8,
  5249. "w": 12,
  5250. "x": 12,
  5251. "y": 1
  5252. },
  5253. "id": 235,
  5254. "options": {
  5255. "legend": {
  5256. "calcs": [],
  5257. "displayMode": "list",
  5258. "placement": "bottom",
  5259. "showLegend": true
  5260. },
  5261. "tooltip": {
  5262. "mode": "single",
  5263. "sort": "none"
  5264. }
  5265. },
  5266. "targets": [
  5267. {
  5268. "datasource": {
  5269. "type": "prometheus",
  5270. "uid": "${DS_PROMETHEUS}"
  5271. },
  5272. "expr": "sum(increase(synapse_rate_limit_sleep_total{instance=\"$instance\"}[$bucket_size]))",
  5273. "refId": "A"
  5274. }
  5275. ],
  5276. "title": "Number of requests being slept by the rate limiter",
  5277. "type": "timeseries"
  5278. },
  5279. {
  5280. "datasource": {
  5281. "type": "prometheus",
  5282. "uid": "${DS_PROMETHEUS}"
  5283. },
  5284. "description": "Why is the data zero (0)? https://github.com/matrix-org/synapse/pull/13541#discussion_r951926322",
  5285. "fieldConfig": {
  5286. "defaults": {
  5287. "color": {
  5288. "mode": "palette-classic"
  5289. },
  5290. "custom": {
  5291. "axisLabel": "",
  5292. "axisPlacement": "auto",
  5293. "barAlignment": 0,
  5294. "drawStyle": "line",
  5295. "fillOpacity": 0,
  5296. "gradientMode": "none",
  5297. "hideFrom": {
  5298. "legend": false,
  5299. "tooltip": false,
  5300. "viz": false
  5301. },
  5302. "lineInterpolation": "linear",
  5303. "lineWidth": 1,
  5304. "pointSize": 5,
  5305. "scaleDistribution": {
  5306. "type": "linear"
  5307. },
  5308. "showPoints": "auto",
  5309. "spanNulls": false,
  5310. "stacking": {
  5311. "group": "A",
  5312. "mode": "none"
  5313. },
  5314. "thresholdsStyle": {
  5315. "mode": "off"
  5316. }
  5317. },
  5318. "mappings": [],
  5319. "thresholds": {
  5320. "mode": "absolute",
  5321. "steps": [
  5322. {
  5323. "color": "green"
  5324. },
  5325. {
  5326. "color": "red",
  5327. "value": 80
  5328. }
  5329. ]
  5330. }
  5331. },
  5332. "overrides": []
  5333. },
  5334. "gridPos": {
  5335. "h": 8,
  5336. "w": 12,
  5337. "x": 0,
  5338. "y": 9
  5339. },
  5340. "id": 237,
  5341. "options": {
  5342. "legend": {
  5343. "calcs": [],
  5344. "displayMode": "list",
  5345. "placement": "bottom",
  5346. "showLegend": true
  5347. },
  5348. "tooltip": {
  5349. "mode": "single",
  5350. "sort": "none"
  5351. }
  5352. },
  5353. "pluginVersion": "9.0.4",
  5354. "targets": [
  5355. {
  5356. "datasource": {
  5357. "type": "prometheus",
  5358. "uid": "${DS_PROMETHEUS}"
  5359. },
  5360. "expr": "sum(increase(synapse_rate_limit_reject_affected_hosts{instance=\"$instance\"}[$bucket_size]))",
  5361. "refId": "A"
  5362. }
  5363. ],
  5364. "title": "Number of hosts being rejected by the rate limiter",
  5365. "type": "timeseries"
  5366. },
  5367. {
  5368. "datasource": {
  5369. "type": "prometheus",
  5370. "uid": "${DS_PROMETHEUS}"
  5371. },
  5372. "description": "https://github.com/matrix-org/synapse/pull/13541",
  5373. "fieldConfig": {
  5374. "defaults": {
  5375. "color": {
  5376. "mode": "palette-classic"
  5377. },
  5378. "custom": {
  5379. "axisLabel": "",
  5380. "axisPlacement": "auto",
  5381. "barAlignment": 0,
  5382. "drawStyle": "line",
  5383. "fillOpacity": 0,
  5384. "gradientMode": "none",
  5385. "hideFrom": {
  5386. "legend": false,
  5387. "tooltip": false,
  5388. "viz": false
  5389. },
  5390. "lineInterpolation": "linear",
  5391. "lineWidth": 1,
  5392. "pointSize": 5,
  5393. "scaleDistribution": {
  5394. "type": "linear"
  5395. },
  5396. "showPoints": "auto",
  5397. "spanNulls": false,
  5398. "stacking": {
  5399. "group": "A",
  5400. "mode": "none"
  5401. },
  5402. "thresholdsStyle": {
  5403. "mode": "off"
  5404. }
  5405. },
  5406. "mappings": [],
  5407. "thresholds": {
  5408. "mode": "absolute",
  5409. "steps": [
  5410. {
  5411. "color": "green"
  5412. },
  5413. {
  5414. "color": "red",
  5415. "value": 80
  5416. }
  5417. ]
  5418. }
  5419. },
  5420. "overrides": []
  5421. },
  5422. "gridPos": {
  5423. "h": 8,
  5424. "w": 12,
  5425. "x": 12,
  5426. "y": 9
  5427. },
  5428. "id": 233,
  5429. "options": {
  5430. "legend": {
  5431. "calcs": [],
  5432. "displayMode": "list",
  5433. "placement": "bottom",
  5434. "showLegend": true
  5435. },
  5436. "tooltip": {
  5437. "mode": "single",
  5438. "sort": "none"
  5439. }
  5440. },
  5441. "pluginVersion": "9.0.4",
  5442. "targets": [
  5443. {
  5444. "datasource": {
  5445. "type": "prometheus",
  5446. "uid": "${DS_PROMETHEUS}"
  5447. },
  5448. "expr": "sum(increase(synapse_rate_limit_sleep_affected_hosts{instance=\"$instance\"}[$bucket_size]))",
  5449. "refId": "A"
  5450. }
  5451. ],
  5452. "title": "Number of hosts being slept by the rate limiter",
  5453. "type": "timeseries"
  5454. },
  5455. {
  5456. "aliasColors": {},
  5457. "bars": false,
  5458. "dashLength": 10,
  5459. "dashes": false,
  5460. "datasource": {
  5461. "type": "prometheus",
  5462. "uid": "$datasource"
  5463. },
  5464. "description": "",
  5465. "fieldConfig": {
  5466. "defaults": {
  5467. "links": []
  5468. },
  5469. "overrides": []
  5470. },
  5471. "fill": 0,
  5472. "fillGradient": 0,
  5473. "gridPos": {
  5474. "h": 8,
  5475. "w": 12,
  5476. "x": 0,
  5477. "y": 17
  5478. },
  5479. "hiddenSeries": false,
  5480. "id": 229,
  5481. "legend": {
  5482. "avg": false,
  5483. "current": false,
  5484. "max": false,
  5485. "min": false,
  5486. "rightSide": false,
  5487. "show": true,
  5488. "total": false,
  5489. "values": false
  5490. },
  5491. "lines": true,
  5492. "linewidth": 0,
  5493. "links": [],
  5494. "nullPointMode": "connected",
  5495. "options": {
  5496. "alertThreshold": true
  5497. },
  5498. "paceLength": 10,
  5499. "percentage": false,
  5500. "pluginVersion": "9.0.4",
  5501. "pointradius": 5,
  5502. "points": false,
  5503. "renderer": "flot",
  5504. "seriesOverrides": [
  5505. {
  5506. "$$hashKey": "object:276",
  5507. "alias": "Avg",
  5508. "fill": 0,
  5509. "linewidth": 3
  5510. },
  5511. {
  5512. "$$hashKey": "object:277",
  5513. "alias": "99%",
  5514. "color": "#C4162A",
  5515. "fillBelowTo": "90%"
  5516. },
  5517. {
  5518. "$$hashKey": "object:278",
  5519. "alias": "90%",
  5520. "color": "#FF7383",
  5521. "fillBelowTo": "75%"
  5522. },
  5523. {
  5524. "$$hashKey": "object:279",
  5525. "alias": "75%",
  5526. "color": "#FFEE52",
  5527. "fillBelowTo": "50%"
  5528. },
  5529. {
  5530. "$$hashKey": "object:280",
  5531. "alias": "50%",
  5532. "color": "#73BF69",
  5533. "fillBelowTo": "25%"
  5534. },
  5535. {
  5536. "$$hashKey": "object:281",
  5537. "alias": "25%",
  5538. "color": "#1F60C4",
  5539. "fillBelowTo": "5%"
  5540. },
  5541. {
  5542. "$$hashKey": "object:282",
  5543. "alias": "5%",
  5544. "lines": false
  5545. },
  5546. {
  5547. "$$hashKey": "object:283",
  5548. "alias": "Average",
  5549. "color": "rgb(255, 255, 255)",
  5550. "lines": true,
  5551. "linewidth": 3
  5552. },
  5553. {
  5554. "$$hashKey": "object:284",
  5555. "alias": ">99%",
  5556. "color": "#B877D9",
  5557. "fill": 3,
  5558. "lines": true
  5559. }
  5560. ],
  5561. "spaceLength": 10,
  5562. "stack": false,
  5563. "steppedLine": false,
  5564. "targets": [
  5565. {
  5566. "datasource": {
  5567. "uid": "$datasource"
  5568. },
  5569. "editorMode": "code",
  5570. "expr": "histogram_quantile(0.9995, sum(rate(synapse_rate_limit_queue_wait_time_seconds_bucket{index=~\"$index\",instance=\"$instance\"}[$bucket_size])) by (le))",
  5571. "format": "time_series",
  5572. "hide": false,
  5573. "intervalFactor": 1,
  5574. "legendFormat": ">99%",
  5575. "range": true,
  5576. "refId": "E"
  5577. },
  5578. {
  5579. "datasource": {
  5580. "uid": "$datasource"
  5581. },
  5582. "editorMode": "code",
  5583. "expr": "histogram_quantile(0.99, sum(rate(synapse_rate_limit_queue_wait_time_seconds_bucket{index=~\"$index\",instance=\"$instance\"}[$bucket_size])) by (le))",
  5584. "format": "time_series",
  5585. "intervalFactor": 1,
  5586. "legendFormat": "99%",
  5587. "range": true,
  5588. "refId": "D"
  5589. },
  5590. {
  5591. "datasource": {
  5592. "uid": "$datasource"
  5593. },
  5594. "expr": "histogram_quantile(0.9, sum(rate(synapse_rate_limit_queue_wait_time_seconds_bucket{index=~\"$index\",instance=\"$instance\"}[$bucket_size])) by (le))",
  5595. "format": "time_series",
  5596. "interval": "",
  5597. "intervalFactor": 1,
  5598. "legendFormat": "90%",
  5599. "refId": "A"
  5600. },
  5601. {
  5602. "datasource": {
  5603. "uid": "$datasource"
  5604. },
  5605. "expr": "histogram_quantile(0.75, sum(rate(synapse_rate_limit_queue_wait_time_seconds_bucket{index=~\"$index\",instance=\"$instance\"}[$bucket_size])) by (le))",
  5606. "format": "time_series",
  5607. "intervalFactor": 1,
  5608. "legendFormat": "75%",
  5609. "refId": "C"
  5610. },
  5611. {
  5612. "datasource": {
  5613. "uid": "$datasource"
  5614. },
  5615. "expr": "histogram_quantile(0.5, sum(rate(synapse_rate_limit_queue_wait_time_seconds_bucket{index=~\"$index\",instance=\"$instance\"}[$bucket_size])) by (le))",
  5616. "format": "time_series",
  5617. "intervalFactor": 1,
  5618. "legendFormat": "50%",
  5619. "refId": "B"
  5620. },
  5621. {
  5622. "datasource": {
  5623. "uid": "$datasource"
  5624. },
  5625. "expr": "histogram_quantile(0.25, sum(rate(synapse_rate_limit_queue_wait_time_seconds_bucket{index=~\"$index\",instance=\"$instance\"}[$bucket_size])) by (le))",
  5626. "legendFormat": "25%",
  5627. "refId": "F"
  5628. },
  5629. {
  5630. "datasource": {
  5631. "uid": "$datasource"
  5632. },
  5633. "expr": "histogram_quantile(0.05, sum(rate(synapse_rate_limit_queue_wait_time_seconds_bucket{index=~\"$index\",instance=\"$instance\"}[$bucket_size])) by (le))",
  5634. "legendFormat": "5%",
  5635. "refId": "G"
  5636. },
  5637. {
  5638. "datasource": {
  5639. "uid": "$datasource"
  5640. },
  5641. "expr": "sum(rate(synapse_rate_limit_queue_wait_time_seconds_sum{index=~\"$index\",instance=\"$instance\"}[$bucket_size])) / sum(rate(synapse_rate_limit_queue_wait_time_seconds_count{index=~\"$index\",instance=\"$instance\"}[$bucket_size]))",
  5642. "legendFormat": "Average",
  5643. "refId": "H"
  5644. }
  5645. ],
  5646. "thresholds": [
  5647. {
  5648. "$$hashKey": "object:283",
  5649. "colorMode": "warning",
  5650. "fill": false,
  5651. "line": true,
  5652. "op": "gt",
  5653. "value": 1,
  5654. "yaxis": "left"
  5655. },
  5656. {
  5657. "$$hashKey": "object:284",
  5658. "colorMode": "critical",
  5659. "fill": false,
  5660. "line": true,
  5661. "op": "gt",
  5662. "value": 2,
  5663. "yaxis": "left"
  5664. }
  5665. ],
  5666. "timeRegions": [],
  5667. "title": "Rate limit queue wait time Quantiles (all workers)",
  5668. "tooltip": {
  5669. "shared": true,
  5670. "sort": 2,
  5671. "value_type": "individual"
  5672. },
  5673. "type": "graph",
  5674. "xaxis": {
  5675. "mode": "time",
  5676. "show": true,
  5677. "values": []
  5678. },
  5679. "yaxes": [
  5680. {
  5681. "$$hashKey": "object:255",
  5682. "format": "s",
  5683. "label": "",
  5684. "logBase": 1,
  5685. "min": "0",
  5686. "show": true
  5687. },
  5688. {
  5689. "$$hashKey": "object:256",
  5690. "format": "hertz",
  5691. "label": "",
  5692. "logBase": 1,
  5693. "min": "0",
  5694. "show": true
  5695. }
  5696. ],
  5697. "yaxis": {
  5698. "align": false
  5699. }
  5700. },
  5701. {
  5702. "datasource": {
  5703. "type": "prometheus",
  5704. "uid": "${DS_PROMETHEUS}"
  5705. },
  5706. "fieldConfig": {
  5707. "defaults": {
  5708. "color": {
  5709. "mode": "palette-classic"
  5710. },
  5711. "custom": {
  5712. "axisLabel": "",
  5713. "axisPlacement": "auto",
  5714. "barAlignment": 0,
  5715. "drawStyle": "line",
  5716. "fillOpacity": 0,
  5717. "gradientMode": "none",
  5718. "hideFrom": {
  5719. "legend": false,
  5720. "tooltip": false,
  5721. "viz": false
  5722. },
  5723. "lineInterpolation": "linear",
  5724. "lineWidth": 1,
  5725. "pointSize": 5,
  5726. "scaleDistribution": {
  5727. "type": "linear"
  5728. },
  5729. "showPoints": "auto",
  5730. "spanNulls": false,
  5731. "stacking": {
  5732. "group": "A",
  5733. "mode": "none"
  5734. },
  5735. "thresholdsStyle": {
  5736. "mode": "line"
  5737. }
  5738. },
  5739. "mappings": [],
  5740. "thresholds": {
  5741. "mode": "absolute",
  5742. "steps": [
  5743. {
  5744. "color": "green"
  5745. }
  5746. ]
  5747. },
  5748. "unit": "hertz"
  5749. },
  5750. "overrides": [
  5751. {
  5752. "matcher": {
  5753. "id": "byName",
  5754. "options": "Default reject threshold (50 requests within a second)"
  5755. },
  5756. "properties": [
  5757. {
  5758. "id": "color",
  5759. "value": {
  5760. "fixedColor": "red",
  5761. "mode": "fixed"
  5762. }
  5763. },
  5764. {
  5765. "id": "custom.lineWidth",
  5766. "value": 2
  5767. }
  5768. ]
  5769. }
  5770. ]
  5771. },
  5772. "gridPos": {
  5773. "h": 8,
  5774. "w": 12,
  5775. "x": 12,
  5776. "y": 17
  5777. },
  5778. "id": 231,
  5779. "options": {
  5780. "legend": {
  5781. "calcs": [],
  5782. "displayMode": "list",
  5783. "placement": "bottom",
  5784. "showLegend": true
  5785. },
  5786. "tooltip": {
  5787. "mode": "single",
  5788. "sort": "none"
  5789. }
  5790. },
  5791. "targets": [
  5792. {
  5793. "datasource": {
  5794. "type": "prometheus",
  5795. "uid": "${DS_PROMETHEUS}"
  5796. },
  5797. "expr": "sum(rate(synapse_rate_limit_sleep_total{instance=\"$instance\"}[$bucket_size]))",
  5798. "refId": "A"
  5799. },
  5800. {
  5801. "datasource": {
  5802. "type": "prometheus",
  5803. "uid": "${DS_PROMETHEUS}"
  5804. },
  5805. "editorMode": "code",
  5806. "expr": "50",
  5807. "hide": false,
  5808. "legendFormat": "Default reject threshold (50 requests within a second)",
  5809. "range": true,
  5810. "refId": "B"
  5811. }
  5812. ],
  5813. "title": "Rate of requests being slept by the rate limiter",
  5814. "type": "timeseries"
  5815. }
  5816. ],
  5817. "title": "Federation rate limiter",
  5818. "type": "row"
  5819. },
  5820. {
  5821. "collapsed": true,
  5822. "datasource": {
  5823. "type": "prometheus",
  5824. "uid": "$datasource"
  5825. },
  5826. "gridPos": {
  5827. "h": 1,
  5828. "w": 24,
  5829. "x": 0,
  5830. "y": 32
  5831. },
  5832. "id": 60,
  5833. "panels": [
  5834. {
  5835. "aliasColors": {},
  5836. "bars": false,
  5837. "dashLength": 10,
  5838. "dashes": false,
  5839. "datasource": {
  5840. "uid": "$datasource"
  5841. },
  5842. "fieldConfig": {
  5843. "defaults": {
  5844. "links": []
  5845. },
  5846. "overrides": []
  5847. },
  5848. "fill": 1,
  5849. "fillGradient": 0,
  5850. "gridPos": {
  5851. "h": 8,
  5852. "w": 12,
  5853. "x": 0,
  5854. "y": 32
  5855. },
  5856. "hiddenSeries": false,
  5857. "id": 51,
  5858. "legend": {
  5859. "avg": false,
  5860. "current": false,
  5861. "max": false,
  5862. "min": false,
  5863. "show": true,
  5864. "total": false,
  5865. "values": false
  5866. },
  5867. "lines": true,
  5868. "linewidth": 1,
  5869. "links": [],
  5870. "nullPointMode": "null",
  5871. "options": {
  5872. "alertThreshold": true
  5873. },
  5874. "paceLength": 10,
  5875. "percentage": false,
  5876. "pluginVersion": "8.4.3",
  5877. "pointradius": 5,
  5878. "points": false,
  5879. "renderer": "flot",
  5880. "seriesOverrides": [],
  5881. "spaceLength": 10,
  5882. "stack": false,
  5883. "steppedLine": false,
  5884. "targets": [
  5885. {
  5886. "datasource": {
  5887. "uid": "$datasource"
  5888. },
  5889. "expr": "rate(synapse_http_httppusher_http_pushes_processed_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size]) and on (instance, job, index) (synapse_http_httppusher_http_pushes_failed_total + synapse_http_httppusher_http_pushes_processed_total) > 0",
  5890. "format": "time_series",
  5891. "interval": "",
  5892. "intervalFactor": 2,
  5893. "legendFormat": "processed {{job}}",
  5894. "refId": "A",
  5895. "step": 20
  5896. },
  5897. {
  5898. "datasource": {
  5899. "uid": "$datasource"
  5900. },
  5901. "expr": "rate(synapse_http_httppusher_http_pushes_failed_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size]) and on (instance, job, index) (synapse_http_httppusher_http_pushes_failed_total + synapse_http_httppusher_http_pushes_processed_total) > 0",
  5902. "format": "time_series",
  5903. "intervalFactor": 2,
  5904. "legendFormat": "failed {{job}}",
  5905. "refId": "B",
  5906. "step": 20
  5907. }
  5908. ],
  5909. "thresholds": [],
  5910. "timeRegions": [],
  5911. "title": "HTTP Push rate",
  5912. "tooltip": {
  5913. "shared": true,
  5914. "sort": 0,
  5915. "value_type": "individual"
  5916. },
  5917. "type": "graph",
  5918. "xaxis": {
  5919. "mode": "time",
  5920. "show": true,
  5921. "values": []
  5922. },
  5923. "yaxes": [
  5924. {
  5925. "format": "hertz",
  5926. "logBase": 1,
  5927. "show": true
  5928. },
  5929. {
  5930. "format": "short",
  5931. "logBase": 1,
  5932. "show": true
  5933. }
  5934. ],
  5935. "yaxis": {
  5936. "align": false
  5937. }
  5938. },
  5939. {
  5940. "aliasColors": {},
  5941. "bars": false,
  5942. "dashLength": 10,
  5943. "dashes": false,
  5944. "datasource": {
  5945. "uid": "$datasource"
  5946. },
  5947. "description": "",
  5948. "fieldConfig": {
  5949. "defaults": {
  5950. "links": []
  5951. },
  5952. "overrides": []
  5953. },
  5954. "fill": 1,
  5955. "fillGradient": 0,
  5956. "gridPos": {
  5957. "h": 8,
  5958. "w": 12,
  5959. "x": 12,
  5960. "y": 32
  5961. },
  5962. "hiddenSeries": false,
  5963. "id": 134,
  5964. "legend": {
  5965. "avg": false,
  5966. "current": false,
  5967. "hideZero": false,
  5968. "max": false,
  5969. "min": false,
  5970. "show": true,
  5971. "total": false,
  5972. "values": false
  5973. },
  5974. "lines": true,
  5975. "linewidth": 1,
  5976. "nullPointMode": "null",
  5977. "options": {
  5978. "alertThreshold": true
  5979. },
  5980. "percentage": false,
  5981. "pluginVersion": "8.4.3",
  5982. "pointradius": 2,
  5983. "points": false,
  5984. "renderer": "flot",
  5985. "seriesOverrides": [],
  5986. "spaceLength": 10,
  5987. "stack": false,
  5988. "steppedLine": false,
  5989. "targets": [
  5990. {
  5991. "datasource": {
  5992. "uid": "$datasource"
  5993. },
  5994. "expr": "topk(10,synapse_pushers{job=~\"$job\",index=~\"$index\", instance=\"$instance\"})",
  5995. "legendFormat": "{{kind}} {{app_id}}",
  5996. "refId": "A"
  5997. }
  5998. ],
  5999. "thresholds": [],
  6000. "timeRegions": [],
  6001. "title": "Active pusher instances by app",
  6002. "tooltip": {
  6003. "shared": false,
  6004. "sort": 2,
  6005. "value_type": "individual"
  6006. },
  6007. "type": "graph",
  6008. "xaxis": {
  6009. "mode": "time",
  6010. "show": true,
  6011. "values": []
  6012. },
  6013. "yaxes": [
  6014. {
  6015. "format": "short",
  6016. "logBase": 1,
  6017. "show": true
  6018. },
  6019. {
  6020. "format": "short",
  6021. "logBase": 1,
  6022. "show": true
  6023. }
  6024. ],
  6025. "yaxis": {
  6026. "align": false
  6027. }
  6028. }
  6029. ],
  6030. "targets": [
  6031. {
  6032. "datasource": {
  6033. "type": "prometheus",
  6034. "uid": "$datasource"
  6035. },
  6036. "refId": "A"
  6037. }
  6038. ],
  6039. "title": "Pushes",
  6040. "type": "row"
  6041. },
  6042. {
  6043. "collapsed": true,
  6044. "datasource": {
  6045. "type": "prometheus",
  6046. "uid": "$datasource"
  6047. },
  6048. "gridPos": {
  6049. "h": 1,
  6050. "w": 24,
  6051. "x": 0,
  6052. "y": 33
  6053. },
  6054. "id": 219,
  6055. "panels": [
  6056. {
  6057. "aliasColors": {},
  6058. "bars": false,
  6059. "dashLength": 10,
  6060. "dashes": false,
  6061. "datasource": {
  6062. "type": "prometheus",
  6063. "uid": "${DS_PROMETHEUS}"
  6064. },
  6065. "description": "How many entries in current state that we are iterating over while calculating push rules.",
  6066. "fieldConfig": {
  6067. "defaults": {
  6068. "links": []
  6069. },
  6070. "overrides": []
  6071. },
  6072. "fill": 1,
  6073. "fillGradient": 0,
  6074. "gridPos": {
  6075. "h": 7,
  6076. "w": 12,
  6077. "x": 0,
  6078. "y": 33
  6079. },
  6080. "hiddenSeries": false,
  6081. "id": 209,
  6082. "legend": {
  6083. "avg": false,
  6084. "current": false,
  6085. "max": false,
  6086. "min": false,
  6087. "show": false,
  6088. "total": false,
  6089. "values": false
  6090. },
  6091. "lines": true,
  6092. "linewidth": 1,
  6093. "links": [],
  6094. "nullPointMode": "null",
  6095. "options": {
  6096. "alertThreshold": true
  6097. },
  6098. "paceLength": 10,
  6099. "percentage": false,
  6100. "pluginVersion": "8.4.3",
  6101. "pointradius": 5,
  6102. "points": false,
  6103. "renderer": "flot",
  6104. "seriesOverrides": [],
  6105. "spaceLength": 10,
  6106. "stack": false,
  6107. "steppedLine": false,
  6108. "targets": [
  6109. {
  6110. "datasource": {
  6111. "type": "prometheus",
  6112. "uid": "${DS_PROMETHEUS}"
  6113. },
  6114. "exemplar": true,
  6115. "expr": "sum(rate(synapse_push_bulk_push_rule_evaluator_push_rules_state_size_counter_total{job=\"$job\",index=~\"$index\",instance=\"$instance\"}[$bucket_size]))",
  6116. "format": "time_series",
  6117. "interval": "",
  6118. "intervalFactor": 2,
  6119. "legendFormat": "{{index}}",
  6120. "metric": "synapse_push_bulk_push_rule_evaluator_push_rules_state_size_counter_total",
  6121. "refId": "A",
  6122. "step": 2
  6123. }
  6124. ],
  6125. "thresholds": [],
  6126. "timeRegions": [],
  6127. "title": "Iterations over State",
  6128. "tooltip": {
  6129. "shared": true,
  6130. "sort": 0,
  6131. "value_type": "individual"
  6132. },
  6133. "type": "graph",
  6134. "xaxis": {
  6135. "mode": "time",
  6136. "show": true,
  6137. "values": []
  6138. },
  6139. "yaxes": [
  6140. {
  6141. "format": "hertz",
  6142. "label": "",
  6143. "logBase": 1,
  6144. "min": "0",
  6145. "show": true
  6146. },
  6147. {
  6148. "format": "short",
  6149. "logBase": 1,
  6150. "show": true
  6151. }
  6152. ],
  6153. "yaxis": {
  6154. "align": false
  6155. }
  6156. },
  6157. {
  6158. "aliasColors": {},
  6159. "bars": false,
  6160. "dashLength": 10,
  6161. "dashes": false,
  6162. "datasource": {
  6163. "type": "prometheus",
  6164. "uid": "${DS_PROMETHEUS}"
  6165. },
  6166. "description": "Rate that the cached push rules for a room get invalidated due to underlying push rules being changed. ",
  6167. "fieldConfig": {
  6168. "defaults": {
  6169. "links": []
  6170. },
  6171. "overrides": []
  6172. },
  6173. "fill": 1,
  6174. "fillGradient": 0,
  6175. "gridPos": {
  6176. "h": 7,
  6177. "w": 12,
  6178. "x": 12,
  6179. "y": 33
  6180. },
  6181. "hiddenSeries": false,
  6182. "id": 211,
  6183. "legend": {
  6184. "avg": false,
  6185. "current": false,
  6186. "max": false,
  6187. "min": false,
  6188. "show": false,
  6189. "total": false,
  6190. "values": false
  6191. },
  6192. "lines": true,
  6193. "linewidth": 1,
  6194. "links": [],
  6195. "nullPointMode": "null",
  6196. "options": {
  6197. "alertThreshold": true
  6198. },
  6199. "paceLength": 10,
  6200. "percentage": false,
  6201. "pluginVersion": "8.4.3",
  6202. "pointradius": 5,
  6203. "points": false,
  6204. "renderer": "flot",
  6205. "seriesOverrides": [],
  6206. "spaceLength": 10,
  6207. "stack": false,
  6208. "steppedLine": false,
  6209. "targets": [
  6210. {
  6211. "datasource": {
  6212. "type": "prometheus",
  6213. "uid": "$datasource"
  6214. },
  6215. "exemplar": true,
  6216. "expr": "sum(rate(synapse_push_bulk_push_rule_evaluator_push_rules_invalidation_counter_total{job=\"$job\",index=~\"$index\",instance=\"$instance\"}[$bucket_size]))",
  6217. "format": "time_series",
  6218. "interval": "",
  6219. "intervalFactor": 2,
  6220. "legendFormat": "{{index}}",
  6221. "metric": "synapse_push_bulk_push_rule_evaluator_push_rules_invalidation_counter_total",
  6222. "refId": "A",
  6223. "step": 2
  6224. }
  6225. ],
  6226. "thresholds": [],
  6227. "timeRegions": [],
  6228. "title": "Push Rule Invalidations",
  6229. "tooltip": {
  6230. "shared": true,
  6231. "sort": 0,
  6232. "value_type": "individual"
  6233. },
  6234. "type": "graph",
  6235. "xaxis": {
  6236. "mode": "time",
  6237. "show": true,
  6238. "values": []
  6239. },
  6240. "yaxes": [
  6241. {
  6242. "format": "hertz",
  6243. "label": "",
  6244. "logBase": 1,
  6245. "min": "0",
  6246. "show": true
  6247. },
  6248. {
  6249. "format": "short",
  6250. "logBase": 1,
  6251. "show": true
  6252. }
  6253. ],
  6254. "yaxis": {
  6255. "align": false
  6256. }
  6257. },
  6258. {
  6259. "aliasColors": {},
  6260. "bars": false,
  6261. "dashLength": 10,
  6262. "dashes": false,
  6263. "datasource": {
  6264. "type": "prometheus",
  6265. "uid": "${DS_PROMETHEUS}"
  6266. },
  6267. "description": "How often the \"delta optimisation\" happens.\n\nThe delta optimisation is when we update the push rules for a room incrementally after a state change where we know the delta between the old state and the new state.\n\nThis can't happen if we don't the delta or we're calculating push rules from scratch.",
  6268. "fieldConfig": {
  6269. "defaults": {
  6270. "links": []
  6271. },
  6272. "overrides": []
  6273. },
  6274. "fill": 1,
  6275. "fillGradient": 0,
  6276. "gridPos": {
  6277. "h": 7,
  6278. "w": 12,
  6279. "x": 0,
  6280. "y": 40
  6281. },
  6282. "hiddenSeries": false,
  6283. "id": 213,
  6284. "legend": {
  6285. "avg": false,
  6286. "current": false,
  6287. "max": false,
  6288. "min": false,
  6289. "show": true,
  6290. "total": false,
  6291. "values": false
  6292. },
  6293. "lines": true,
  6294. "linewidth": 1,
  6295. "links": [],
  6296. "nullPointMode": "null",
  6297. "options": {
  6298. "alertThreshold": true
  6299. },
  6300. "paceLength": 10,
  6301. "percentage": false,
  6302. "pluginVersion": "8.4.3",
  6303. "pointradius": 5,
  6304. "points": false,
  6305. "renderer": "flot",
  6306. "seriesOverrides": [
  6307. {
  6308. "alias": "Number of calls",
  6309. "yaxis": 2
  6310. }
  6311. ],
  6312. "spaceLength": 10,
  6313. "stack": false,
  6314. "steppedLine": false,
  6315. "targets": [
  6316. {
  6317. "datasource": {
  6318. "type": "prometheus",
  6319. "uid": "${DS_PROMETHEUS}"
  6320. },
  6321. "exemplar": true,
  6322. "expr": "sum(rate(synapse_util_caches_cache_hits{job=\"$job\",index=~\"$index\",name=\"push_rules_delta_state_cache_metric\",instance=\"$instance\"}[$bucket_size]))/sum(rate(synapse_util_caches_cache{job=\"$job\",index=~\"$index\", name=\"push_rules_delta_state_cache_metric\",instance=\"$instance\"}[$bucket_size]))",
  6323. "format": "time_series",
  6324. "interval": "",
  6325. "intervalFactor": 2,
  6326. "legendFormat": "Hit Rate",
  6327. "metric": "synapse_push_bulk_push_rule_evaluator_push_rules_invalidation_counter_total",
  6328. "refId": "A",
  6329. "step": 2
  6330. },
  6331. {
  6332. "datasource": {
  6333. "type": "prometheus",
  6334. "uid": "${DS_PROMETHEUS}"
  6335. },
  6336. "exemplar": true,
  6337. "expr": "sum(rate(synapse_util_caches_cache{job=\"$job\",index=~\"$index\", name=\"push_rules_delta_state_cache_metric\",instance=\"$instance\"}[$bucket_size]))",
  6338. "format": "time_series",
  6339. "interval": "",
  6340. "intervalFactor": 2,
  6341. "legendFormat": "Number of calls",
  6342. "refId": "B",
  6343. "step": 2
  6344. }
  6345. ],
  6346. "thresholds": [],
  6347. "timeRegions": [],
  6348. "title": "Delta Optimisation",
  6349. "tooltip": {
  6350. "shared": true,
  6351. "sort": 0,
  6352. "value_type": "individual"
  6353. },
  6354. "type": "graph",
  6355. "xaxis": {
  6356. "mode": "time",
  6357. "show": true,
  6358. "values": []
  6359. },
  6360. "yaxes": [
  6361. {
  6362. "format": "percentunit",
  6363. "label": "",
  6364. "logBase": 1,
  6365. "max": "1",
  6366. "min": "0",
  6367. "show": true
  6368. },
  6369. {
  6370. "format": "hertz",
  6371. "label": "",
  6372. "logBase": 1,
  6373. "min": "0",
  6374. "show": true
  6375. }
  6376. ],
  6377. "yaxis": {
  6378. "align": false
  6379. }
  6380. },
  6381. {
  6382. "aliasColors": {},
  6383. "bars": false,
  6384. "dashLength": 10,
  6385. "dashes": false,
  6386. "datasource": {
  6387. "type": "prometheus",
  6388. "uid": "${DS_PROMETHEUS}"
  6389. },
  6390. "description": "How often we have the correct cached push rules for a room.",
  6391. "fieldConfig": {
  6392. "defaults": {
  6393. "links": []
  6394. },
  6395. "overrides": []
  6396. },
  6397. "fill": 1,
  6398. "fillGradient": 0,
  6399. "gridPos": {
  6400. "h": 7,
  6401. "w": 12,
  6402. "x": 12,
  6403. "y": 40
  6404. },
  6405. "hiddenSeries": false,
  6406. "id": 215,
  6407. "legend": {
  6408. "avg": false,
  6409. "current": false,
  6410. "max": false,
  6411. "min": false,
  6412. "show": true,
  6413. "total": false,
  6414. "values": false
  6415. },
  6416. "lines": true,
  6417. "linewidth": 1,
  6418. "links": [],
  6419. "nullPointMode": "null",
  6420. "options": {
  6421. "alertThreshold": true
  6422. },
  6423. "paceLength": 10,
  6424. "percentage": false,
  6425. "pluginVersion": "8.4.3",
  6426. "pointradius": 5,
  6427. "points": false,
  6428. "renderer": "flot",
  6429. "seriesOverrides": [
  6430. {
  6431. "alias": "Number of calls",
  6432. "yaxis": 2
  6433. }
  6434. ],
  6435. "spaceLength": 10,
  6436. "stack": false,
  6437. "steppedLine": false,
  6438. "targets": [
  6439. {
  6440. "datasource": {
  6441. "type": "prometheus",
  6442. "uid": "${DS_PROMETHEUS}"
  6443. },
  6444. "exemplar": true,
  6445. "expr": "sum(rate(synapse_util_caches_cache_hits{job=\"$job\",index=~\"$index\",name=\"room_push_rule_cache\",instance=\"$instance\"}[$bucket_size]))/sum(rate(synapse_util_caches_cache{job=\"$job\",index=~\"$index\", name=\"room_push_rule_cache\",instance=\"$instance\"}[$bucket_size]))",
  6446. "format": "time_series",
  6447. "interval": "",
  6448. "intervalFactor": 2,
  6449. "legendFormat": "Hit Rate",
  6450. "metric": "synapse_push_bulk_push_rule_evaluator_push_rules_invalidation_counter_total",
  6451. "refId": "A",
  6452. "step": 2
  6453. },
  6454. {
  6455. "datasource": {
  6456. "type": "prometheus",
  6457. "uid": "${DS_PROMETHEUS}"
  6458. },
  6459. "exemplar": true,
  6460. "expr": "sum(rate(synapse_util_caches_cache{job=\"$job\",index=~\"$index\", name=\"room_push_rule_cache\",instance=\"$instance\"}[$bucket_size]))",
  6461. "format": "time_series",
  6462. "interval": "",
  6463. "intervalFactor": 2,
  6464. "legendFormat": "Number of calls",
  6465. "refId": "B",
  6466. "step": 2
  6467. }
  6468. ],
  6469. "thresholds": [],
  6470. "timeRegions": [],
  6471. "title": "How often we reuse existing calculated push rules",
  6472. "tooltip": {
  6473. "shared": true,
  6474. "sort": 0,
  6475. "value_type": "individual"
  6476. },
  6477. "type": "graph",
  6478. "xaxis": {
  6479. "mode": "time",
  6480. "show": true,
  6481. "values": []
  6482. },
  6483. "yaxes": [
  6484. {
  6485. "format": "percentunit",
  6486. "label": "",
  6487. "logBase": 1,
  6488. "max": "1",
  6489. "min": "0",
  6490. "show": true
  6491. },
  6492. {
  6493. "format": "hertz",
  6494. "logBase": 1,
  6495. "show": true
  6496. }
  6497. ],
  6498. "yaxis": {
  6499. "align": false
  6500. }
  6501. },
  6502. {
  6503. "aliasColors": {},
  6504. "bars": false,
  6505. "dashLength": 10,
  6506. "dashes": false,
  6507. "datasource": {
  6508. "type": "prometheus",
  6509. "uid": "${DS_PROMETHEUS}"
  6510. },
  6511. "description": "How often we have existing cached push rules for the room. \n\nNote that these might be outdated and need to be recalculated if the state has changed.",
  6512. "fieldConfig": {
  6513. "defaults": {
  6514. "links": []
  6515. },
  6516. "overrides": []
  6517. },
  6518. "fill": 1,
  6519. "fillGradient": 0,
  6520. "gridPos": {
  6521. "h": 7,
  6522. "w": 12,
  6523. "x": 0,
  6524. "y": 47
  6525. },
  6526. "hiddenSeries": false,
  6527. "id": 217,
  6528. "legend": {
  6529. "avg": false,
  6530. "current": false,
  6531. "max": false,
  6532. "min": false,
  6533. "show": true,
  6534. "total": false,
  6535. "values": false
  6536. },
  6537. "lines": true,
  6538. "linewidth": 1,
  6539. "links": [],
  6540. "nullPointMode": "null",
  6541. "options": {
  6542. "alertThreshold": true
  6543. },
  6544. "paceLength": 10,
  6545. "percentage": false,
  6546. "pluginVersion": "8.4.3",
  6547. "pointradius": 5,
  6548. "points": false,
  6549. "renderer": "flot",
  6550. "seriesOverrides": [
  6551. {
  6552. "alias": "Number of calls",
  6553. "yaxis": 2
  6554. }
  6555. ],
  6556. "spaceLength": 10,
  6557. "stack": false,
  6558. "steppedLine": false,
  6559. "targets": [
  6560. {
  6561. "datasource": {
  6562. "type": "prometheus",
  6563. "uid": "${DS_PROMETHEUS}"
  6564. },
  6565. "exemplar": true,
  6566. "expr": "sum(rate(synapse_util_caches_cache_hits{job=\"$job\",index=~\"$index\",name=\"_get_rules_for_room\",instance=\"$instance\"}[$bucket_size]))/sum(rate(synapse_util_caches_cache{job=\"$job\",index=~\"$index\", name=\"_get_rules_for_room\",instance=\"$instance\"}[$bucket_size]))",
  6567. "format": "time_series",
  6568. "interval": "",
  6569. "intervalFactor": 2,
  6570. "legendFormat": "Hit Rate",
  6571. "metric": "synapse_push_bulk_push_rule_evaluator_push_rules_invalidation_counter_total",
  6572. "refId": "A",
  6573. "step": 2
  6574. },
  6575. {
  6576. "datasource": {
  6577. "type": "prometheus",
  6578. "uid": "${DS_PROMETHEUS}"
  6579. },
  6580. "exemplar": true,
  6581. "expr": "sum(rate(synapse_util_caches_cache{job=\"$job\",index=~\"$index\", name=\"_get_rules_for_room\",instance=\"$instance\"}[$bucket_size]))",
  6582. "format": "time_series",
  6583. "interval": "",
  6584. "intervalFactor": 2,
  6585. "legendFormat": "Number of calls",
  6586. "refId": "B",
  6587. "step": 2
  6588. }
  6589. ],
  6590. "thresholds": [],
  6591. "timeRegions": [],
  6592. "title": "How often we have the RulesForRoom cached",
  6593. "tooltip": {
  6594. "shared": true,
  6595. "sort": 0,
  6596. "value_type": "individual"
  6597. },
  6598. "type": "graph",
  6599. "xaxis": {
  6600. "mode": "time",
  6601. "show": true,
  6602. "values": []
  6603. },
  6604. "yaxes": [
  6605. {
  6606. "format": "percentunit",
  6607. "label": "",
  6608. "logBase": 1,
  6609. "max": "1",
  6610. "min": "0",
  6611. "show": true
  6612. },
  6613. {
  6614. "format": "hertz",
  6615. "logBase": 1,
  6616. "show": true
  6617. }
  6618. ],
  6619. "yaxis": {
  6620. "align": false
  6621. }
  6622. }
  6623. ],
  6624. "targets": [
  6625. {
  6626. "datasource": {
  6627. "type": "prometheus",
  6628. "uid": "000000001"
  6629. },
  6630. "refId": "A"
  6631. }
  6632. ],
  6633. "title": "Push Rule Cache",
  6634. "type": "row"
  6635. },
  6636. {
  6637. "collapsed": true,
  6638. "datasource": {
  6639. "type": "prometheus",
  6640. "uid": "000000001"
  6641. },
  6642. "gridPos": {
  6643. "h": 1,
  6644. "w": 24,
  6645. "x": 0,
  6646. "y": 34
  6647. },
  6648. "id": 58,
  6649. "panels": [
  6650. {
  6651. "datasource": {
  6652. "uid": "$datasource"
  6653. },
  6654. "fieldConfig": {
  6655. "defaults": {
  6656. "color": {
  6657. "mode": "palette-classic"
  6658. },
  6659. "custom": {
  6660. "axisLabel": "",
  6661. "axisPlacement": "auto",
  6662. "barAlignment": 0,
  6663. "drawStyle": "line",
  6664. "fillOpacity": 10,
  6665. "gradientMode": "none",
  6666. "hideFrom": {
  6667. "legend": false,
  6668. "tooltip": false,
  6669. "viz": false
  6670. },
  6671. "lineInterpolation": "linear",
  6672. "lineWidth": 1,
  6673. "pointSize": 5,
  6674. "scaleDistribution": {
  6675. "type": "linear"
  6676. },
  6677. "showPoints": "never",
  6678. "spanNulls": false,
  6679. "stacking": {
  6680. "group": "A",
  6681. "mode": "none"
  6682. },
  6683. "thresholdsStyle": {
  6684. "mode": "off"
  6685. }
  6686. },
  6687. "links": [],
  6688. "mappings": [],
  6689. "min": 0,
  6690. "thresholds": {
  6691. "mode": "absolute",
  6692. "steps": [
  6693. {
  6694. "color": "green"
  6695. },
  6696. {
  6697. "color": "red",
  6698. "value": 80
  6699. }
  6700. ]
  6701. },
  6702. "unit": "s"
  6703. },
  6704. "overrides": []
  6705. },
  6706. "gridPos": {
  6707. "h": 7,
  6708. "w": 12,
  6709. "x": 0,
  6710. "y": 35
  6711. },
  6712. "id": 48,
  6713. "links": [],
  6714. "options": {
  6715. "legend": {
  6716. "calcs": [],
  6717. "displayMode": "list",
  6718. "placement": "bottom",
  6719. "showLegend": true
  6720. },
  6721. "tooltip": {
  6722. "mode": "single",
  6723. "sort": "none"
  6724. }
  6725. },
  6726. "pluginVersion": "9.0.4",
  6727. "targets": [
  6728. {
  6729. "datasource": {
  6730. "uid": "$datasource"
  6731. },
  6732. "expr": "rate(synapse_storage_schedule_time_sum{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])/rate(synapse_storage_schedule_time_count[$bucket_size])",
  6733. "format": "time_series",
  6734. "intervalFactor": 2,
  6735. "legendFormat": "{{job}}-{{index}}",
  6736. "refId": "A",
  6737. "step": 20
  6738. }
  6739. ],
  6740. "title": "Avg time waiting for db conn",
  6741. "type": "timeseries"
  6742. },
  6743. {
  6744. "aliasColors": {},
  6745. "bars": false,
  6746. "dashLength": 10,
  6747. "dashes": false,
  6748. "datasource": {
  6749. "uid": "$datasource"
  6750. },
  6751. "description": "Shows the time in which the given percentage of database queries were scheduled, over the sampled timespan",
  6752. "fieldConfig": {
  6753. "defaults": {
  6754. "links": []
  6755. },
  6756. "overrides": []
  6757. },
  6758. "fill": 1,
  6759. "fillGradient": 0,
  6760. "gridPos": {
  6761. "h": 7,
  6762. "w": 12,
  6763. "x": 12,
  6764. "y": 35
  6765. },
  6766. "hiddenSeries": false,
  6767. "id": 104,
  6768. "legend": {
  6769. "alignAsTable": true,
  6770. "avg": false,
  6771. "current": false,
  6772. "max": false,
  6773. "min": false,
  6774. "show": true,
  6775. "total": false,
  6776. "values": false
  6777. },
  6778. "lines": true,
  6779. "linewidth": 1,
  6780. "links": [],
  6781. "nullPointMode": "null",
  6782. "options": {
  6783. "alertThreshold": true
  6784. },
  6785. "paceLength": 10,
  6786. "percentage": false,
  6787. "pluginVersion": "9.0.4",
  6788. "pointradius": 5,
  6789. "points": false,
  6790. "renderer": "flot",
  6791. "seriesOverrides": [],
  6792. "spaceLength": 10,
  6793. "stack": false,
  6794. "steppedLine": false,
  6795. "targets": [
  6796. {
  6797. "datasource": {
  6798. "uid": "$datasource"
  6799. },
  6800. "expr": "histogram_quantile(0.99, rate(synapse_storage_schedule_time_bucket{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size]))",
  6801. "format": "time_series",
  6802. "hide": false,
  6803. "intervalFactor": 1,
  6804. "legendFormat": "{{job}} {{index}} 99%",
  6805. "refId": "A",
  6806. "step": 20
  6807. },
  6808. {
  6809. "datasource": {
  6810. "uid": "$datasource"
  6811. },
  6812. "expr": "histogram_quantile(0.95, rate(synapse_storage_schedule_time_bucket{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size]))",
  6813. "format": "time_series",
  6814. "intervalFactor": 1,
  6815. "legendFormat": "{{job}} {{index}} 95%",
  6816. "refId": "B"
  6817. },
  6818. {
  6819. "datasource": {
  6820. "uid": "$datasource"
  6821. },
  6822. "expr": "histogram_quantile(0.90, rate(synapse_storage_schedule_time_bucket{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size]))",
  6823. "format": "time_series",
  6824. "intervalFactor": 1,
  6825. "legendFormat": "{{job}} {{index}} 90%",
  6826. "refId": "C"
  6827. },
  6828. {
  6829. "datasource": {
  6830. "uid": "$datasource"
  6831. },
  6832. "expr": "rate(synapse_storage_schedule_time_sum{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])/rate(synapse_storage_schedule_time_count{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])",
  6833. "format": "time_series",
  6834. "interval": "",
  6835. "intervalFactor": 1,
  6836. "legendFormat": "{{job}} {{index}} mean",
  6837. "refId": "D"
  6838. }
  6839. ],
  6840. "thresholds": [],
  6841. "timeRegions": [],
  6842. "title": "Db scheduling time quantiles",
  6843. "tooltip": {
  6844. "shared": false,
  6845. "sort": 0,
  6846. "value_type": "individual"
  6847. },
  6848. "type": "graph",
  6849. "xaxis": {
  6850. "mode": "time",
  6851. "show": true,
  6852. "values": []
  6853. },
  6854. "yaxes": [
  6855. {
  6856. "format": "s",
  6857. "label": "",
  6858. "logBase": 1,
  6859. "min": "0",
  6860. "show": true
  6861. },
  6862. {
  6863. "format": "short",
  6864. "logBase": 1,
  6865. "show": false
  6866. }
  6867. ],
  6868. "yaxis": {
  6869. "align": false
  6870. }
  6871. },
  6872. {
  6873. "aliasColors": {},
  6874. "bars": false,
  6875. "dashLength": 10,
  6876. "dashes": false,
  6877. "datasource": {
  6878. "uid": "$datasource"
  6879. },
  6880. "editable": true,
  6881. "error": false,
  6882. "fieldConfig": {
  6883. "defaults": {
  6884. "links": []
  6885. },
  6886. "overrides": []
  6887. },
  6888. "fill": 0,
  6889. "fillGradient": 0,
  6890. "grid": {},
  6891. "gridPos": {
  6892. "h": 7,
  6893. "w": 12,
  6894. "x": 0,
  6895. "y": 42
  6896. },
  6897. "hiddenSeries": false,
  6898. "id": 10,
  6899. "legend": {
  6900. "avg": false,
  6901. "current": false,
  6902. "hideEmpty": true,
  6903. "hideZero": true,
  6904. "max": false,
  6905. "min": false,
  6906. "show": true,
  6907. "total": false,
  6908. "values": false
  6909. },
  6910. "lines": true,
  6911. "linewidth": 2,
  6912. "links": [],
  6913. "nullPointMode": "null",
  6914. "options": {
  6915. "alertThreshold": true
  6916. },
  6917. "paceLength": 10,
  6918. "percentage": false,
  6919. "pluginVersion": "9.0.4",
  6920. "pointradius": 5,
  6921. "points": false,
  6922. "renderer": "flot",
  6923. "seriesOverrides": [],
  6924. "spaceLength": 10,
  6925. "stack": false,
  6926. "steppedLine": false,
  6927. "targets": [
  6928. {
  6929. "datasource": {
  6930. "uid": "$datasource"
  6931. },
  6932. "expr": "topk(10, rate(synapse_storage_transaction_time_count_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size]))",
  6933. "format": "time_series",
  6934. "interval": "",
  6935. "intervalFactor": 2,
  6936. "legendFormat": "{{job}}-{{index}} {{desc}}",
  6937. "refId": "A",
  6938. "step": 20
  6939. }
  6940. ],
  6941. "thresholds": [],
  6942. "timeRegions": [],
  6943. "title": "Top DB transactions by txn rate",
  6944. "tooltip": {
  6945. "shared": false,
  6946. "sort": 0,
  6947. "value_type": "cumulative"
  6948. },
  6949. "type": "graph",
  6950. "xaxis": {
  6951. "mode": "time",
  6952. "show": true,
  6953. "values": []
  6954. },
  6955. "yaxes": [
  6956. {
  6957. "format": "hertz",
  6958. "logBase": 1,
  6959. "min": 0,
  6960. "show": true
  6961. },
  6962. {
  6963. "format": "short",
  6964. "logBase": 1,
  6965. "show": true
  6966. }
  6967. ],
  6968. "yaxis": {
  6969. "align": false
  6970. }
  6971. },
  6972. {
  6973. "aliasColors": {},
  6974. "bars": false,
  6975. "dashLength": 10,
  6976. "dashes": false,
  6977. "datasource": {
  6978. "uid": "$datasource"
  6979. },
  6980. "editable": true,
  6981. "error": false,
  6982. "fieldConfig": {
  6983. "defaults": {
  6984. "links": []
  6985. },
  6986. "overrides": []
  6987. },
  6988. "fill": 1,
  6989. "fillGradient": 0,
  6990. "grid": {},
  6991. "gridPos": {
  6992. "h": 7,
  6993. "w": 12,
  6994. "x": 12,
  6995. "y": 42
  6996. },
  6997. "hiddenSeries": false,
  6998. "id": 11,
  6999. "legend": {
  7000. "avg": false,
  7001. "current": false,
  7002. "hideEmpty": true,
  7003. "hideZero": true,
  7004. "max": false,
  7005. "min": false,
  7006. "show": true,
  7007. "total": false,
  7008. "values": false
  7009. },
  7010. "lines": true,
  7011. "linewidth": 1,
  7012. "links": [],
  7013. "nullPointMode": "null",
  7014. "options": {
  7015. "alertThreshold": true
  7016. },
  7017. "paceLength": 10,
  7018. "percentage": false,
  7019. "pluginVersion": "9.0.4",
  7020. "pointradius": 5,
  7021. "points": false,
  7022. "renderer": "flot",
  7023. "seriesOverrides": [],
  7024. "spaceLength": 10,
  7025. "stack": false,
  7026. "steppedLine": false,
  7027. "targets": [
  7028. {
  7029. "datasource": {
  7030. "uid": "$datasource"
  7031. },
  7032. "expr": "rate(synapse_storage_transaction_time_sum_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])",
  7033. "format": "time_series",
  7034. "instant": false,
  7035. "interval": "",
  7036. "intervalFactor": 1,
  7037. "legendFormat": "{{job}}-{{index}} {{desc}}",
  7038. "refId": "A",
  7039. "step": 20
  7040. }
  7041. ],
  7042. "thresholds": [],
  7043. "timeRegions": [],
  7044. "title": "DB transactions by total txn time",
  7045. "tooltip": {
  7046. "shared": false,
  7047. "sort": 0,
  7048. "value_type": "cumulative"
  7049. },
  7050. "type": "graph",
  7051. "xaxis": {
  7052. "mode": "time",
  7053. "show": true,
  7054. "values": []
  7055. },
  7056. "yaxes": [
  7057. {
  7058. "format": "percentunit",
  7059. "logBase": 1,
  7060. "show": true
  7061. },
  7062. {
  7063. "format": "short",
  7064. "logBase": 1,
  7065. "show": true
  7066. }
  7067. ],
  7068. "yaxis": {
  7069. "align": false
  7070. }
  7071. },
  7072. {
  7073. "aliasColors": {},
  7074. "bars": false,
  7075. "dashLength": 10,
  7076. "dashes": false,
  7077. "datasource": {
  7078. "uid": "$datasource"
  7079. },
  7080. "editable": true,
  7081. "error": false,
  7082. "fieldConfig": {
  7083. "defaults": {
  7084. "links": []
  7085. },
  7086. "overrides": []
  7087. },
  7088. "fill": 0,
  7089. "fillGradient": 0,
  7090. "grid": {},
  7091. "gridPos": {
  7092. "h": 7,
  7093. "w": 12,
  7094. "x": 0,
  7095. "y": 49
  7096. },
  7097. "hiddenSeries": false,
  7098. "id": 180,
  7099. "legend": {
  7100. "avg": false,
  7101. "current": false,
  7102. "hideEmpty": true,
  7103. "hideZero": true,
  7104. "max": false,
  7105. "min": false,
  7106. "show": true,
  7107. "total": false,
  7108. "values": false
  7109. },
  7110. "lines": true,
  7111. "linewidth": 1,
  7112. "links": [],
  7113. "nullPointMode": "null",
  7114. "options": {
  7115. "alertThreshold": false
  7116. },
  7117. "paceLength": 10,
  7118. "percentage": false,
  7119. "pluginVersion": "9.0.4",
  7120. "pointradius": 5,
  7121. "points": false,
  7122. "renderer": "flot",
  7123. "seriesOverrides": [],
  7124. "spaceLength": 10,
  7125. "stack": false,
  7126. "steppedLine": false,
  7127. "targets": [
  7128. {
  7129. "datasource": {
  7130. "uid": "$datasource"
  7131. },
  7132. "expr": "rate(synapse_storage_transaction_time_sum_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])/rate(synapse_storage_transaction_time_count_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])",
  7133. "format": "time_series",
  7134. "instant": false,
  7135. "interval": "",
  7136. "intervalFactor": 1,
  7137. "legendFormat": "{{job}}-{{index}} {{desc}}",
  7138. "refId": "A",
  7139. "step": 20
  7140. }
  7141. ],
  7142. "thresholds": [],
  7143. "timeRegions": [],
  7144. "title": "Average DB txn time",
  7145. "tooltip": {
  7146. "shared": false,
  7147. "sort": 0,
  7148. "value_type": "cumulative"
  7149. },
  7150. "type": "graph",
  7151. "xaxis": {
  7152. "mode": "time",
  7153. "show": true,
  7154. "values": []
  7155. },
  7156. "yaxes": [
  7157. {
  7158. "format": "s",
  7159. "logBase": 1,
  7160. "show": true
  7161. },
  7162. {
  7163. "format": "short",
  7164. "logBase": 1,
  7165. "show": true
  7166. }
  7167. ],
  7168. "yaxis": {
  7169. "align": false
  7170. }
  7171. },
  7172. {
  7173. "aliasColors": {},
  7174. "bars": false,
  7175. "dashLength": 10,
  7176. "dashes": false,
  7177. "datasource": {
  7178. "uid": "$datasource"
  7179. },
  7180. "fieldConfig": {
  7181. "defaults": {
  7182. "links": []
  7183. },
  7184. "overrides": []
  7185. },
  7186. "fill": 6,
  7187. "fillGradient": 0,
  7188. "gridPos": {
  7189. "h": 9,
  7190. "w": 12,
  7191. "x": 12,
  7192. "y": 49
  7193. },
  7194. "hiddenSeries": false,
  7195. "id": 200,
  7196. "legend": {
  7197. "avg": false,
  7198. "current": false,
  7199. "max": false,
  7200. "min": false,
  7201. "show": true,
  7202. "total": false,
  7203. "values": false
  7204. },
  7205. "lines": true,
  7206. "linewidth": 1,
  7207. "links": [],
  7208. "nullPointMode": "null",
  7209. "options": {
  7210. "alertThreshold": true
  7211. },
  7212. "percentage": false,
  7213. "pluginVersion": "9.0.4",
  7214. "pointradius": 5,
  7215. "points": false,
  7216. "renderer": "flot",
  7217. "seriesOverrides": [],
  7218. "spaceLength": 10,
  7219. "stack": false,
  7220. "steppedLine": false,
  7221. "targets": [
  7222. {
  7223. "datasource": {
  7224. "uid": "$datasource"
  7225. },
  7226. "expr": "histogram_quantile(0.99, sum(rate(synapse_storage_schedule_time_bucket{index=~\"$index\",instance=\"$instance\",job=\"$job\"}[$bucket_size])) by (le))",
  7227. "format": "time_series",
  7228. "intervalFactor": 1,
  7229. "legendFormat": "99%",
  7230. "refId": "D"
  7231. },
  7232. {
  7233. "datasource": {
  7234. "uid": "$datasource"
  7235. },
  7236. "expr": "histogram_quantile(0.9, sum(rate(synapse_storage_schedule_time_bucket{index=~\"$index\",instance=\"$instance\",job=\"$job\"}[$bucket_size])) by (le))",
  7237. "format": "time_series",
  7238. "intervalFactor": 1,
  7239. "legendFormat": "90%",
  7240. "refId": "A"
  7241. },
  7242. {
  7243. "datasource": {
  7244. "uid": "$datasource"
  7245. },
  7246. "expr": "histogram_quantile(0.75, sum(rate(synapse_storage_schedule_time_bucket{index=~\"$index\",instance=\"$instance\",job=\"$job\"}[$bucket_size])) by (le))",
  7247. "format": "time_series",
  7248. "intervalFactor": 1,
  7249. "legendFormat": "75%",
  7250. "refId": "C"
  7251. },
  7252. {
  7253. "datasource": {
  7254. "uid": "$datasource"
  7255. },
  7256. "expr": "histogram_quantile(0.5, sum(rate(synapse_storage_schedule_time_bucket{index=~\"$index\",instance=\"$instance\",job=\"$job\"}[$bucket_size])) by (le))",
  7257. "format": "time_series",
  7258. "intervalFactor": 1,
  7259. "legendFormat": "50%",
  7260. "refId": "B"
  7261. }
  7262. ],
  7263. "thresholds": [],
  7264. "timeRegions": [],
  7265. "title": "Time waiting for DB connection quantiles",
  7266. "tooltip": {
  7267. "shared": true,
  7268. "sort": 2,
  7269. "value_type": "individual"
  7270. },
  7271. "type": "graph",
  7272. "xaxis": {
  7273. "mode": "time",
  7274. "show": true,
  7275. "values": []
  7276. },
  7277. "yaxes": [
  7278. {
  7279. "$$hashKey": "object:203",
  7280. "format": "s",
  7281. "label": "",
  7282. "logBase": 1,
  7283. "min": "0",
  7284. "show": true
  7285. },
  7286. {
  7287. "$$hashKey": "object:204",
  7288. "format": "short",
  7289. "logBase": 1,
  7290. "show": false
  7291. }
  7292. ],
  7293. "yaxis": {
  7294. "align": false
  7295. }
  7296. }
  7297. ],
  7298. "targets": [
  7299. {
  7300. "datasource": {
  7301. "type": "prometheus",
  7302. "uid": "000000001"
  7303. },
  7304. "refId": "A"
  7305. }
  7306. ],
  7307. "title": "Database",
  7308. "type": "row"
  7309. },
  7310. {
  7311. "collapsed": true,
  7312. "datasource": {
  7313. "type": "prometheus",
  7314. "uid": "000000001"
  7315. },
  7316. "gridPos": {
  7317. "h": 1,
  7318. "w": 24,
  7319. "x": 0,
  7320. "y": 35
  7321. },
  7322. "id": 59,
  7323. "panels": [
  7324. {
  7325. "aliasColors": {},
  7326. "bars": false,
  7327. "dashLength": 10,
  7328. "dashes": false,
  7329. "datasource": {
  7330. "uid": "$datasource"
  7331. },
  7332. "editable": true,
  7333. "error": false,
  7334. "fieldConfig": {
  7335. "defaults": {
  7336. "links": []
  7337. },
  7338. "overrides": []
  7339. },
  7340. "fill": 1,
  7341. "fillGradient": 0,
  7342. "grid": {},
  7343. "gridPos": {
  7344. "h": 13,
  7345. "w": 12,
  7346. "x": 0,
  7347. "y": 35
  7348. },
  7349. "hiddenSeries": false,
  7350. "id": 12,
  7351. "legend": {
  7352. "alignAsTable": true,
  7353. "avg": false,
  7354. "current": false,
  7355. "max": false,
  7356. "min": false,
  7357. "show": true,
  7358. "total": false,
  7359. "values": false
  7360. },
  7361. "lines": true,
  7362. "linewidth": 2,
  7363. "links": [],
  7364. "nullPointMode": "null",
  7365. "options": {
  7366. "alertThreshold": true
  7367. },
  7368. "paceLength": 10,
  7369. "percentage": false,
  7370. "pluginVersion": "9.0.4",
  7371. "pointradius": 5,
  7372. "points": false,
  7373. "renderer": "flot",
  7374. "seriesOverrides": [],
  7375. "spaceLength": 10,
  7376. "stack": false,
  7377. "steppedLine": false,
  7378. "targets": [
  7379. {
  7380. "datasource": {
  7381. "uid": "$datasource"
  7382. },
  7383. "expr": "rate(synapse_util_metrics_block_ru_utime_seconds_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\",block_name!=\"wrapped_request_handler\"}[$bucket_size]) + rate(synapse_util_metrics_block_ru_stime_seconds_total[$bucket_size])",
  7384. "format": "time_series",
  7385. "interval": "",
  7386. "intervalFactor": 2,
  7387. "legendFormat": "{{job}}-{{index}} {{block_name}}",
  7388. "refId": "A",
  7389. "step": 20
  7390. }
  7391. ],
  7392. "thresholds": [],
  7393. "timeRegions": [],
  7394. "title": "Total CPU Usage by Block",
  7395. "tooltip": {
  7396. "shared": true,
  7397. "sort": 2,
  7398. "value_type": "cumulative"
  7399. },
  7400. "type": "graph",
  7401. "xaxis": {
  7402. "mode": "time",
  7403. "show": true,
  7404. "values": []
  7405. },
  7406. "yaxes": [
  7407. {
  7408. "format": "percentunit",
  7409. "logBase": 1,
  7410. "show": true
  7411. },
  7412. {
  7413. "format": "short",
  7414. "logBase": 1,
  7415. "show": true
  7416. }
  7417. ],
  7418. "yaxis": {
  7419. "align": false
  7420. }
  7421. },
  7422. {
  7423. "aliasColors": {},
  7424. "bars": false,
  7425. "dashLength": 10,
  7426. "dashes": false,
  7427. "datasource": {
  7428. "uid": "$datasource"
  7429. },
  7430. "editable": true,
  7431. "error": false,
  7432. "fieldConfig": {
  7433. "defaults": {
  7434. "links": []
  7435. },
  7436. "overrides": []
  7437. },
  7438. "fill": 1,
  7439. "fillGradient": 0,
  7440. "grid": {},
  7441. "gridPos": {
  7442. "h": 13,
  7443. "w": 12,
  7444. "x": 12,
  7445. "y": 35
  7446. },
  7447. "hiddenSeries": false,
  7448. "id": 26,
  7449. "legend": {
  7450. "alignAsTable": true,
  7451. "avg": false,
  7452. "current": false,
  7453. "max": false,
  7454. "min": false,
  7455. "show": true,
  7456. "total": false,
  7457. "values": false
  7458. },
  7459. "lines": true,
  7460. "linewidth": 2,
  7461. "links": [],
  7462. "nullPointMode": "null",
  7463. "options": {
  7464. "alertThreshold": true
  7465. },
  7466. "paceLength": 10,
  7467. "percentage": false,
  7468. "pluginVersion": "9.0.4",
  7469. "pointradius": 5,
  7470. "points": false,
  7471. "renderer": "flot",
  7472. "seriesOverrides": [],
  7473. "spaceLength": 10,
  7474. "stack": false,
  7475. "steppedLine": false,
  7476. "targets": [
  7477. {
  7478. "datasource": {
  7479. "uid": "$datasource"
  7480. },
  7481. "expr": "(rate(synapse_util_metrics_block_ru_utime_seconds_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size]) + rate(synapse_util_metrics_block_ru_stime_seconds_total[$bucket_size])) / rate(synapse_util_metrics_block_count_total[$bucket_size])",
  7482. "format": "time_series",
  7483. "interval": "",
  7484. "intervalFactor": 2,
  7485. "legendFormat": "{{job}}-{{index}} {{block_name}}",
  7486. "refId": "A",
  7487. "step": 20
  7488. }
  7489. ],
  7490. "thresholds": [],
  7491. "timeRegions": [],
  7492. "title": "Average CPU Time per Block",
  7493. "tooltip": {
  7494. "shared": true,
  7495. "sort": 2,
  7496. "value_type": "cumulative"
  7497. },
  7498. "type": "graph",
  7499. "xaxis": {
  7500. "mode": "time",
  7501. "show": true,
  7502. "values": []
  7503. },
  7504. "yaxes": [
  7505. {
  7506. "format": "ms",
  7507. "logBase": 1,
  7508. "show": true
  7509. },
  7510. {
  7511. "format": "short",
  7512. "logBase": 1,
  7513. "show": true
  7514. }
  7515. ],
  7516. "yaxis": {
  7517. "align": false
  7518. }
  7519. },
  7520. {
  7521. "aliasColors": {},
  7522. "bars": false,
  7523. "dashLength": 10,
  7524. "dashes": false,
  7525. "datasource": {
  7526. "type": "prometheus",
  7527. "uid": "${DS_PROMETHEUS}"
  7528. },
  7529. "editable": true,
  7530. "error": false,
  7531. "fieldConfig": {
  7532. "defaults": {
  7533. "links": []
  7534. },
  7535. "overrides": []
  7536. },
  7537. "fill": 1,
  7538. "fillGradient": 0,
  7539. "grid": {},
  7540. "gridPos": {
  7541. "h": 13,
  7542. "w": 12,
  7543. "x": 0,
  7544. "y": 48
  7545. },
  7546. "hiddenSeries": false,
  7547. "id": 13,
  7548. "legend": {
  7549. "alignAsTable": true,
  7550. "avg": false,
  7551. "current": false,
  7552. "max": false,
  7553. "min": false,
  7554. "show": true,
  7555. "total": false,
  7556. "values": false
  7557. },
  7558. "lines": true,
  7559. "linewidth": 2,
  7560. "links": [],
  7561. "nullPointMode": "null",
  7562. "options": {
  7563. "alertThreshold": true
  7564. },
  7565. "paceLength": 10,
  7566. "percentage": false,
  7567. "pluginVersion": "9.0.4",
  7568. "pointradius": 5,
  7569. "points": false,
  7570. "renderer": "flot",
  7571. "seriesOverrides": [],
  7572. "spaceLength": 10,
  7573. "stack": false,
  7574. "steppedLine": false,
  7575. "targets": [
  7576. {
  7577. "datasource": {
  7578. "type": "prometheus",
  7579. "uid": "${DS_PROMETHEUS}"
  7580. },
  7581. "exemplar": true,
  7582. "expr": "rate(synapse_util_metrics_block_db_txn_duration_seconds_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])",
  7583. "format": "time_series",
  7584. "interval": "",
  7585. "intervalFactor": 2,
  7586. "legendFormat": "{{job}}-{{index}} {{block_name}}",
  7587. "refId": "A",
  7588. "step": 20
  7589. }
  7590. ],
  7591. "thresholds": [],
  7592. "timeRegions": [],
  7593. "title": "Total DB Usage by Block",
  7594. "tooltip": {
  7595. "shared": true,
  7596. "sort": 2,
  7597. "value_type": "cumulative"
  7598. },
  7599. "type": "graph",
  7600. "xaxis": {
  7601. "mode": "time",
  7602. "show": true,
  7603. "values": []
  7604. },
  7605. "yaxes": [
  7606. {
  7607. "$$hashKey": "object:196",
  7608. "format": "percentunit",
  7609. "logBase": 1,
  7610. "min": 0,
  7611. "show": true
  7612. },
  7613. {
  7614. "$$hashKey": "object:197",
  7615. "format": "short",
  7616. "logBase": 1,
  7617. "show": true
  7618. }
  7619. ],
  7620. "yaxis": {
  7621. "align": false
  7622. }
  7623. },
  7624. {
  7625. "aliasColors": {},
  7626. "bars": false,
  7627. "dashLength": 10,
  7628. "dashes": false,
  7629. "datasource": {
  7630. "uid": "$datasource"
  7631. },
  7632. "description": "The time each database transaction takes to execute, on average, broken down by metrics block.",
  7633. "editable": true,
  7634. "error": false,
  7635. "fieldConfig": {
  7636. "defaults": {
  7637. "links": []
  7638. },
  7639. "overrides": []
  7640. },
  7641. "fill": 1,
  7642. "fillGradient": 0,
  7643. "grid": {},
  7644. "gridPos": {
  7645. "h": 13,
  7646. "w": 12,
  7647. "x": 12,
  7648. "y": 48
  7649. },
  7650. "hiddenSeries": false,
  7651. "id": 27,
  7652. "legend": {
  7653. "alignAsTable": true,
  7654. "avg": false,
  7655. "current": false,
  7656. "max": false,
  7657. "min": false,
  7658. "show": true,
  7659. "total": false,
  7660. "values": false
  7661. },
  7662. "lines": true,
  7663. "linewidth": 2,
  7664. "links": [],
  7665. "nullPointMode": "null",
  7666. "options": {
  7667. "alertThreshold": true
  7668. },
  7669. "paceLength": 10,
  7670. "percentage": false,
  7671. "pluginVersion": "9.0.4",
  7672. "pointradius": 5,
  7673. "points": false,
  7674. "renderer": "flot",
  7675. "seriesOverrides": [],
  7676. "spaceLength": 10,
  7677. "stack": false,
  7678. "steppedLine": false,
  7679. "targets": [
  7680. {
  7681. "datasource": {
  7682. "uid": "$datasource"
  7683. },
  7684. "expr": "rate(synapse_util_metrics_block_db_txn_duration_seconds_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size]) / rate(synapse_util_metrics_block_db_txn_count_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])",
  7685. "format": "time_series",
  7686. "interval": "",
  7687. "intervalFactor": 2,
  7688. "legendFormat": "{{job}}-{{index}} {{block_name}}",
  7689. "refId": "A",
  7690. "step": 20
  7691. }
  7692. ],
  7693. "thresholds": [],
  7694. "timeRegions": [],
  7695. "title": "Average Database Transaction time, by Block",
  7696. "tooltip": {
  7697. "shared": true,
  7698. "sort": 2,
  7699. "value_type": "cumulative"
  7700. },
  7701. "type": "graph",
  7702. "xaxis": {
  7703. "mode": "time",
  7704. "show": true,
  7705. "values": []
  7706. },
  7707. "yaxes": [
  7708. {
  7709. "format": "ms",
  7710. "logBase": 1,
  7711. "show": true
  7712. },
  7713. {
  7714. "format": "short",
  7715. "logBase": 1,
  7716. "show": true
  7717. }
  7718. ],
  7719. "yaxis": {
  7720. "align": false
  7721. }
  7722. },
  7723. {
  7724. "aliasColors": {},
  7725. "bars": false,
  7726. "dashLength": 10,
  7727. "dashes": false,
  7728. "datasource": {
  7729. "uid": "$datasource"
  7730. },
  7731. "editable": true,
  7732. "error": false,
  7733. "fieldConfig": {
  7734. "defaults": {
  7735. "links": []
  7736. },
  7737. "overrides": []
  7738. },
  7739. "fill": 1,
  7740. "fillGradient": 0,
  7741. "grid": {},
  7742. "gridPos": {
  7743. "h": 13,
  7744. "w": 12,
  7745. "x": 0,
  7746. "y": 61
  7747. },
  7748. "hiddenSeries": false,
  7749. "id": 28,
  7750. "legend": {
  7751. "avg": false,
  7752. "current": false,
  7753. "max": false,
  7754. "min": false,
  7755. "show": false,
  7756. "total": false,
  7757. "values": false
  7758. },
  7759. "lines": true,
  7760. "linewidth": 2,
  7761. "links": [],
  7762. "nullPointMode": "null",
  7763. "options": {
  7764. "alertThreshold": true
  7765. },
  7766. "paceLength": 10,
  7767. "percentage": false,
  7768. "pluginVersion": "9.0.4",
  7769. "pointradius": 5,
  7770. "points": false,
  7771. "renderer": "flot",
  7772. "seriesOverrides": [],
  7773. "spaceLength": 10,
  7774. "stack": false,
  7775. "steppedLine": false,
  7776. "targets": [
  7777. {
  7778. "datasource": {
  7779. "uid": "$datasource"
  7780. },
  7781. "expr": "rate(synapse_util_metrics_block_db_txn_duration_seconds_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size]) / rate(synapse_util_metrics_block_db_txn_count_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])",
  7782. "format": "time_series",
  7783. "interval": "",
  7784. "intervalFactor": 2,
  7785. "legendFormat": "{{job}}-{{index}} {{block_name}}",
  7786. "refId": "A",
  7787. "step": 20
  7788. }
  7789. ],
  7790. "thresholds": [],
  7791. "timeRegions": [],
  7792. "title": "Average Transactions per Block",
  7793. "tooltip": {
  7794. "shared": false,
  7795. "sort": 0,
  7796. "value_type": "cumulative"
  7797. },
  7798. "type": "graph",
  7799. "xaxis": {
  7800. "mode": "time",
  7801. "show": true,
  7802. "values": []
  7803. },
  7804. "yaxes": [
  7805. {
  7806. "format": "none",
  7807. "logBase": 1,
  7808. "show": true
  7809. },
  7810. {
  7811. "format": "short",
  7812. "logBase": 1,
  7813. "show": true
  7814. }
  7815. ],
  7816. "yaxis": {
  7817. "align": false
  7818. }
  7819. },
  7820. {
  7821. "aliasColors": {},
  7822. "bars": false,
  7823. "dashLength": 10,
  7824. "dashes": false,
  7825. "datasource": {
  7826. "uid": "$datasource"
  7827. },
  7828. "editable": true,
  7829. "error": false,
  7830. "fieldConfig": {
  7831. "defaults": {
  7832. "links": []
  7833. },
  7834. "overrides": []
  7835. },
  7836. "fill": 1,
  7837. "fillGradient": 0,
  7838. "grid": {},
  7839. "gridPos": {
  7840. "h": 13,
  7841. "w": 12,
  7842. "x": 12,
  7843. "y": 61
  7844. },
  7845. "hiddenSeries": false,
  7846. "id": 25,
  7847. "legend": {
  7848. "avg": false,
  7849. "current": false,
  7850. "max": false,
  7851. "min": false,
  7852. "show": false,
  7853. "total": false,
  7854. "values": false
  7855. },
  7856. "lines": true,
  7857. "linewidth": 2,
  7858. "links": [],
  7859. "nullPointMode": "null",
  7860. "options": {
  7861. "alertThreshold": true
  7862. },
  7863. "paceLength": 10,
  7864. "percentage": false,
  7865. "pluginVersion": "9.0.4",
  7866. "pointradius": 5,
  7867. "points": false,
  7868. "renderer": "flot",
  7869. "seriesOverrides": [],
  7870. "spaceLength": 10,
  7871. "stack": false,
  7872. "steppedLine": false,
  7873. "targets": [
  7874. {
  7875. "datasource": {
  7876. "uid": "$datasource"
  7877. },
  7878. "expr": "rate(synapse_util_metrics_block_time_seconds_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size]) / rate(synapse_util_metrics_block_count_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])",
  7879. "format": "time_series",
  7880. "interval": "",
  7881. "intervalFactor": 2,
  7882. "legendFormat": "{{job}}-{{index}} {{block_name}}",
  7883. "refId": "A",
  7884. "step": 20
  7885. }
  7886. ],
  7887. "thresholds": [],
  7888. "timeRegions": [],
  7889. "title": "Average Wallclock Time per Block",
  7890. "tooltip": {
  7891. "shared": false,
  7892. "sort": 0,
  7893. "value_type": "cumulative"
  7894. },
  7895. "type": "graph",
  7896. "xaxis": {
  7897. "mode": "time",
  7898. "show": true,
  7899. "values": []
  7900. },
  7901. "yaxes": [
  7902. {
  7903. "$$hashKey": "object:180",
  7904. "format": "s",
  7905. "logBase": 1,
  7906. "show": true
  7907. },
  7908. {
  7909. "$$hashKey": "object:181",
  7910. "format": "short",
  7911. "logBase": 1,
  7912. "show": true
  7913. }
  7914. ],
  7915. "yaxis": {
  7916. "align": false
  7917. }
  7918. },
  7919. {
  7920. "aliasColors": {},
  7921. "bars": false,
  7922. "dashLength": 10,
  7923. "dashes": false,
  7924. "datasource": {
  7925. "uid": "$datasource"
  7926. },
  7927. "fill": 1,
  7928. "fillGradient": 0,
  7929. "gridPos": {
  7930. "h": 15,
  7931. "w": 12,
  7932. "x": 0,
  7933. "y": 74
  7934. },
  7935. "hiddenSeries": false,
  7936. "id": 154,
  7937. "legend": {
  7938. "alignAsTable": true,
  7939. "avg": false,
  7940. "current": false,
  7941. "max": false,
  7942. "min": false,
  7943. "show": true,
  7944. "total": false,
  7945. "values": false
  7946. },
  7947. "lines": true,
  7948. "linewidth": 1,
  7949. "nullPointMode": "null",
  7950. "options": {
  7951. "alertThreshold": true
  7952. },
  7953. "percentage": false,
  7954. "pluginVersion": "9.0.4",
  7955. "pointradius": 2,
  7956. "points": false,
  7957. "renderer": "flot",
  7958. "seriesOverrides": [],
  7959. "spaceLength": 10,
  7960. "stack": false,
  7961. "steppedLine": false,
  7962. "targets": [
  7963. {
  7964. "datasource": {
  7965. "uid": "$datasource"
  7966. },
  7967. "expr": "rate(synapse_util_metrics_block_count_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])",
  7968. "interval": "",
  7969. "legendFormat": "{{job}}-{{index}} {{block_name}}",
  7970. "refId": "A"
  7971. }
  7972. ],
  7973. "thresholds": [],
  7974. "timeRegions": [],
  7975. "title": "Block count",
  7976. "tooltip": {
  7977. "shared": true,
  7978. "sort": 2,
  7979. "value_type": "individual"
  7980. },
  7981. "type": "graph",
  7982. "xaxis": {
  7983. "mode": "time",
  7984. "show": true,
  7985. "values": []
  7986. },
  7987. "yaxes": [
  7988. {
  7989. "format": "hertz",
  7990. "logBase": 1,
  7991. "show": true
  7992. },
  7993. {
  7994. "format": "short",
  7995. "logBase": 1,
  7996. "show": true
  7997. }
  7998. ],
  7999. "yaxis": {
  8000. "align": false
  8001. }
  8002. }
  8003. ],
  8004. "targets": [
  8005. {
  8006. "datasource": {
  8007. "type": "prometheus",
  8008. "uid": "000000001"
  8009. },
  8010. "refId": "A"
  8011. }
  8012. ],
  8013. "title": "Per-block metrics",
  8014. "type": "row"
  8015. },
  8016. {
  8017. "collapsed": true,
  8018. "datasource": {
  8019. "type": "prometheus",
  8020. "uid": "000000001"
  8021. },
  8022. "gridPos": {
  8023. "h": 1,
  8024. "w": 24,
  8025. "x": 0,
  8026. "y": 36
  8027. },
  8028. "id": 61,
  8029. "panels": [
  8030. {
  8031. "aliasColors": {},
  8032. "bars": false,
  8033. "dashLength": 10,
  8034. "dashes": false,
  8035. "datasource": {
  8036. "uid": "$datasource"
  8037. },
  8038. "decimals": 2,
  8039. "editable": true,
  8040. "error": false,
  8041. "fieldConfig": {
  8042. "defaults": {
  8043. "links": []
  8044. },
  8045. "overrides": []
  8046. },
  8047. "fill": 0,
  8048. "fillGradient": 0,
  8049. "grid": {},
  8050. "gridPos": {
  8051. "h": 10,
  8052. "w": 12,
  8053. "x": 0,
  8054. "y": 36
  8055. },
  8056. "hiddenSeries": false,
  8057. "id": 1,
  8058. "legend": {
  8059. "alignAsTable": true,
  8060. "avg": false,
  8061. "current": false,
  8062. "hideEmpty": true,
  8063. "hideZero": false,
  8064. "max": false,
  8065. "min": false,
  8066. "show": true,
  8067. "total": false,
  8068. "values": false
  8069. },
  8070. "lines": true,
  8071. "linewidth": 2,
  8072. "links": [],
  8073. "nullPointMode": "null",
  8074. "options": {
  8075. "alertThreshold": true
  8076. },
  8077. "percentage": false,
  8078. "pluginVersion": "9.0.4",
  8079. "pointradius": 5,
  8080. "points": false,
  8081. "renderer": "flot",
  8082. "seriesOverrides": [],
  8083. "spaceLength": 10,
  8084. "stack": false,
  8085. "steppedLine": false,
  8086. "targets": [
  8087. {
  8088. "datasource": {
  8089. "uid": "$datasource"
  8090. },
  8091. "expr": "rate(synapse_util_caches_cache_hits{job=~\"$job\",index=~\"$index\",instance=\"$instance\"}[$bucket_size])/rate(synapse_util_caches_cache{job=~\"$job\",index=~\"$index\",instance=\"$instance\"}[$bucket_size])",
  8092. "format": "time_series",
  8093. "intervalFactor": 2,
  8094. "legendFormat": "{{name}} {{job}}-{{index}}",
  8095. "refId": "A",
  8096. "step": 20
  8097. }
  8098. ],
  8099. "thresholds": [],
  8100. "timeRegions": [],
  8101. "title": "Cache Hit Ratio",
  8102. "tooltip": {
  8103. "msResolution": true,
  8104. "shared": false,
  8105. "sort": 0,
  8106. "value_type": "cumulative"
  8107. },
  8108. "type": "graph",
  8109. "xaxis": {
  8110. "mode": "time",
  8111. "show": true,
  8112. "values": []
  8113. },
  8114. "yaxes": [
  8115. {
  8116. "format": "percentunit",
  8117. "label": "",
  8118. "logBase": 1,
  8119. "max": "1",
  8120. "min": 0,
  8121. "show": true
  8122. },
  8123. {
  8124. "format": "short",
  8125. "logBase": 1,
  8126. "show": false
  8127. }
  8128. ],
  8129. "yaxis": {
  8130. "align": false
  8131. }
  8132. },
  8133. {
  8134. "aliasColors": {},
  8135. "bars": false,
  8136. "dashLength": 10,
  8137. "dashes": false,
  8138. "datasource": {
  8139. "uid": "$datasource"
  8140. },
  8141. "editable": true,
  8142. "error": false,
  8143. "fieldConfig": {
  8144. "defaults": {
  8145. "links": []
  8146. },
  8147. "overrides": []
  8148. },
  8149. "fill": 1,
  8150. "fillGradient": 0,
  8151. "grid": {},
  8152. "gridPos": {
  8153. "h": 10,
  8154. "w": 12,
  8155. "x": 12,
  8156. "y": 36
  8157. },
  8158. "hiddenSeries": false,
  8159. "id": 8,
  8160. "legend": {
  8161. "alignAsTable": true,
  8162. "avg": false,
  8163. "current": false,
  8164. "hideZero": false,
  8165. "max": false,
  8166. "min": false,
  8167. "show": true,
  8168. "total": false,
  8169. "values": false
  8170. },
  8171. "lines": true,
  8172. "linewidth": 2,
  8173. "links": [],
  8174. "nullPointMode": "connected",
  8175. "options": {
  8176. "alertThreshold": true
  8177. },
  8178. "percentage": false,
  8179. "pluginVersion": "9.0.4",
  8180. "pointradius": 5,
  8181. "points": false,
  8182. "renderer": "flot",
  8183. "seriesOverrides": [],
  8184. "spaceLength": 10,
  8185. "stack": false,
  8186. "steppedLine": false,
  8187. "targets": [
  8188. {
  8189. "datasource": {
  8190. "uid": "$datasource"
  8191. },
  8192. "expr": "synapse_util_caches_cache_size{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}",
  8193. "format": "time_series",
  8194. "hide": false,
  8195. "interval": "",
  8196. "intervalFactor": 2,
  8197. "legendFormat": "{{name}} {{job}}-{{index}}",
  8198. "refId": "A",
  8199. "step": 20
  8200. }
  8201. ],
  8202. "thresholds": [],
  8203. "timeRegions": [],
  8204. "title": "Cache Size",
  8205. "tooltip": {
  8206. "shared": false,
  8207. "sort": 0,
  8208. "value_type": "cumulative"
  8209. },
  8210. "type": "graph",
  8211. "xaxis": {
  8212. "mode": "time",
  8213. "show": true,
  8214. "values": []
  8215. },
  8216. "yaxes": [
  8217. {
  8218. "format": "short",
  8219. "logBase": 1,
  8220. "min": 0,
  8221. "show": true
  8222. },
  8223. {
  8224. "format": "short",
  8225. "logBase": 1,
  8226. "show": true
  8227. }
  8228. ],
  8229. "yaxis": {
  8230. "align": false
  8231. }
  8232. },
  8233. {
  8234. "aliasColors": {},
  8235. "bars": false,
  8236. "dashLength": 10,
  8237. "dashes": false,
  8238. "datasource": {
  8239. "uid": "$datasource"
  8240. },
  8241. "editable": true,
  8242. "error": false,
  8243. "fieldConfig": {
  8244. "defaults": {
  8245. "links": []
  8246. },
  8247. "overrides": []
  8248. },
  8249. "fill": 1,
  8250. "fillGradient": 0,
  8251. "grid": {},
  8252. "gridPos": {
  8253. "h": 10,
  8254. "w": 12,
  8255. "x": 0,
  8256. "y": 46
  8257. },
  8258. "hiddenSeries": false,
  8259. "id": 38,
  8260. "legend": {
  8261. "alignAsTable": true,
  8262. "avg": false,
  8263. "current": false,
  8264. "hideZero": false,
  8265. "max": false,
  8266. "min": false,
  8267. "show": true,
  8268. "total": false,
  8269. "values": false
  8270. },
  8271. "lines": true,
  8272. "linewidth": 2,
  8273. "links": [],
  8274. "nullPointMode": "connected",
  8275. "options": {
  8276. "alertThreshold": true
  8277. },
  8278. "percentage": false,
  8279. "pluginVersion": "9.0.4",
  8280. "pointradius": 5,
  8281. "points": false,
  8282. "renderer": "flot",
  8283. "seriesOverrides": [],
  8284. "spaceLength": 10,
  8285. "stack": false,
  8286. "steppedLine": false,
  8287. "targets": [
  8288. {
  8289. "datasource": {
  8290. "uid": "$datasource"
  8291. },
  8292. "expr": "rate(synapse_util_caches_cache{job=~\"$job\",index=~\"$index\",instance=\"$instance\"}[$bucket_size])",
  8293. "format": "time_series",
  8294. "interval": "",
  8295. "intervalFactor": 2,
  8296. "legendFormat": "{{name}} {{job}}-{{index}}",
  8297. "refId": "A",
  8298. "step": 20
  8299. }
  8300. ],
  8301. "thresholds": [],
  8302. "timeRegions": [],
  8303. "title": "Cache request rate",
  8304. "tooltip": {
  8305. "shared": false,
  8306. "sort": 0,
  8307. "value_type": "cumulative"
  8308. },
  8309. "type": "graph",
  8310. "xaxis": {
  8311. "mode": "time",
  8312. "show": true,
  8313. "values": []
  8314. },
  8315. "yaxes": [
  8316. {
  8317. "format": "rps",
  8318. "logBase": 1,
  8319. "min": 0,
  8320. "show": true
  8321. },
  8322. {
  8323. "format": "short",
  8324. "logBase": 1,
  8325. "show": true
  8326. }
  8327. ],
  8328. "yaxis": {
  8329. "align": false
  8330. }
  8331. },
  8332. {
  8333. "aliasColors": {},
  8334. "bars": false,
  8335. "dashLength": 10,
  8336. "dashes": false,
  8337. "datasource": {
  8338. "uid": "$datasource"
  8339. },
  8340. "fieldConfig": {
  8341. "defaults": {
  8342. "links": []
  8343. },
  8344. "overrides": []
  8345. },
  8346. "fill": 1,
  8347. "fillGradient": 0,
  8348. "gridPos": {
  8349. "h": 10,
  8350. "w": 12,
  8351. "x": 12,
  8352. "y": 46
  8353. },
  8354. "hiddenSeries": false,
  8355. "id": 39,
  8356. "legend": {
  8357. "alignAsTable": true,
  8358. "avg": false,
  8359. "current": false,
  8360. "hideEmpty": false,
  8361. "hideZero": false,
  8362. "max": true,
  8363. "min": false,
  8364. "rightSide": false,
  8365. "show": true,
  8366. "sort": "max",
  8367. "sortDesc": true,
  8368. "total": false,
  8369. "values": true
  8370. },
  8371. "lines": true,
  8372. "linewidth": 1,
  8373. "links": [],
  8374. "nullPointMode": "null",
  8375. "options": {
  8376. "alertThreshold": true
  8377. },
  8378. "percentage": false,
  8379. "pluginVersion": "9.0.4",
  8380. "pointradius": 5,
  8381. "points": false,
  8382. "renderer": "flot",
  8383. "seriesOverrides": [],
  8384. "spaceLength": 10,
  8385. "stack": false,
  8386. "steppedLine": false,
  8387. "targets": [
  8388. {
  8389. "datasource": {
  8390. "uid": "$datasource"
  8391. },
  8392. "expr": "topk(10, rate(synapse_util_caches_cache{job=~\"$job\",index=~\"$index\",instance=\"$instance\"}[$bucket_size]) - rate(synapse_util_caches_cache_hits{job=~\"$job\",index=~\"$index\",instance=\"$instance\"}[$bucket_size]))",
  8393. "format": "time_series",
  8394. "interval": "",
  8395. "intervalFactor": 2,
  8396. "legendFormat": "{{name}} {{job}}-{{index}}",
  8397. "refId": "A",
  8398. "step": 20
  8399. }
  8400. ],
  8401. "thresholds": [],
  8402. "timeRegions": [],
  8403. "title": "Top 10 cache misses",
  8404. "tooltip": {
  8405. "shared": false,
  8406. "sort": 0,
  8407. "value_type": "individual"
  8408. },
  8409. "type": "graph",
  8410. "xaxis": {
  8411. "mode": "time",
  8412. "show": true,
  8413. "values": []
  8414. },
  8415. "yaxes": [
  8416. {
  8417. "$$hashKey": "object:101",
  8418. "format": "rps",
  8419. "logBase": 1,
  8420. "show": true
  8421. },
  8422. {
  8423. "$$hashKey": "object:102",
  8424. "format": "short",
  8425. "logBase": 1,
  8426. "show": true
  8427. }
  8428. ],
  8429. "yaxis": {
  8430. "align": false
  8431. }
  8432. },
  8433. {
  8434. "aliasColors": {},
  8435. "bars": false,
  8436. "dashLength": 10,
  8437. "dashes": false,
  8438. "datasource": {
  8439. "uid": "$datasource"
  8440. },
  8441. "fieldConfig": {
  8442. "defaults": {
  8443. "links": []
  8444. },
  8445. "overrides": []
  8446. },
  8447. "fill": 1,
  8448. "fillGradient": 0,
  8449. "gridPos": {
  8450. "h": 9,
  8451. "w": 12,
  8452. "x": 0,
  8453. "y": 56
  8454. },
  8455. "hiddenSeries": false,
  8456. "id": 65,
  8457. "legend": {
  8458. "alignAsTable": true,
  8459. "avg": false,
  8460. "current": false,
  8461. "max": false,
  8462. "min": false,
  8463. "show": true,
  8464. "total": false,
  8465. "values": false
  8466. },
  8467. "lines": true,
  8468. "linewidth": 1,
  8469. "links": [],
  8470. "nullPointMode": "null",
  8471. "options": {
  8472. "alertThreshold": true
  8473. },
  8474. "percentage": false,
  8475. "pluginVersion": "9.0.4",
  8476. "pointradius": 5,
  8477. "points": false,
  8478. "renderer": "flot",
  8479. "seriesOverrides": [],
  8480. "spaceLength": 10,
  8481. "stack": false,
  8482. "steppedLine": false,
  8483. "targets": [
  8484. {
  8485. "datasource": {
  8486. "uid": "$datasource"
  8487. },
  8488. "expr": "rate(synapse_util_caches_cache_evicted_size{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])",
  8489. "format": "time_series",
  8490. "interval": "",
  8491. "intervalFactor": 1,
  8492. "legendFormat": "{{name}} ({{reason}}) {{job}}-{{index}}",
  8493. "refId": "A"
  8494. }
  8495. ],
  8496. "thresholds": [],
  8497. "timeRegions": [],
  8498. "title": "Cache eviction rate",
  8499. "tooltip": {
  8500. "shared": false,
  8501. "sort": 0,
  8502. "value_type": "individual"
  8503. },
  8504. "type": "graph",
  8505. "xaxis": {
  8506. "mode": "time",
  8507. "show": true,
  8508. "values": []
  8509. },
  8510. "yaxes": [
  8511. {
  8512. "format": "hertz",
  8513. "label": "entries / second",
  8514. "logBase": 1,
  8515. "show": true
  8516. },
  8517. {
  8518. "format": "short",
  8519. "logBase": 1,
  8520. "show": true
  8521. }
  8522. ],
  8523. "yaxis": {
  8524. "align": false
  8525. }
  8526. }
  8527. ],
  8528. "targets": [
  8529. {
  8530. "datasource": {
  8531. "type": "prometheus",
  8532. "uid": "000000001"
  8533. },
  8534. "refId": "A"
  8535. }
  8536. ],
  8537. "title": "Caches",
  8538. "type": "row"
  8539. },
  8540. {
  8541. "collapsed": true,
  8542. "datasource": {
  8543. "type": "prometheus",
  8544. "uid": "000000001"
  8545. },
  8546. "gridPos": {
  8547. "h": 1,
  8548. "w": 24,
  8549. "x": 0,
  8550. "y": 37
  8551. },
  8552. "id": 148,
  8553. "panels": [
  8554. {
  8555. "aliasColors": {},
  8556. "bars": false,
  8557. "dashLength": 10,
  8558. "dashes": false,
  8559. "datasource": {
  8560. "uid": "$datasource"
  8561. },
  8562. "fieldConfig": {
  8563. "defaults": {
  8564. "custom": {},
  8565. "links": []
  8566. },
  8567. "overrides": []
  8568. },
  8569. "fill": 1,
  8570. "fillGradient": 0,
  8571. "gridPos": {
  8572. "h": 8,
  8573. "w": 12,
  8574. "x": 0,
  8575. "y": 29
  8576. },
  8577. "hiddenSeries": false,
  8578. "id": 146,
  8579. "legend": {
  8580. "avg": false,
  8581. "current": false,
  8582. "max": false,
  8583. "min": false,
  8584. "show": true,
  8585. "total": false,
  8586. "values": false
  8587. },
  8588. "lines": true,
  8589. "linewidth": 1,
  8590. "nullPointMode": "null",
  8591. "options": {
  8592. "alertThreshold": true
  8593. },
  8594. "percentage": false,
  8595. "pluginVersion": "7.3.7",
  8596. "pointradius": 2,
  8597. "points": false,
  8598. "renderer": "flot",
  8599. "seriesOverrides": [],
  8600. "spaceLength": 10,
  8601. "stack": false,
  8602. "steppedLine": false,
  8603. "targets": [
  8604. {
  8605. "datasource": {
  8606. "uid": "$datasource"
  8607. },
  8608. "expr": "synapse_util_caches_response_cache_size{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}",
  8609. "interval": "",
  8610. "legendFormat": "{{name}} {{job}}-{{index}}",
  8611. "refId": "A"
  8612. }
  8613. ],
  8614. "thresholds": [],
  8615. "timeRegions": [],
  8616. "title": "Response cache size",
  8617. "tooltip": {
  8618. "shared": false,
  8619. "sort": 0,
  8620. "value_type": "individual"
  8621. },
  8622. "type": "graph",
  8623. "xaxis": {
  8624. "mode": "time",
  8625. "show": true,
  8626. "values": []
  8627. },
  8628. "yaxes": [
  8629. {
  8630. "format": "short",
  8631. "logBase": 1,
  8632. "show": true
  8633. },
  8634. {
  8635. "format": "short",
  8636. "logBase": 1,
  8637. "show": true
  8638. }
  8639. ],
  8640. "yaxis": {
  8641. "align": false
  8642. }
  8643. },
  8644. {
  8645. "aliasColors": {},
  8646. "bars": false,
  8647. "dashLength": 10,
  8648. "dashes": false,
  8649. "datasource": {
  8650. "uid": "$datasource"
  8651. },
  8652. "fieldConfig": {
  8653. "defaults": {
  8654. "custom": {},
  8655. "links": []
  8656. },
  8657. "overrides": []
  8658. },
  8659. "fill": 1,
  8660. "fillGradient": 0,
  8661. "gridPos": {
  8662. "h": 8,
  8663. "w": 12,
  8664. "x": 12,
  8665. "y": 29
  8666. },
  8667. "hiddenSeries": false,
  8668. "id": 150,
  8669. "legend": {
  8670. "avg": false,
  8671. "current": false,
  8672. "max": false,
  8673. "min": false,
  8674. "show": true,
  8675. "total": false,
  8676. "values": false
  8677. },
  8678. "lines": true,
  8679. "linewidth": 1,
  8680. "nullPointMode": "null",
  8681. "options": {
  8682. "alertThreshold": true
  8683. },
  8684. "percentage": false,
  8685. "pluginVersion": "7.3.7",
  8686. "pointradius": 2,
  8687. "points": false,
  8688. "renderer": "flot",
  8689. "seriesOverrides": [],
  8690. "spaceLength": 10,
  8691. "stack": false,
  8692. "steppedLine": false,
  8693. "targets": [
  8694. {
  8695. "datasource": {
  8696. "uid": "$datasource"
  8697. },
  8698. "expr": "rate(synapse_util_caches_response_cache_hits{instance=\"$instance\", job=~\"$job\", index=~\"$index\"}[$bucket_size])/rate(synapse_util_caches_response_cache{instance=\"$instance\", job=~\"$job\", index=~\"$index\"}[$bucket_size])",
  8699. "interval": "",
  8700. "legendFormat": "{{name}} {{job}}-{{index}}",
  8701. "refId": "A"
  8702. },
  8703. {
  8704. "datasource": {
  8705. "uid": "$datasource"
  8706. },
  8707. "expr": "",
  8708. "interval": "",
  8709. "legendFormat": "",
  8710. "refId": "B"
  8711. }
  8712. ],
  8713. "thresholds": [],
  8714. "timeRegions": [],
  8715. "title": "Response cache hit rate",
  8716. "tooltip": {
  8717. "shared": false,
  8718. "sort": 0,
  8719. "value_type": "individual"
  8720. },
  8721. "type": "graph",
  8722. "xaxis": {
  8723. "mode": "time",
  8724. "show": true,
  8725. "values": []
  8726. },
  8727. "yaxes": [
  8728. {
  8729. "format": "percentunit",
  8730. "logBase": 1,
  8731. "max": "1",
  8732. "min": "0",
  8733. "show": true
  8734. },
  8735. {
  8736. "format": "short",
  8737. "logBase": 1,
  8738. "show": true
  8739. }
  8740. ],
  8741. "yaxis": {
  8742. "align": false
  8743. }
  8744. }
  8745. ],
  8746. "targets": [
  8747. {
  8748. "datasource": {
  8749. "type": "prometheus",
  8750. "uid": "000000001"
  8751. },
  8752. "refId": "A"
  8753. }
  8754. ],
  8755. "title": "Response caches",
  8756. "type": "row"
  8757. },
  8758. {
  8759. "collapsed": true,
  8760. "datasource": {
  8761. "type": "prometheus",
  8762. "uid": "000000001"
  8763. },
  8764. "gridPos": {
  8765. "h": 1,
  8766. "w": 24,
  8767. "x": 0,
  8768. "y": 38
  8769. },
  8770. "id": 62,
  8771. "panels": [
  8772. {
  8773. "aliasColors": {},
  8774. "bars": false,
  8775. "dashLength": 10,
  8776. "dashes": false,
  8777. "datasource": {
  8778. "uid": "$datasource"
  8779. },
  8780. "fieldConfig": {
  8781. "defaults": {
  8782. "custom": {},
  8783. "links": []
  8784. },
  8785. "overrides": []
  8786. },
  8787. "fill": 1,
  8788. "fillGradient": 0,
  8789. "gridPos": {
  8790. "h": 9,
  8791. "w": 12,
  8792. "x": 0,
  8793. "y": 30
  8794. },
  8795. "hiddenSeries": false,
  8796. "id": 91,
  8797. "legend": {
  8798. "avg": false,
  8799. "current": false,
  8800. "max": false,
  8801. "min": false,
  8802. "show": true,
  8803. "total": false,
  8804. "values": false
  8805. },
  8806. "lines": true,
  8807. "linewidth": 1,
  8808. "links": [],
  8809. "nullPointMode": "null",
  8810. "options": {
  8811. "alertThreshold": true
  8812. },
  8813. "percentage": false,
  8814. "pluginVersion": "7.3.7",
  8815. "pointradius": 5,
  8816. "points": false,
  8817. "renderer": "flot",
  8818. "seriesOverrides": [],
  8819. "spaceLength": 10,
  8820. "stack": true,
  8821. "steppedLine": false,
  8822. "targets": [
  8823. {
  8824. "datasource": {
  8825. "uid": "$datasource"
  8826. },
  8827. "expr": "rate(python_gc_time_sum{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[10m])",
  8828. "format": "time_series",
  8829. "instant": false,
  8830. "intervalFactor": 1,
  8831. "legendFormat": "{{job}}-{{index}} gen {{gen}}",
  8832. "refId": "A"
  8833. }
  8834. ],
  8835. "thresholds": [],
  8836. "timeRegions": [],
  8837. "title": "Total GC time by bucket (10m smoothing)",
  8838. "tooltip": {
  8839. "shared": true,
  8840. "sort": 0,
  8841. "value_type": "individual"
  8842. },
  8843. "type": "graph",
  8844. "xaxis": {
  8845. "mode": "time",
  8846. "show": true,
  8847. "values": []
  8848. },
  8849. "yaxes": [
  8850. {
  8851. "format": "percentunit",
  8852. "logBase": 1,
  8853. "min": "0",
  8854. "show": true
  8855. },
  8856. {
  8857. "format": "short",
  8858. "logBase": 1,
  8859. "show": true
  8860. }
  8861. ],
  8862. "yaxis": {
  8863. "align": false
  8864. }
  8865. },
  8866. {
  8867. "aliasColors": {},
  8868. "bars": false,
  8869. "dashLength": 10,
  8870. "dashes": false,
  8871. "datasource": {
  8872. "uid": "$datasource"
  8873. },
  8874. "decimals": 3,
  8875. "editable": true,
  8876. "error": false,
  8877. "fieldConfig": {
  8878. "defaults": {
  8879. "custom": {},
  8880. "links": []
  8881. },
  8882. "overrides": []
  8883. },
  8884. "fill": 1,
  8885. "fillGradient": 0,
  8886. "grid": {},
  8887. "gridPos": {
  8888. "h": 9,
  8889. "w": 12,
  8890. "x": 12,
  8891. "y": 30
  8892. },
  8893. "hiddenSeries": false,
  8894. "id": 21,
  8895. "legend": {
  8896. "alignAsTable": true,
  8897. "avg": false,
  8898. "current": false,
  8899. "max": false,
  8900. "min": false,
  8901. "show": true,
  8902. "total": false,
  8903. "values": false
  8904. },
  8905. "lines": true,
  8906. "linewidth": 2,
  8907. "links": [],
  8908. "nullPointMode": "null as zero",
  8909. "options": {
  8910. "alertThreshold": true
  8911. },
  8912. "percentage": false,
  8913. "pluginVersion": "7.3.7",
  8914. "pointradius": 5,
  8915. "points": false,
  8916. "renderer": "flot",
  8917. "seriesOverrides": [],
  8918. "spaceLength": 10,
  8919. "stack": false,
  8920. "steppedLine": false,
  8921. "targets": [
  8922. {
  8923. "datasource": {
  8924. "uid": "$datasource"
  8925. },
  8926. "expr": "rate(python_gc_time_sum{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])/rate(python_gc_time_count[$bucket_size])",
  8927. "format": "time_series",
  8928. "intervalFactor": 2,
  8929. "legendFormat": "{{job}} {{index}} gen {{gen}} ",
  8930. "refId": "A",
  8931. "step": 20,
  8932. "target": ""
  8933. }
  8934. ],
  8935. "thresholds": [],
  8936. "timeRegions": [],
  8937. "title": "Average GC Time Per Collection",
  8938. "tooltip": {
  8939. "shared": false,
  8940. "sort": 0,
  8941. "value_type": "cumulative"
  8942. },
  8943. "type": "graph",
  8944. "xaxis": {
  8945. "mode": "time",
  8946. "show": true,
  8947. "values": []
  8948. },
  8949. "yaxes": [
  8950. {
  8951. "format": "s",
  8952. "logBase": 1,
  8953. "show": true
  8954. },
  8955. {
  8956. "format": "short",
  8957. "logBase": 1,
  8958. "show": true
  8959. }
  8960. ],
  8961. "yaxis": {
  8962. "align": false
  8963. }
  8964. },
  8965. {
  8966. "aliasColors": {},
  8967. "bars": false,
  8968. "dashLength": 10,
  8969. "dashes": false,
  8970. "datasource": {
  8971. "uid": "$datasource"
  8972. },
  8973. "description": "'gen 0' shows the number of objects allocated since the last gen0 GC.\n'gen 1' / 'gen 2' show the number of gen0/gen1 GCs since the last gen1/gen2 GC.",
  8974. "fieldConfig": {
  8975. "defaults": {
  8976. "custom": {},
  8977. "links": []
  8978. },
  8979. "overrides": []
  8980. },
  8981. "fill": 1,
  8982. "fillGradient": 0,
  8983. "gridPos": {
  8984. "h": 9,
  8985. "w": 12,
  8986. "x": 0,
  8987. "y": 39
  8988. },
  8989. "hiddenSeries": false,
  8990. "id": 89,
  8991. "legend": {
  8992. "avg": false,
  8993. "current": false,
  8994. "hideEmpty": true,
  8995. "hideZero": false,
  8996. "max": false,
  8997. "min": false,
  8998. "show": true,
  8999. "total": false,
  9000. "values": false
  9001. },
  9002. "lines": true,
  9003. "linewidth": 1,
  9004. "links": [],
  9005. "nullPointMode": "null",
  9006. "options": {
  9007. "alertThreshold": true
  9008. },
  9009. "percentage": false,
  9010. "pluginVersion": "7.3.7",
  9011. "pointradius": 5,
  9012. "points": false,
  9013. "renderer": "flot",
  9014. "seriesOverrides": [
  9015. {
  9016. "alias": "/gen 0$/",
  9017. "yaxis": 2
  9018. }
  9019. ],
  9020. "spaceLength": 10,
  9021. "stack": false,
  9022. "steppedLine": false,
  9023. "targets": [
  9024. {
  9025. "datasource": {
  9026. "uid": "$datasource"
  9027. },
  9028. "expr": "python_gc_counts{job=~\"$job\",index=~\"$index\",instance=\"$instance\"}",
  9029. "format": "time_series",
  9030. "intervalFactor": 1,
  9031. "legendFormat": "{{job}}-{{index}} gen {{gen}}",
  9032. "refId": "A"
  9033. }
  9034. ],
  9035. "thresholds": [],
  9036. "timeRegions": [],
  9037. "title": "Allocation counts",
  9038. "tooltip": {
  9039. "shared": false,
  9040. "sort": 0,
  9041. "value_type": "individual"
  9042. },
  9043. "type": "graph",
  9044. "xaxis": {
  9045. "mode": "time",
  9046. "show": true,
  9047. "values": []
  9048. },
  9049. "yaxes": [
  9050. {
  9051. "format": "short",
  9052. "label": "Gen N-1 GCs since last Gen N GC",
  9053. "logBase": 1,
  9054. "show": true
  9055. },
  9056. {
  9057. "format": "short",
  9058. "label": "Objects since last Gen 0 GC",
  9059. "logBase": 1,
  9060. "show": true
  9061. }
  9062. ],
  9063. "yaxis": {
  9064. "align": false
  9065. }
  9066. },
  9067. {
  9068. "aliasColors": {},
  9069. "bars": false,
  9070. "dashLength": 10,
  9071. "dashes": false,
  9072. "datasource": {
  9073. "uid": "$datasource"
  9074. },
  9075. "fieldConfig": {
  9076. "defaults": {
  9077. "custom": {},
  9078. "links": []
  9079. },
  9080. "overrides": []
  9081. },
  9082. "fill": 1,
  9083. "fillGradient": 0,
  9084. "gridPos": {
  9085. "h": 9,
  9086. "w": 12,
  9087. "x": 12,
  9088. "y": 39
  9089. },
  9090. "hiddenSeries": false,
  9091. "id": 93,
  9092. "legend": {
  9093. "avg": false,
  9094. "current": false,
  9095. "max": false,
  9096. "min": false,
  9097. "show": true,
  9098. "total": false,
  9099. "values": false
  9100. },
  9101. "lines": true,
  9102. "linewidth": 1,
  9103. "links": [],
  9104. "nullPointMode": "connected",
  9105. "options": {
  9106. "alertThreshold": true
  9107. },
  9108. "percentage": false,
  9109. "pluginVersion": "7.3.7",
  9110. "pointradius": 5,
  9111. "points": false,
  9112. "renderer": "flot",
  9113. "seriesOverrides": [],
  9114. "spaceLength": 10,
  9115. "stack": false,
  9116. "steppedLine": false,
  9117. "targets": [
  9118. {
  9119. "datasource": {
  9120. "uid": "$datasource"
  9121. },
  9122. "expr": "rate(python_gc_unreachable_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])/rate(python_gc_time_count{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])",
  9123. "format": "time_series",
  9124. "intervalFactor": 1,
  9125. "legendFormat": "{{job}}-{{index}} gen {{gen}}",
  9126. "refId": "A"
  9127. }
  9128. ],
  9129. "thresholds": [],
  9130. "timeRegions": [],
  9131. "title": "Object counts per collection",
  9132. "tooltip": {
  9133. "shared": true,
  9134. "sort": 0,
  9135. "value_type": "individual"
  9136. },
  9137. "type": "graph",
  9138. "xaxis": {
  9139. "mode": "time",
  9140. "show": true,
  9141. "values": []
  9142. },
  9143. "yaxes": [
  9144. {
  9145. "format": "short",
  9146. "logBase": 1,
  9147. "show": true
  9148. },
  9149. {
  9150. "format": "short",
  9151. "logBase": 1,
  9152. "show": true
  9153. }
  9154. ],
  9155. "yaxis": {
  9156. "align": false
  9157. }
  9158. },
  9159. {
  9160. "aliasColors": {},
  9161. "bars": false,
  9162. "dashLength": 10,
  9163. "dashes": false,
  9164. "datasource": {
  9165. "uid": "$datasource"
  9166. },
  9167. "fieldConfig": {
  9168. "defaults": {
  9169. "custom": {},
  9170. "links": []
  9171. },
  9172. "overrides": []
  9173. },
  9174. "fill": 1,
  9175. "fillGradient": 0,
  9176. "gridPos": {
  9177. "h": 9,
  9178. "w": 12,
  9179. "x": 0,
  9180. "y": 48
  9181. },
  9182. "hiddenSeries": false,
  9183. "id": 95,
  9184. "legend": {
  9185. "avg": false,
  9186. "current": false,
  9187. "max": false,
  9188. "min": false,
  9189. "show": true,
  9190. "total": false,
  9191. "values": false
  9192. },
  9193. "lines": true,
  9194. "linewidth": 1,
  9195. "links": [],
  9196. "nullPointMode": "null",
  9197. "options": {
  9198. "alertThreshold": true
  9199. },
  9200. "percentage": false,
  9201. "pluginVersion": "7.3.7",
  9202. "pointradius": 5,
  9203. "points": false,
  9204. "renderer": "flot",
  9205. "seriesOverrides": [],
  9206. "spaceLength": 10,
  9207. "stack": false,
  9208. "steppedLine": false,
  9209. "targets": [
  9210. {
  9211. "datasource": {
  9212. "uid": "$datasource"
  9213. },
  9214. "expr": "rate(python_gc_time_count{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])",
  9215. "format": "time_series",
  9216. "intervalFactor": 1,
  9217. "legendFormat": "{{job}}-{{index}} gen {{gen}}",
  9218. "refId": "A"
  9219. }
  9220. ],
  9221. "thresholds": [],
  9222. "timeRegions": [],
  9223. "title": "GC frequency",
  9224. "tooltip": {
  9225. "shared": true,
  9226. "sort": 0,
  9227. "value_type": "individual"
  9228. },
  9229. "type": "graph",
  9230. "xaxis": {
  9231. "mode": "time",
  9232. "show": true,
  9233. "values": []
  9234. },
  9235. "yaxes": [
  9236. {
  9237. "format": "hertz",
  9238. "logBase": 1,
  9239. "show": true
  9240. },
  9241. {
  9242. "format": "short",
  9243. "logBase": 1,
  9244. "show": true
  9245. }
  9246. ],
  9247. "yaxis": {
  9248. "align": false
  9249. }
  9250. },
  9251. {
  9252. "cards": {
  9253. "cardPadding": 0
  9254. },
  9255. "color": {
  9256. "cardColor": "#b4ff00",
  9257. "colorScale": "sqrt",
  9258. "colorScheme": "interpolateSpectral",
  9259. "exponent": 0.5,
  9260. "min": 0,
  9261. "mode": "spectrum"
  9262. },
  9263. "dataFormat": "tsbuckets",
  9264. "datasource": {
  9265. "type": "prometheus",
  9266. "uid": "${DS_PROMETHEUS}"
  9267. },
  9268. "fieldConfig": {
  9269. "defaults": {
  9270. "custom": {}
  9271. },
  9272. "overrides": []
  9273. },
  9274. "gridPos": {
  9275. "h": 9,
  9276. "w": 12,
  9277. "x": 12,
  9278. "y": 48
  9279. },
  9280. "heatmap": {},
  9281. "hideZeroBuckets": true,
  9282. "highlightCards": true,
  9283. "id": 87,
  9284. "legend": {
  9285. "show": true
  9286. },
  9287. "links": [],
  9288. "reverseYBuckets": false,
  9289. "targets": [
  9290. {
  9291. "datasource": {
  9292. "type": "prometheus",
  9293. "uid": "${DS_PROMETHEUS}"
  9294. },
  9295. "expr": "sum(rate(python_gc_time_bucket[$bucket_size])) by (le)",
  9296. "format": "heatmap",
  9297. "intervalFactor": 1,
  9298. "legendFormat": "{{le}}",
  9299. "refId": "A"
  9300. }
  9301. ],
  9302. "title": "GC durations",
  9303. "tooltip": {
  9304. "show": true,
  9305. "showHistogram": false
  9306. },
  9307. "type": "heatmap",
  9308. "xAxis": {
  9309. "show": true
  9310. },
  9311. "yAxis": {
  9312. "format": "s",
  9313. "logBase": 1,
  9314. "show": true
  9315. },
  9316. "yBucketBound": "auto"
  9317. }
  9318. ],
  9319. "targets": [
  9320. {
  9321. "datasource": {
  9322. "type": "prometheus",
  9323. "uid": "000000001"
  9324. },
  9325. "refId": "A"
  9326. }
  9327. ],
  9328. "title": "GC",
  9329. "type": "row"
  9330. },
  9331. {
  9332. "collapsed": true,
  9333. "datasource": {
  9334. "type": "prometheus",
  9335. "uid": "000000001"
  9336. },
  9337. "gridPos": {
  9338. "h": 1,
  9339. "w": 24,
  9340. "x": 0,
  9341. "y": 39
  9342. },
  9343. "id": 63,
  9344. "panels": [
  9345. {
  9346. "aliasColors": {},
  9347. "bars": false,
  9348. "dashLength": 10,
  9349. "dashes": false,
  9350. "datasource": {
  9351. "type": "prometheus",
  9352. "uid": "$datasource"
  9353. },
  9354. "fieldConfig": {
  9355. "defaults": {
  9356. "links": []
  9357. },
  9358. "overrides": []
  9359. },
  9360. "fill": 1,
  9361. "fillGradient": 0,
  9362. "gridPos": {
  9363. "h": 7,
  9364. "w": 12,
  9365. "x": 0,
  9366. "y": 40
  9367. },
  9368. "hiddenSeries": false,
  9369. "id": 43,
  9370. "legend": {
  9371. "avg": false,
  9372. "current": false,
  9373. "max": false,
  9374. "min": false,
  9375. "show": true,
  9376. "total": false,
  9377. "values": false
  9378. },
  9379. "lines": true,
  9380. "linewidth": 1,
  9381. "links": [],
  9382. "nullPointMode": "null",
  9383. "options": {
  9384. "alertThreshold": true
  9385. },
  9386. "paceLength": 10,
  9387. "percentage": false,
  9388. "pluginVersion": "9.0.4",
  9389. "pointradius": 5,
  9390. "points": false,
  9391. "renderer": "flot",
  9392. "seriesOverrides": [],
  9393. "spaceLength": 10,
  9394. "stack": false,
  9395. "steppedLine": false,
  9396. "targets": [
  9397. {
  9398. "datasource": {
  9399. "uid": "$datasource"
  9400. },
  9401. "expr": "sum (rate(synapse_replication_tcp_protocol_outbound_commands_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])) without (name, conn_id)",
  9402. "format": "time_series",
  9403. "intervalFactor": 2,
  9404. "legendFormat": "{{job}}-{{index}} {{command}}",
  9405. "refId": "A",
  9406. "step": 20
  9407. }
  9408. ],
  9409. "thresholds": [],
  9410. "timeRegions": [],
  9411. "title": "Rate of outgoing commands",
  9412. "tooltip": {
  9413. "shared": false,
  9414. "sort": 0,
  9415. "value_type": "individual"
  9416. },
  9417. "type": "graph",
  9418. "xaxis": {
  9419. "mode": "time",
  9420. "show": true,
  9421. "values": []
  9422. },
  9423. "yaxes": [
  9424. {
  9425. "$$hashKey": "object:89",
  9426. "format": "hertz",
  9427. "logBase": 1,
  9428. "show": true
  9429. },
  9430. {
  9431. "$$hashKey": "object:90",
  9432. "format": "short",
  9433. "logBase": 1,
  9434. "show": true
  9435. }
  9436. ],
  9437. "yaxis": {
  9438. "align": false
  9439. }
  9440. },
  9441. {
  9442. "datasource": {
  9443. "type": "prometheus",
  9444. "uid": "$datasource"
  9445. },
  9446. "fieldConfig": {
  9447. "defaults": {
  9448. "color": {
  9449. "mode": "palette-classic"
  9450. },
  9451. "custom": {
  9452. "axisLabel": "",
  9453. "axisPlacement": "auto",
  9454. "barAlignment": 0,
  9455. "drawStyle": "line",
  9456. "fillOpacity": 10,
  9457. "gradientMode": "none",
  9458. "hideFrom": {
  9459. "legend": false,
  9460. "tooltip": false,
  9461. "viz": false
  9462. },
  9463. "lineInterpolation": "linear",
  9464. "lineWidth": 1,
  9465. "pointSize": 5,
  9466. "scaleDistribution": {
  9467. "type": "linear"
  9468. },
  9469. "showPoints": "never",
  9470. "spanNulls": true,
  9471. "stacking": {
  9472. "group": "A",
  9473. "mode": "none"
  9474. },
  9475. "thresholdsStyle": {
  9476. "mode": "off"
  9477. }
  9478. },
  9479. "links": [],
  9480. "mappings": [],
  9481. "thresholds": {
  9482. "mode": "absolute",
  9483. "steps": [
  9484. {
  9485. "color": "green"
  9486. },
  9487. {
  9488. "color": "red",
  9489. "value": 80
  9490. }
  9491. ]
  9492. },
  9493. "unit": "hertz"
  9494. },
  9495. "overrides": []
  9496. },
  9497. "gridPos": {
  9498. "h": 7,
  9499. "w": 12,
  9500. "x": 12,
  9501. "y": 40
  9502. },
  9503. "id": 41,
  9504. "links": [],
  9505. "options": {
  9506. "legend": {
  9507. "calcs": [],
  9508. "displayMode": "list",
  9509. "placement": "bottom",
  9510. "showLegend": true
  9511. },
  9512. "tooltip": {
  9513. "mode": "single",
  9514. "sort": "none"
  9515. }
  9516. },
  9517. "pluginVersion": "8.4.3",
  9518. "targets": [
  9519. {
  9520. "datasource": {
  9521. "type": "prometheus",
  9522. "uid": "${DS_PROMETHEUS}"
  9523. },
  9524. "exemplar": true,
  9525. "expr": "rate(synapse_replication_tcp_resource_stream_updates_total{job=~\"$job\",index=~\"$index\",instance=\"$instance\"}[$bucket_size])",
  9526. "format": "time_series",
  9527. "interval": "",
  9528. "intervalFactor": 2,
  9529. "legendFormat": "{{stream_name}}",
  9530. "refId": "A",
  9531. "step": 20
  9532. }
  9533. ],
  9534. "title": "Rate of outgoing RDATA commands, by stream",
  9535. "type": "timeseries"
  9536. },
  9537. {
  9538. "datasource": {
  9539. "type": "prometheus",
  9540. "uid": "$datasource"
  9541. },
  9542. "fieldConfig": {
  9543. "defaults": {
  9544. "color": {
  9545. "mode": "palette-classic"
  9546. },
  9547. "custom": {
  9548. "axisLabel": "",
  9549. "axisPlacement": "auto",
  9550. "barAlignment": 0,
  9551. "drawStyle": "line",
  9552. "fillOpacity": 10,
  9553. "gradientMode": "none",
  9554. "hideFrom": {
  9555. "legend": false,
  9556. "tooltip": false,
  9557. "viz": false
  9558. },
  9559. "lineInterpolation": "linear",
  9560. "lineWidth": 1,
  9561. "pointSize": 5,
  9562. "scaleDistribution": {
  9563. "type": "linear"
  9564. },
  9565. "showPoints": "never",
  9566. "spanNulls": true,
  9567. "stacking": {
  9568. "group": "A",
  9569. "mode": "none"
  9570. },
  9571. "thresholdsStyle": {
  9572. "mode": "off"
  9573. }
  9574. },
  9575. "links": [],
  9576. "mappings": [],
  9577. "min": 0,
  9578. "thresholds": {
  9579. "mode": "absolute",
  9580. "steps": [
  9581. {
  9582. "color": "green"
  9583. },
  9584. {
  9585. "color": "red",
  9586. "value": 80
  9587. }
  9588. ]
  9589. },
  9590. "unit": "hertz"
  9591. },
  9592. "overrides": []
  9593. },
  9594. "gridPos": {
  9595. "h": 7,
  9596. "w": 12,
  9597. "x": 0,
  9598. "y": 47
  9599. },
  9600. "id": 42,
  9601. "links": [],
  9602. "options": {
  9603. "legend": {
  9604. "calcs": [],
  9605. "displayMode": "list",
  9606. "placement": "bottom",
  9607. "showLegend": true
  9608. },
  9609. "tooltip": {
  9610. "mode": "single",
  9611. "sort": "none"
  9612. }
  9613. },
  9614. "pluginVersion": "8.4.3",
  9615. "targets": [
  9616. {
  9617. "datasource": {
  9618. "type": "prometheus",
  9619. "uid": "${DS_PROMETHEUS}"
  9620. },
  9621. "exemplar": true,
  9622. "expr": "sum (rate(synapse_replication_tcp_protocol_inbound_commands_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])) without (name, conn_id)",
  9623. "format": "time_series",
  9624. "interval": "",
  9625. "intervalFactor": 2,
  9626. "legendFormat": "{{job}}-{{index}} {{command}}",
  9627. "refId": "A",
  9628. "step": 20
  9629. }
  9630. ],
  9631. "title": "Rate of incoming commands (including echoes)",
  9632. "type": "timeseries"
  9633. },
  9634. {
  9635. "datasource": {
  9636. "type": "prometheus",
  9637. "uid": "$datasource"
  9638. },
  9639. "fieldConfig": {
  9640. "defaults": {
  9641. "color": {
  9642. "mode": "palette-classic"
  9643. },
  9644. "custom": {
  9645. "axisLabel": "",
  9646. "axisPlacement": "auto",
  9647. "axisSoftMin": 1,
  9648. "barAlignment": 0,
  9649. "drawStyle": "line",
  9650. "fillOpacity": 10,
  9651. "gradientMode": "none",
  9652. "hideFrom": {
  9653. "legend": false,
  9654. "tooltip": false,
  9655. "viz": false
  9656. },
  9657. "lineInterpolation": "linear",
  9658. "lineWidth": 1,
  9659. "pointSize": 5,
  9660. "scaleDistribution": {
  9661. "type": "linear"
  9662. },
  9663. "showPoints": "never",
  9664. "spanNulls": true,
  9665. "stacking": {
  9666. "group": "A",
  9667. "mode": "none"
  9668. },
  9669. "thresholdsStyle": {
  9670. "mode": "off"
  9671. }
  9672. },
  9673. "links": [],
  9674. "mappings": [],
  9675. "min": 0,
  9676. "thresholds": {
  9677. "mode": "absolute",
  9678. "steps": [
  9679. {
  9680. "color": "green"
  9681. },
  9682. {
  9683. "color": "red",
  9684. "value": 80
  9685. }
  9686. ]
  9687. },
  9688. "unit": "hertz"
  9689. },
  9690. "overrides": []
  9691. },
  9692. "gridPos": {
  9693. "h": 7,
  9694. "w": 12,
  9695. "x": 12,
  9696. "y": 47
  9697. },
  9698. "id": 220,
  9699. "links": [],
  9700. "options": {
  9701. "legend": {
  9702. "calcs": [],
  9703. "displayMode": "list",
  9704. "placement": "bottom",
  9705. "showLegend": true
  9706. },
  9707. "tooltip": {
  9708. "mode": "single",
  9709. "sort": "none"
  9710. }
  9711. },
  9712. "pluginVersion": "8.4.3",
  9713. "targets": [
  9714. {
  9715. "datasource": {
  9716. "type": "prometheus",
  9717. "uid": "${DS_PROMETHEUS}"
  9718. },
  9719. "exemplar": true,
  9720. "expr": "rate(synapse_replication_tcp_protocol_inbound_rdata_count_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])",
  9721. "format": "time_series",
  9722. "interval": "",
  9723. "intervalFactor": 1,
  9724. "legendFormat": "{{job}}-{{index}} {{stream_name}}",
  9725. "refId": "A",
  9726. "step": 20
  9727. }
  9728. ],
  9729. "title": "Rate of incoming RDATA commands (excluding echoes), by stream",
  9730. "type": "timeseries"
  9731. },
  9732. {
  9733. "aliasColors": {},
  9734. "bars": false,
  9735. "dashLength": 10,
  9736. "dashes": false,
  9737. "datasource": {
  9738. "type": "prometheus",
  9739. "uid": "${DS_PROMETHEUS}"
  9740. },
  9741. "description": "",
  9742. "fieldConfig": {
  9743. "defaults": {
  9744. "links": []
  9745. },
  9746. "overrides": []
  9747. },
  9748. "fill": 1,
  9749. "fillGradient": 0,
  9750. "gridPos": {
  9751. "h": 7,
  9752. "w": 12,
  9753. "x": 0,
  9754. "y": 54
  9755. },
  9756. "hiddenSeries": false,
  9757. "id": 144,
  9758. "legend": {
  9759. "avg": false,
  9760. "current": false,
  9761. "max": false,
  9762. "min": false,
  9763. "show": true,
  9764. "total": false,
  9765. "values": false
  9766. },
  9767. "lines": true,
  9768. "linewidth": 1,
  9769. "nullPointMode": "null",
  9770. "options": {
  9771. "alertThreshold": true
  9772. },
  9773. "percentage": false,
  9774. "pluginVersion": "9.0.4",
  9775. "pointradius": 2,
  9776. "points": false,
  9777. "renderer": "flot",
  9778. "seriesOverrides": [],
  9779. "spaceLength": 10,
  9780. "stack": false,
  9781. "steppedLine": false,
  9782. "targets": [
  9783. {
  9784. "datasource": {
  9785. "type": "prometheus",
  9786. "uid": "${DS_PROMETHEUS}"
  9787. },
  9788. "expr": "synapse_replication_tcp_command_queue{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}",
  9789. "interval": "",
  9790. "legendFormat": "{{stream_name}} {{job}}-{{index}}",
  9791. "refId": "A"
  9792. }
  9793. ],
  9794. "thresholds": [],
  9795. "timeRegions": [],
  9796. "title": "Queued incoming RDATA commands, by stream",
  9797. "tooltip": {
  9798. "shared": false,
  9799. "sort": 0,
  9800. "value_type": "individual"
  9801. },
  9802. "type": "graph",
  9803. "xaxis": {
  9804. "mode": "time",
  9805. "show": true,
  9806. "values": []
  9807. },
  9808. "yaxes": [
  9809. {
  9810. "$$hashKey": "object:218",
  9811. "format": "short",
  9812. "logBase": 1,
  9813. "show": true
  9814. },
  9815. {
  9816. "$$hashKey": "object:219",
  9817. "format": "short",
  9818. "logBase": 1,
  9819. "show": true
  9820. }
  9821. ],
  9822. "yaxis": {
  9823. "align": false
  9824. }
  9825. },
  9826. {
  9827. "aliasColors": {},
  9828. "bars": false,
  9829. "dashLength": 10,
  9830. "dashes": false,
  9831. "datasource": {
  9832. "type": "prometheus",
  9833. "uid": "$datasource"
  9834. },
  9835. "fieldConfig": {
  9836. "defaults": {
  9837. "links": []
  9838. },
  9839. "overrides": []
  9840. },
  9841. "fill": 1,
  9842. "fillGradient": 0,
  9843. "gridPos": {
  9844. "h": 7,
  9845. "w": 12,
  9846. "x": 12,
  9847. "y": 54
  9848. },
  9849. "hiddenSeries": false,
  9850. "id": 115,
  9851. "legend": {
  9852. "avg": false,
  9853. "current": false,
  9854. "max": false,
  9855. "min": false,
  9856. "show": true,
  9857. "total": false,
  9858. "values": false
  9859. },
  9860. "lines": true,
  9861. "linewidth": 1,
  9862. "links": [],
  9863. "nullPointMode": "null",
  9864. "options": {
  9865. "alertThreshold": true
  9866. },
  9867. "paceLength": 10,
  9868. "percentage": false,
  9869. "pluginVersion": "9.0.4",
  9870. "pointradius": 5,
  9871. "points": false,
  9872. "renderer": "flot",
  9873. "seriesOverrides": [],
  9874. "spaceLength": 10,
  9875. "stack": false,
  9876. "steppedLine": false,
  9877. "targets": [
  9878. {
  9879. "datasource": {
  9880. "uid": "$datasource"
  9881. },
  9882. "expr": "rate(synapse_replication_tcp_protocol_close_reason_total{job=~\"$job\",index=~\"$index\",instance=\"$instance\"}[$bucket_size])",
  9883. "format": "time_series",
  9884. "intervalFactor": 1,
  9885. "legendFormat": "{{job}}-{{index}} {{reason_type}}",
  9886. "refId": "A"
  9887. }
  9888. ],
  9889. "thresholds": [],
  9890. "timeRegions": [],
  9891. "title": "Replication connection close reasons",
  9892. "tooltip": {
  9893. "shared": true,
  9894. "sort": 0,
  9895. "value_type": "individual"
  9896. },
  9897. "type": "graph",
  9898. "xaxis": {
  9899. "mode": "time",
  9900. "show": true,
  9901. "values": []
  9902. },
  9903. "yaxes": [
  9904. {
  9905. "$$hashKey": "object:260",
  9906. "format": "hertz",
  9907. "logBase": 1,
  9908. "show": true
  9909. },
  9910. {
  9911. "$$hashKey": "object:261",
  9912. "format": "short",
  9913. "logBase": 1,
  9914. "show": true
  9915. }
  9916. ],
  9917. "yaxis": {
  9918. "align": false
  9919. }
  9920. },
  9921. {
  9922. "aliasColors": {},
  9923. "bars": false,
  9924. "dashLength": 10,
  9925. "dashes": false,
  9926. "datasource": {
  9927. "uid": "$datasource"
  9928. },
  9929. "fieldConfig": {
  9930. "defaults": {
  9931. "links": []
  9932. },
  9933. "overrides": []
  9934. },
  9935. "fill": 1,
  9936. "fillGradient": 0,
  9937. "gridPos": {
  9938. "h": 7,
  9939. "w": 12,
  9940. "x": 0,
  9941. "y": 61
  9942. },
  9943. "hiddenSeries": false,
  9944. "id": 113,
  9945. "legend": {
  9946. "avg": false,
  9947. "current": false,
  9948. "max": false,
  9949. "min": false,
  9950. "show": true,
  9951. "total": false,
  9952. "values": false
  9953. },
  9954. "lines": true,
  9955. "linewidth": 1,
  9956. "links": [],
  9957. "nullPointMode": "null",
  9958. "options": {
  9959. "alertThreshold": true
  9960. },
  9961. "paceLength": 10,
  9962. "percentage": false,
  9963. "pluginVersion": "9.0.4",
  9964. "pointradius": 5,
  9965. "points": false,
  9966. "renderer": "flot",
  9967. "seriesOverrides": [],
  9968. "spaceLength": 10,
  9969. "stack": false,
  9970. "steppedLine": false,
  9971. "targets": [
  9972. {
  9973. "datasource": {
  9974. "uid": "$datasource"
  9975. },
  9976. "expr": "synapse_replication_tcp_resource_connections_per_stream{job=~\"$job\",index=~\"$index\",instance=\"$instance\"}",
  9977. "format": "time_series",
  9978. "intervalFactor": 1,
  9979. "legendFormat": "{{job}}-{{index}} {{stream_name}}",
  9980. "refId": "A"
  9981. },
  9982. {
  9983. "datasource": {
  9984. "uid": "$datasource"
  9985. },
  9986. "expr": "synapse_replication_tcp_resource_total_connections{job=~\"$job\",index=~\"$index\",instance=\"$instance\"}",
  9987. "format": "time_series",
  9988. "intervalFactor": 1,
  9989. "legendFormat": "{{job}}-{{index}}",
  9990. "refId": "B"
  9991. }
  9992. ],
  9993. "thresholds": [],
  9994. "timeRegions": [],
  9995. "title": "Replication connections",
  9996. "tooltip": {
  9997. "shared": true,
  9998. "sort": 0,
  9999. "value_type": "individual"
  10000. },
  10001. "type": "graph",
  10002. "xaxis": {
  10003. "mode": "time",
  10004. "show": true,
  10005. "values": []
  10006. },
  10007. "yaxes": [
  10008. {
  10009. "format": "short",
  10010. "logBase": 1,
  10011. "min": "0",
  10012. "show": true
  10013. },
  10014. {
  10015. "format": "short",
  10016. "logBase": 1,
  10017. "show": true
  10018. }
  10019. ],
  10020. "yaxis": {
  10021. "align": false
  10022. }
  10023. }
  10024. ],
  10025. "targets": [
  10026. {
  10027. "datasource": {
  10028. "type": "prometheus",
  10029. "uid": "000000001"
  10030. },
  10031. "refId": "A"
  10032. }
  10033. ],
  10034. "title": "Replication",
  10035. "type": "row"
  10036. },
  10037. {
  10038. "collapsed": true,
  10039. "datasource": {
  10040. "type": "prometheus",
  10041. "uid": "000000001"
  10042. },
  10043. "gridPos": {
  10044. "h": 1,
  10045. "w": 24,
  10046. "x": 0,
  10047. "y": 40
  10048. },
  10049. "id": 69,
  10050. "panels": [
  10051. {
  10052. "aliasColors": {},
  10053. "bars": false,
  10054. "dashLength": 10,
  10055. "dashes": false,
  10056. "datasource": {
  10057. "uid": "$datasource"
  10058. },
  10059. "fieldConfig": {
  10060. "defaults": {
  10061. "custom": {},
  10062. "links": []
  10063. },
  10064. "overrides": []
  10065. },
  10066. "fill": 1,
  10067. "fillGradient": 0,
  10068. "gridPos": {
  10069. "h": 9,
  10070. "w": 12,
  10071. "x": 0,
  10072. "y": 41
  10073. },
  10074. "hiddenSeries": false,
  10075. "id": 67,
  10076. "legend": {
  10077. "avg": false,
  10078. "current": false,
  10079. "max": false,
  10080. "min": false,
  10081. "show": true,
  10082. "total": false,
  10083. "values": false
  10084. },
  10085. "lines": true,
  10086. "linewidth": 1,
  10087. "links": [],
  10088. "nullPointMode": "connected",
  10089. "options": {
  10090. "alertThreshold": true
  10091. },
  10092. "paceLength": 10,
  10093. "percentage": false,
  10094. "pluginVersion": "7.3.7",
  10095. "pointradius": 5,
  10096. "points": false,
  10097. "renderer": "flot",
  10098. "seriesOverrides": [],
  10099. "spaceLength": 10,
  10100. "stack": false,
  10101. "steppedLine": false,
  10102. "targets": [
  10103. {
  10104. "datasource": {
  10105. "uid": "$datasource"
  10106. },
  10107. "expr": "max(synapse_event_persisted_position{instance=\"$instance\"}) - on() group_right() synapse_event_processing_positions{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}",
  10108. "format": "time_series",
  10109. "interval": "",
  10110. "intervalFactor": 1,
  10111. "legendFormat": "{{job}}-{{index}} {{name}}",
  10112. "refId": "A"
  10113. }
  10114. ],
  10115. "thresholds": [],
  10116. "timeRegions": [],
  10117. "title": "Event processing lag",
  10118. "tooltip": {
  10119. "shared": true,
  10120. "sort": 0,
  10121. "value_type": "individual"
  10122. },
  10123. "type": "graph",
  10124. "xaxis": {
  10125. "mode": "time",
  10126. "show": true,
  10127. "values": []
  10128. },
  10129. "yaxes": [
  10130. {
  10131. "format": "short",
  10132. "label": "events",
  10133. "logBase": 1,
  10134. "min": "0",
  10135. "show": true
  10136. },
  10137. {
  10138. "format": "short",
  10139. "logBase": 1,
  10140. "show": true
  10141. }
  10142. ],
  10143. "yaxis": {
  10144. "align": false
  10145. }
  10146. },
  10147. {
  10148. "aliasColors": {},
  10149. "bars": false,
  10150. "dashLength": 10,
  10151. "dashes": false,
  10152. "datasource": {
  10153. "uid": "$datasource"
  10154. },
  10155. "fieldConfig": {
  10156. "defaults": {
  10157. "custom": {},
  10158. "links": []
  10159. },
  10160. "overrides": []
  10161. },
  10162. "fill": 1,
  10163. "fillGradient": 0,
  10164. "gridPos": {
  10165. "h": 9,
  10166. "w": 12,
  10167. "x": 12,
  10168. "y": 41
  10169. },
  10170. "hiddenSeries": false,
  10171. "id": 71,
  10172. "legend": {
  10173. "avg": false,
  10174. "current": false,
  10175. "max": false,
  10176. "min": false,
  10177. "show": true,
  10178. "total": false,
  10179. "values": false
  10180. },
  10181. "lines": true,
  10182. "linewidth": 1,
  10183. "links": [],
  10184. "nullPointMode": "connected",
  10185. "options": {
  10186. "alertThreshold": true
  10187. },
  10188. "paceLength": 10,
  10189. "percentage": false,
  10190. "pluginVersion": "7.3.7",
  10191. "pointradius": 5,
  10192. "points": false,
  10193. "renderer": "flot",
  10194. "seriesOverrides": [],
  10195. "spaceLength": 10,
  10196. "stack": false,
  10197. "steppedLine": false,
  10198. "targets": [
  10199. {
  10200. "datasource": {
  10201. "uid": "$datasource"
  10202. },
  10203. "expr": "time()*1000-synapse_event_processing_last_ts{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}",
  10204. "format": "time_series",
  10205. "hide": false,
  10206. "interval": "",
  10207. "intervalFactor": 1,
  10208. "legendFormat": "{{job}}-{{index}} {{name}}",
  10209. "refId": "B"
  10210. }
  10211. ],
  10212. "thresholds": [],
  10213. "timeRegions": [],
  10214. "title": "Age of last processed event",
  10215. "tooltip": {
  10216. "shared": true,
  10217. "sort": 0,
  10218. "value_type": "individual"
  10219. },
  10220. "type": "graph",
  10221. "xaxis": {
  10222. "mode": "time",
  10223. "show": true,
  10224. "values": []
  10225. },
  10226. "yaxes": [
  10227. {
  10228. "format": "ms",
  10229. "logBase": 1,
  10230. "min": "0",
  10231. "show": true
  10232. },
  10233. {
  10234. "format": "short",
  10235. "logBase": 1,
  10236. "show": true
  10237. }
  10238. ],
  10239. "yaxis": {
  10240. "align": false
  10241. }
  10242. },
  10243. {
  10244. "aliasColors": {},
  10245. "bars": false,
  10246. "dashLength": 10,
  10247. "dashes": false,
  10248. "datasource": {
  10249. "uid": "$datasource"
  10250. },
  10251. "fieldConfig": {
  10252. "defaults": {
  10253. "custom": {},
  10254. "links": []
  10255. },
  10256. "overrides": []
  10257. },
  10258. "fill": 1,
  10259. "fillGradient": 0,
  10260. "gridPos": {
  10261. "h": 9,
  10262. "w": 12,
  10263. "x": 0,
  10264. "y": 50
  10265. },
  10266. "hiddenSeries": false,
  10267. "id": 121,
  10268. "interval": "",
  10269. "legend": {
  10270. "avg": false,
  10271. "current": false,
  10272. "max": false,
  10273. "min": false,
  10274. "show": true,
  10275. "total": false,
  10276. "values": false
  10277. },
  10278. "lines": true,
  10279. "linewidth": 1,
  10280. "links": [],
  10281. "nullPointMode": "connected",
  10282. "options": {
  10283. "alertThreshold": true
  10284. },
  10285. "paceLength": 10,
  10286. "percentage": false,
  10287. "pluginVersion": "7.3.7",
  10288. "pointradius": 5,
  10289. "points": false,
  10290. "renderer": "flot",
  10291. "seriesOverrides": [],
  10292. "spaceLength": 10,
  10293. "stack": false,
  10294. "steppedLine": false,
  10295. "targets": [
  10296. {
  10297. "datasource": {
  10298. "uid": "$datasource"
  10299. },
  10300. "expr": "deriv(synapse_event_processing_last_ts{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])/1000 - 1",
  10301. "format": "time_series",
  10302. "hide": false,
  10303. "interval": "",
  10304. "intervalFactor": 1,
  10305. "legendFormat": "{{job}}-{{index}} {{name}}",
  10306. "refId": "B"
  10307. }
  10308. ],
  10309. "thresholds": [],
  10310. "timeRegions": [],
  10311. "title": "Event processing catchup rate",
  10312. "tooltip": {
  10313. "shared": true,
  10314. "sort": 0,
  10315. "value_type": "individual"
  10316. },
  10317. "type": "graph",
  10318. "xaxis": {
  10319. "mode": "time",
  10320. "show": true,
  10321. "values": []
  10322. },
  10323. "yaxes": [
  10324. {
  10325. "format": "none",
  10326. "label": "fallbehind(-) / catchup(+): s/sec",
  10327. "logBase": 1,
  10328. "show": true
  10329. },
  10330. {
  10331. "format": "short",
  10332. "logBase": 1,
  10333. "show": true
  10334. }
  10335. ],
  10336. "yaxis": {
  10337. "align": false
  10338. }
  10339. }
  10340. ],
  10341. "targets": [
  10342. {
  10343. "datasource": {
  10344. "type": "prometheus",
  10345. "uid": "000000001"
  10346. },
  10347. "refId": "A"
  10348. }
  10349. ],
  10350. "title": "Event processing loop positions",
  10351. "type": "row"
  10352. },
  10353. {
  10354. "collapsed": true,
  10355. "datasource": {
  10356. "type": "prometheus",
  10357. "uid": "000000001"
  10358. },
  10359. "gridPos": {
  10360. "h": 1,
  10361. "w": 24,
  10362. "x": 0,
  10363. "y": 41
  10364. },
  10365. "id": 126,
  10366. "panels": [
  10367. {
  10368. "cards": {
  10369. "cardPadding": 0
  10370. },
  10371. "color": {
  10372. "cardColor": "#B877D9",
  10373. "colorScale": "sqrt",
  10374. "colorScheme": "interpolateInferno",
  10375. "exponent": 0.5,
  10376. "min": 0,
  10377. "mode": "opacity"
  10378. },
  10379. "dataFormat": "tsbuckets",
  10380. "datasource": {
  10381. "uid": "$datasource"
  10382. },
  10383. "description": "Colour reflects the number of rooms with the given number of forward extremities, or fewer.\n\nThis is only updated once an hour.",
  10384. "fieldConfig": {
  10385. "defaults": {
  10386. "custom": {}
  10387. },
  10388. "overrides": []
  10389. },
  10390. "gridPos": {
  10391. "h": 8,
  10392. "w": 12,
  10393. "x": 0,
  10394. "y": 42
  10395. },
  10396. "heatmap": {},
  10397. "hideZeroBuckets": true,
  10398. "highlightCards": true,
  10399. "id": 122,
  10400. "legend": {
  10401. "show": true
  10402. },
  10403. "links": [],
  10404. "reverseYBuckets": false,
  10405. "targets": [
  10406. {
  10407. "datasource": {
  10408. "uid": "$datasource"
  10409. },
  10410. "expr": "synapse_forward_extremities_bucket{instance=\"$instance\"} and on (index, instance, job) (synapse_storage_events_persisted_events_total > 0)",
  10411. "format": "heatmap",
  10412. "intervalFactor": 1,
  10413. "legendFormat": "{{le}}",
  10414. "refId": "A"
  10415. }
  10416. ],
  10417. "title": "Number of rooms, by number of forward extremities in room",
  10418. "tooltip": {
  10419. "show": true,
  10420. "showHistogram": true
  10421. },
  10422. "type": "heatmap",
  10423. "xAxis": {
  10424. "show": true
  10425. },
  10426. "yAxis": {
  10427. "decimals": 0,
  10428. "format": "short",
  10429. "logBase": 1,
  10430. "show": true
  10431. },
  10432. "yBucketBound": "auto"
  10433. },
  10434. {
  10435. "aliasColors": {},
  10436. "bars": false,
  10437. "dashLength": 10,
  10438. "dashes": false,
  10439. "datasource": {
  10440. "uid": "$datasource"
  10441. },
  10442. "description": "Number of rooms with the given number of forward extremities or fewer.\n\nThis is only updated once an hour.",
  10443. "fieldConfig": {
  10444. "defaults": {
  10445. "custom": {},
  10446. "links": []
  10447. },
  10448. "overrides": []
  10449. },
  10450. "fill": 0,
  10451. "fillGradient": 0,
  10452. "gridPos": {
  10453. "h": 8,
  10454. "w": 12,
  10455. "x": 12,
  10456. "y": 42
  10457. },
  10458. "hiddenSeries": false,
  10459. "id": 124,
  10460. "interval": "",
  10461. "legend": {
  10462. "avg": false,
  10463. "current": false,
  10464. "max": false,
  10465. "min": false,
  10466. "show": true,
  10467. "total": false,
  10468. "values": false
  10469. },
  10470. "lines": true,
  10471. "linewidth": 1,
  10472. "links": [],
  10473. "nullPointMode": "connected",
  10474. "percentage": false,
  10475. "pluginVersion": "7.1.3",
  10476. "pointradius": 2,
  10477. "points": false,
  10478. "renderer": "flot",
  10479. "seriesOverrides": [],
  10480. "spaceLength": 10,
  10481. "stack": false,
  10482. "steppedLine": false,
  10483. "targets": [
  10484. {
  10485. "datasource": {
  10486. "uid": "$datasource"
  10487. },
  10488. "expr": "synapse_forward_extremities_bucket{instance=\"$instance\"} > 0",
  10489. "format": "heatmap",
  10490. "interval": "",
  10491. "intervalFactor": 1,
  10492. "legendFormat": "{{le}}",
  10493. "refId": "A"
  10494. }
  10495. ],
  10496. "thresholds": [],
  10497. "timeRegions": [],
  10498. "title": "Room counts, by number of extremities",
  10499. "tooltip": {
  10500. "shared": true,
  10501. "sort": 2,
  10502. "value_type": "individual"
  10503. },
  10504. "type": "graph",
  10505. "xaxis": {
  10506. "mode": "time",
  10507. "show": true,
  10508. "values": []
  10509. },
  10510. "yaxes": [
  10511. {
  10512. "format": "none",
  10513. "label": "Number of rooms",
  10514. "logBase": 10,
  10515. "show": true
  10516. },
  10517. {
  10518. "format": "short",
  10519. "logBase": 1,
  10520. "show": false
  10521. }
  10522. ],
  10523. "yaxis": {
  10524. "align": false
  10525. }
  10526. },
  10527. {
  10528. "cards": {
  10529. "cardPadding": 0
  10530. },
  10531. "color": {
  10532. "cardColor": "#5794F2",
  10533. "colorScale": "sqrt",
  10534. "colorScheme": "interpolateInferno",
  10535. "exponent": 0.5,
  10536. "min": 0,
  10537. "mode": "opacity"
  10538. },
  10539. "dataFormat": "tsbuckets",
  10540. "datasource": {
  10541. "uid": "$datasource"
  10542. },
  10543. "description": "Colour reflects the number of events persisted to rooms with the given number of forward extremities, or fewer.",
  10544. "fieldConfig": {
  10545. "defaults": {
  10546. "custom": {}
  10547. },
  10548. "overrides": []
  10549. },
  10550. "gridPos": {
  10551. "h": 8,
  10552. "w": 12,
  10553. "x": 0,
  10554. "y": 50
  10555. },
  10556. "heatmap": {},
  10557. "hideZeroBuckets": true,
  10558. "highlightCards": true,
  10559. "id": 127,
  10560. "legend": {
  10561. "show": true
  10562. },
  10563. "links": [],
  10564. "reverseYBuckets": false,
  10565. "targets": [
  10566. {
  10567. "datasource": {
  10568. "uid": "$datasource"
  10569. },
  10570. "expr": "rate(synapse_storage_events_forward_extremities_persisted_bucket{instance=\"$instance\"}[$bucket_size]) and on (index, instance, job) (synapse_storage_events_persisted_events_total > 0)",
  10571. "format": "heatmap",
  10572. "intervalFactor": 1,
  10573. "legendFormat": "{{le}}",
  10574. "refId": "A"
  10575. }
  10576. ],
  10577. "title": "Events persisted, by number of forward extremities in room (heatmap)",
  10578. "tooltip": {
  10579. "show": true,
  10580. "showHistogram": true
  10581. },
  10582. "type": "heatmap",
  10583. "xAxis": {
  10584. "show": true
  10585. },
  10586. "yAxis": {
  10587. "decimals": 0,
  10588. "format": "short",
  10589. "logBase": 1,
  10590. "show": true
  10591. },
  10592. "yBucketBound": "auto"
  10593. },
  10594. {
  10595. "aliasColors": {},
  10596. "bars": false,
  10597. "dashLength": 10,
  10598. "dashes": false,
  10599. "datasource": {
  10600. "uid": "$datasource"
  10601. },
  10602. "description": "For a given percentage P, the number X where P% of events were persisted to rooms with X forward extremities or fewer.",
  10603. "fieldConfig": {
  10604. "defaults": {
  10605. "custom": {},
  10606. "links": []
  10607. },
  10608. "overrides": []
  10609. },
  10610. "fill": 1,
  10611. "fillGradient": 0,
  10612. "gridPos": {
  10613. "h": 8,
  10614. "w": 12,
  10615. "x": 12,
  10616. "y": 50
  10617. },
  10618. "hiddenSeries": false,
  10619. "id": 128,
  10620. "legend": {
  10621. "avg": false,
  10622. "current": false,
  10623. "max": false,
  10624. "min": false,
  10625. "show": true,
  10626. "total": false,
  10627. "values": false
  10628. },
  10629. "lines": true,
  10630. "linewidth": 1,
  10631. "links": [],
  10632. "nullPointMode": "null",
  10633. "percentage": false,
  10634. "pluginVersion": "7.1.3",
  10635. "pointradius": 2,
  10636. "points": false,
  10637. "renderer": "flot",
  10638. "seriesOverrides": [],
  10639. "spaceLength": 10,
  10640. "stack": false,
  10641. "steppedLine": false,
  10642. "targets": [
  10643. {
  10644. "datasource": {
  10645. "uid": "$datasource"
  10646. },
  10647. "expr": "histogram_quantile(0.5, rate(synapse_storage_events_forward_extremities_persisted_bucket{instance=\"$instance\"}[$bucket_size]) and on (index, instance, job) (synapse_storage_events_persisted_events_total > 0))",
  10648. "format": "time_series",
  10649. "intervalFactor": 1,
  10650. "legendFormat": "50%",
  10651. "refId": "A"
  10652. },
  10653. {
  10654. "datasource": {
  10655. "uid": "$datasource"
  10656. },
  10657. "expr": "histogram_quantile(0.75, rate(synapse_storage_events_forward_extremities_persisted_bucket{instance=\"$instance\"}[$bucket_size]) and on (index, instance, job) (synapse_storage_events_persisted_events_total > 0))",
  10658. "format": "time_series",
  10659. "intervalFactor": 1,
  10660. "legendFormat": "75%",
  10661. "refId": "B"
  10662. },
  10663. {
  10664. "datasource": {
  10665. "uid": "$datasource"
  10666. },
  10667. "expr": "histogram_quantile(0.90, rate(synapse_storage_events_forward_extremities_persisted_bucket{instance=\"$instance\"}[$bucket_size]) and on (index, instance, job) (synapse_storage_events_persisted_events_total > 0))",
  10668. "format": "time_series",
  10669. "intervalFactor": 1,
  10670. "legendFormat": "90%",
  10671. "refId": "C"
  10672. },
  10673. {
  10674. "datasource": {
  10675. "uid": "$datasource"
  10676. },
  10677. "expr": "histogram_quantile(0.99, rate(synapse_storage_events_forward_extremities_persisted_bucket{instance=\"$instance\"}[$bucket_size]) and on (index, instance, job) (synapse_storage_events_persisted_events_total > 0))",
  10678. "format": "time_series",
  10679. "intervalFactor": 1,
  10680. "legendFormat": "99%",
  10681. "refId": "D"
  10682. }
  10683. ],
  10684. "thresholds": [],
  10685. "timeRegions": [],
  10686. "title": "Events persisted, by number of forward extremities in room (quantiles)",
  10687. "tooltip": {
  10688. "shared": true,
  10689. "sort": 0,
  10690. "value_type": "individual"
  10691. },
  10692. "type": "graph",
  10693. "xaxis": {
  10694. "mode": "time",
  10695. "show": true,
  10696. "values": []
  10697. },
  10698. "yaxes": [
  10699. {
  10700. "format": "short",
  10701. "label": "Number of extremities in room",
  10702. "logBase": 1,
  10703. "min": "0",
  10704. "show": true
  10705. },
  10706. {
  10707. "format": "short",
  10708. "logBase": 1,
  10709. "show": true
  10710. }
  10711. ],
  10712. "yaxis": {
  10713. "align": false
  10714. }
  10715. },
  10716. {
  10717. "cards": {
  10718. "cardPadding": 0
  10719. },
  10720. "color": {
  10721. "cardColor": "#FF9830",
  10722. "colorScale": "sqrt",
  10723. "colorScheme": "interpolateInferno",
  10724. "exponent": 0.5,
  10725. "min": 0,
  10726. "mode": "opacity"
  10727. },
  10728. "dataFormat": "tsbuckets",
  10729. "datasource": {
  10730. "uid": "$datasource"
  10731. },
  10732. "description": "Colour reflects the number of events persisted to rooms with the given number of stale forward extremities, or fewer.\n\nStale forward extremities are those that were in the previous set of extremities as well as the new.",
  10733. "fieldConfig": {
  10734. "defaults": {
  10735. "custom": {}
  10736. },
  10737. "overrides": []
  10738. },
  10739. "gridPos": {
  10740. "h": 8,
  10741. "w": 12,
  10742. "x": 0,
  10743. "y": 58
  10744. },
  10745. "heatmap": {},
  10746. "hideZeroBuckets": true,
  10747. "highlightCards": true,
  10748. "id": 129,
  10749. "legend": {
  10750. "show": true
  10751. },
  10752. "links": [],
  10753. "reverseYBuckets": false,
  10754. "targets": [
  10755. {
  10756. "datasource": {
  10757. "uid": "$datasource"
  10758. },
  10759. "expr": "rate(synapse_storage_events_stale_forward_extremities_persisted_bucket{instance=\"$instance\"}[$bucket_size]) and on (index, instance, job) (synapse_storage_events_persisted_events_total > 0)",
  10760. "format": "heatmap",
  10761. "intervalFactor": 1,
  10762. "legendFormat": "{{le}}",
  10763. "refId": "A"
  10764. }
  10765. ],
  10766. "title": "Events persisted, by number of stale forward extremities in room (heatmap)",
  10767. "tooltip": {
  10768. "show": true,
  10769. "showHistogram": true
  10770. },
  10771. "type": "heatmap",
  10772. "xAxis": {
  10773. "show": true
  10774. },
  10775. "yAxis": {
  10776. "decimals": 0,
  10777. "format": "short",
  10778. "logBase": 1,
  10779. "show": true
  10780. },
  10781. "yBucketBound": "auto"
  10782. },
  10783. {
  10784. "aliasColors": {},
  10785. "bars": false,
  10786. "dashLength": 10,
  10787. "dashes": false,
  10788. "datasource": {
  10789. "uid": "$datasource"
  10790. },
  10791. "description": "For given percentage P, the number X where P% of events were persisted to rooms with X stale forward extremities or fewer.\n\nStale forward extremities are those that were in the previous set of extremities as well as the new.",
  10792. "fieldConfig": {
  10793. "defaults": {
  10794. "custom": {},
  10795. "links": []
  10796. },
  10797. "overrides": []
  10798. },
  10799. "fill": 1,
  10800. "fillGradient": 0,
  10801. "gridPos": {
  10802. "h": 8,
  10803. "w": 12,
  10804. "x": 12,
  10805. "y": 58
  10806. },
  10807. "hiddenSeries": false,
  10808. "id": 130,
  10809. "legend": {
  10810. "avg": false,
  10811. "current": false,
  10812. "max": false,
  10813. "min": false,
  10814. "show": true,
  10815. "total": false,
  10816. "values": false
  10817. },
  10818. "lines": true,
  10819. "linewidth": 1,
  10820. "links": [],
  10821. "nullPointMode": "null",
  10822. "percentage": false,
  10823. "pluginVersion": "7.1.3",
  10824. "pointradius": 2,
  10825. "points": false,
  10826. "renderer": "flot",
  10827. "seriesOverrides": [],
  10828. "spaceLength": 10,
  10829. "stack": false,
  10830. "steppedLine": false,
  10831. "targets": [
  10832. {
  10833. "datasource": {
  10834. "uid": "$datasource"
  10835. },
  10836. "expr": "histogram_quantile(0.5, rate(synapse_storage_events_stale_forward_extremities_persisted_bucket{instance=\"$instance\"}[$bucket_size]) and on (index, instance, job) (synapse_storage_events_persisted_events_total > 0))",
  10837. "format": "time_series",
  10838. "intervalFactor": 1,
  10839. "legendFormat": "50%",
  10840. "refId": "A"
  10841. },
  10842. {
  10843. "datasource": {
  10844. "uid": "$datasource"
  10845. },
  10846. "expr": "histogram_quantile(0.75, rate(synapse_storage_events_stale_forward_extremities_persisted_bucket{instance=\"$instance\"}[$bucket_size]) and on (index, instance, job) (synapse_storage_events_persisted_events_total > 0))",
  10847. "format": "time_series",
  10848. "intervalFactor": 1,
  10849. "legendFormat": "75%",
  10850. "refId": "B"
  10851. },
  10852. {
  10853. "datasource": {
  10854. "uid": "$datasource"
  10855. },
  10856. "expr": "histogram_quantile(0.90, rate(synapse_storage_events_stale_forward_extremities_persisted_bucket{instance=\"$instance\"}[$bucket_size]) and on (index, instance, job) (synapse_storage_events_persisted_events_total > 0))",
  10857. "format": "time_series",
  10858. "intervalFactor": 1,
  10859. "legendFormat": "90%",
  10860. "refId": "C"
  10861. },
  10862. {
  10863. "datasource": {
  10864. "uid": "$datasource"
  10865. },
  10866. "expr": "histogram_quantile(0.99, rate(synapse_storage_events_stale_forward_extremities_persisted_bucket{instance=\"$instance\"}[$bucket_size]) and on (index, instance, job) (synapse_storage_events_persisted_events_total > 0))",
  10867. "format": "time_series",
  10868. "intervalFactor": 1,
  10869. "legendFormat": "99%",
  10870. "refId": "D"
  10871. }
  10872. ],
  10873. "thresholds": [],
  10874. "timeRegions": [],
  10875. "title": "Events persisted, by number of stale forward extremities in room (quantiles)",
  10876. "tooltip": {
  10877. "shared": true,
  10878. "sort": 0,
  10879. "value_type": "individual"
  10880. },
  10881. "type": "graph",
  10882. "xaxis": {
  10883. "mode": "time",
  10884. "show": true,
  10885. "values": []
  10886. },
  10887. "yaxes": [
  10888. {
  10889. "format": "short",
  10890. "label": "Number of stale forward extremities in room",
  10891. "logBase": 1,
  10892. "min": "0",
  10893. "show": true
  10894. },
  10895. {
  10896. "format": "short",
  10897. "logBase": 1,
  10898. "show": true
  10899. }
  10900. ],
  10901. "yaxis": {
  10902. "align": false
  10903. }
  10904. },
  10905. {
  10906. "cards": {
  10907. "cardPadding": 0
  10908. },
  10909. "color": {
  10910. "cardColor": "#73BF69",
  10911. "colorScale": "sqrt",
  10912. "colorScheme": "interpolateInferno",
  10913. "exponent": 0.5,
  10914. "min": 0,
  10915. "mode": "opacity"
  10916. },
  10917. "dataFormat": "tsbuckets",
  10918. "datasource": {
  10919. "uid": "$datasource"
  10920. },
  10921. "description": "Colour reflects the number of state resolution operations performed over the given number of state groups, or fewer.",
  10922. "fieldConfig": {
  10923. "defaults": {
  10924. "custom": {}
  10925. },
  10926. "overrides": []
  10927. },
  10928. "gridPos": {
  10929. "h": 8,
  10930. "w": 12,
  10931. "x": 0,
  10932. "y": 66
  10933. },
  10934. "heatmap": {},
  10935. "hideZeroBuckets": true,
  10936. "highlightCards": true,
  10937. "id": 131,
  10938. "legend": {
  10939. "show": true
  10940. },
  10941. "links": [],
  10942. "reverseYBuckets": false,
  10943. "targets": [
  10944. {
  10945. "datasource": {
  10946. "uid": "$datasource"
  10947. },
  10948. "expr": "rate(synapse_state_number_state_groups_in_resolution_bucket{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])",
  10949. "format": "heatmap",
  10950. "interval": "",
  10951. "intervalFactor": 1,
  10952. "legendFormat": "{{le}}",
  10953. "refId": "A"
  10954. }
  10955. ],
  10956. "title": "Number of state resolution performed, by number of state groups involved (heatmap)",
  10957. "tooltip": {
  10958. "show": true,
  10959. "showHistogram": true
  10960. },
  10961. "type": "heatmap",
  10962. "xAxis": {
  10963. "show": true
  10964. },
  10965. "yAxis": {
  10966. "decimals": 0,
  10967. "format": "short",
  10968. "logBase": 1,
  10969. "show": true
  10970. },
  10971. "yBucketBound": "auto"
  10972. },
  10973. {
  10974. "aliasColors": {},
  10975. "bars": false,
  10976. "dashLength": 10,
  10977. "dashes": false,
  10978. "datasource": {
  10979. "uid": "$datasource"
  10980. },
  10981. "description": "For a given percentage P, the number X where P% of state resolution operations took place over X state groups or fewer.",
  10982. "fieldConfig": {
  10983. "defaults": {
  10984. "custom": {},
  10985. "links": []
  10986. },
  10987. "overrides": []
  10988. },
  10989. "fill": 1,
  10990. "fillGradient": 0,
  10991. "gridPos": {
  10992. "h": 8,
  10993. "w": 12,
  10994. "x": 12,
  10995. "y": 66
  10996. },
  10997. "hiddenSeries": false,
  10998. "id": 132,
  10999. "interval": "",
  11000. "legend": {
  11001. "avg": false,
  11002. "current": false,
  11003. "max": false,
  11004. "min": false,
  11005. "show": true,
  11006. "total": false,
  11007. "values": false
  11008. },
  11009. "lines": true,
  11010. "linewidth": 1,
  11011. "links": [],
  11012. "nullPointMode": "null",
  11013. "percentage": false,
  11014. "pluginVersion": "7.1.3",
  11015. "pointradius": 2,
  11016. "points": false,
  11017. "renderer": "flot",
  11018. "seriesOverrides": [],
  11019. "spaceLength": 10,
  11020. "stack": false,
  11021. "steppedLine": false,
  11022. "targets": [
  11023. {
  11024. "datasource": {
  11025. "uid": "$datasource"
  11026. },
  11027. "expr": "histogram_quantile(0.5, rate(synapse_state_number_state_groups_in_resolution_bucket{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size]))",
  11028. "format": "time_series",
  11029. "interval": "",
  11030. "intervalFactor": 1,
  11031. "legendFormat": "50%",
  11032. "refId": "A"
  11033. },
  11034. {
  11035. "datasource": {
  11036. "uid": "$datasource"
  11037. },
  11038. "expr": "histogram_quantile(0.75, rate(synapse_state_number_state_groups_in_resolution_bucket{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size]))",
  11039. "format": "time_series",
  11040. "interval": "",
  11041. "intervalFactor": 1,
  11042. "legendFormat": "75%",
  11043. "refId": "B"
  11044. },
  11045. {
  11046. "datasource": {
  11047. "uid": "$datasource"
  11048. },
  11049. "expr": "histogram_quantile(0.90, rate(synapse_state_number_state_groups_in_resolution_bucket{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size]))",
  11050. "format": "time_series",
  11051. "interval": "",
  11052. "intervalFactor": 1,
  11053. "legendFormat": "90%",
  11054. "refId": "C"
  11055. },
  11056. {
  11057. "datasource": {
  11058. "uid": "$datasource"
  11059. },
  11060. "expr": "histogram_quantile(0.99, rate(synapse_state_number_state_groups_in_resolution_bucket{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size]))",
  11061. "format": "time_series",
  11062. "interval": "",
  11063. "intervalFactor": 1,
  11064. "legendFormat": "99%",
  11065. "refId": "D"
  11066. }
  11067. ],
  11068. "thresholds": [],
  11069. "timeRegions": [],
  11070. "title": "Number of state resolutions performed, by number of state groups involved (quantiles)",
  11071. "tooltip": {
  11072. "shared": true,
  11073. "sort": 0,
  11074. "value_type": "individual"
  11075. },
  11076. "type": "graph",
  11077. "xaxis": {
  11078. "mode": "time",
  11079. "show": true,
  11080. "values": []
  11081. },
  11082. "yaxes": [
  11083. {
  11084. "format": "short",
  11085. "label": "Number of state groups",
  11086. "logBase": 1,
  11087. "min": "0",
  11088. "show": true
  11089. },
  11090. {
  11091. "format": "short",
  11092. "logBase": 1,
  11093. "show": true
  11094. }
  11095. ],
  11096. "yaxis": {
  11097. "align": false
  11098. }
  11099. },
  11100. {
  11101. "aliasColors": {},
  11102. "bars": false,
  11103. "dashLength": 10,
  11104. "dashes": false,
  11105. "datasource": {
  11106. "uid": "$datasource"
  11107. },
  11108. "description": "When we do a state res while persisting events we try and see if we can prune any stale extremities.",
  11109. "fieldConfig": {
  11110. "defaults": {
  11111. "custom": {}
  11112. },
  11113. "overrides": []
  11114. },
  11115. "fill": 1,
  11116. "fillGradient": 0,
  11117. "gridPos": {
  11118. "h": 8,
  11119. "w": 12,
  11120. "x": 0,
  11121. "y": 74
  11122. },
  11123. "hiddenSeries": false,
  11124. "id": 179,
  11125. "legend": {
  11126. "avg": false,
  11127. "current": false,
  11128. "max": false,
  11129. "min": false,
  11130. "show": true,
  11131. "total": false,
  11132. "values": false
  11133. },
  11134. "lines": true,
  11135. "linewidth": 1,
  11136. "nullPointMode": "null",
  11137. "percentage": false,
  11138. "pluginVersion": "7.1.3",
  11139. "pointradius": 2,
  11140. "points": false,
  11141. "renderer": "flot",
  11142. "seriesOverrides": [],
  11143. "spaceLength": 10,
  11144. "stack": false,
  11145. "steppedLine": false,
  11146. "targets": [
  11147. {
  11148. "datasource": {
  11149. "uid": "$datasource"
  11150. },
  11151. "expr": "sum(rate(synapse_storage_events_state_resolutions_during_persistence_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size]))",
  11152. "interval": "",
  11153. "legendFormat": "State res ",
  11154. "refId": "A"
  11155. },
  11156. {
  11157. "datasource": {
  11158. "uid": "$datasource"
  11159. },
  11160. "expr": "sum(rate(synapse_storage_events_potential_times_prune_extremities_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size]))",
  11161. "interval": "",
  11162. "legendFormat": "Potential to prune",
  11163. "refId": "B"
  11164. },
  11165. {
  11166. "datasource": {
  11167. "uid": "$datasource"
  11168. },
  11169. "expr": "sum(rate(synapse_storage_events_times_pruned_extremities_total{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size]))",
  11170. "interval": "",
  11171. "legendFormat": "Pruned",
  11172. "refId": "C"
  11173. }
  11174. ],
  11175. "thresholds": [],
  11176. "timeRegions": [],
  11177. "title": "Stale extremity dropping",
  11178. "tooltip": {
  11179. "shared": true,
  11180. "sort": 0,
  11181. "value_type": "individual"
  11182. },
  11183. "type": "graph",
  11184. "xaxis": {
  11185. "mode": "time",
  11186. "show": true,
  11187. "values": []
  11188. },
  11189. "yaxes": [
  11190. {
  11191. "format": "hertz",
  11192. "logBase": 1,
  11193. "show": true
  11194. },
  11195. {
  11196. "format": "short",
  11197. "logBase": 1,
  11198. "show": true
  11199. }
  11200. ],
  11201. "yaxis": {
  11202. "align": false
  11203. }
  11204. }
  11205. ],
  11206. "targets": [
  11207. {
  11208. "datasource": {
  11209. "type": "prometheus",
  11210. "uid": "000000001"
  11211. },
  11212. "refId": "A"
  11213. }
  11214. ],
  11215. "title": "Extremities",
  11216. "type": "row"
  11217. },
  11218. {
  11219. "collapsed": true,
  11220. "datasource": {
  11221. "type": "prometheus",
  11222. "uid": "000000001"
  11223. },
  11224. "gridPos": {
  11225. "h": 1,
  11226. "w": 24,
  11227. "x": 0,
  11228. "y": 42
  11229. },
  11230. "id": 158,
  11231. "panels": [
  11232. {
  11233. "aliasColors": {},
  11234. "bars": false,
  11235. "dashLength": 10,
  11236. "dashes": false,
  11237. "datasource": {
  11238. "type": "prometheus",
  11239. "uid": "$datasource"
  11240. },
  11241. "fieldConfig": {
  11242. "defaults": {
  11243. "links": []
  11244. },
  11245. "overrides": []
  11246. },
  11247. "fill": 1,
  11248. "fillGradient": 0,
  11249. "gridPos": {
  11250. "h": 8,
  11251. "w": 12,
  11252. "x": 0,
  11253. "y": 43
  11254. },
  11255. "hiddenSeries": false,
  11256. "id": 156,
  11257. "legend": {
  11258. "avg": false,
  11259. "current": false,
  11260. "max": false,
  11261. "min": false,
  11262. "show": true,
  11263. "total": false,
  11264. "values": false
  11265. },
  11266. "lines": true,
  11267. "linewidth": 1,
  11268. "links": [],
  11269. "nullPointMode": "null",
  11270. "options": {
  11271. "alertThreshold": true
  11272. },
  11273. "percentage": false,
  11274. "pluginVersion": "9.2.2",
  11275. "pointradius": 5,
  11276. "points": false,
  11277. "renderer": "flot",
  11278. "seriesOverrides": [
  11279. {
  11280. "$$hashKey": "object:632",
  11281. "alias": "Max",
  11282. "color": "#bf1b00",
  11283. "fill": 0,
  11284. "linewidth": 2
  11285. }
  11286. ],
  11287. "spaceLength": 10,
  11288. "stack": false,
  11289. "steppedLine": false,
  11290. "targets": [
  11291. {
  11292. "datasource": {
  11293. "uid": "$datasource"
  11294. },
  11295. "editorMode": "code",
  11296. "expr": "max(synapse_admin_mau_max{instance=\"$instance\"})",
  11297. "format": "time_series",
  11298. "interval": "",
  11299. "intervalFactor": 1,
  11300. "legendFormat": "Max",
  11301. "range": true,
  11302. "refId": "B"
  11303. },
  11304. {
  11305. "datasource": {
  11306. "type": "prometheus",
  11307. "uid": "$datasource"
  11308. },
  11309. "editorMode": "code",
  11310. "expr": "max(synapse_admin_mau_current{instance=\"$instance\"})",
  11311. "hide": false,
  11312. "legendFormat": "Current",
  11313. "range": true,
  11314. "refId": "C"
  11315. }
  11316. ],
  11317. "thresholds": [],
  11318. "timeRegions": [],
  11319. "title": "MAU Limits",
  11320. "tooltip": {
  11321. "shared": true,
  11322. "sort": 0,
  11323. "value_type": "individual"
  11324. },
  11325. "type": "graph",
  11326. "xaxis": {
  11327. "mode": "time",
  11328. "show": true,
  11329. "values": []
  11330. },
  11331. "yaxes": [
  11332. {
  11333. "$$hashKey": "object:176",
  11334. "format": "short",
  11335. "logBase": 1,
  11336. "min": "0",
  11337. "show": true
  11338. },
  11339. {
  11340. "$$hashKey": "object:177",
  11341. "format": "short",
  11342. "logBase": 1,
  11343. "show": true
  11344. }
  11345. ],
  11346. "yaxis": {
  11347. "align": false
  11348. }
  11349. },
  11350. {
  11351. "aliasColors": {},
  11352. "bars": false,
  11353. "dashLength": 10,
  11354. "dashes": false,
  11355. "datasource": {
  11356. "uid": "$datasource"
  11357. },
  11358. "fill": 1,
  11359. "fillGradient": 0,
  11360. "gridPos": {
  11361. "h": 8,
  11362. "w": 12,
  11363. "x": 12,
  11364. "y": 43
  11365. },
  11366. "hiddenSeries": false,
  11367. "id": 160,
  11368. "legend": {
  11369. "avg": false,
  11370. "current": false,
  11371. "max": false,
  11372. "min": false,
  11373. "show": true,
  11374. "total": false,
  11375. "values": false
  11376. },
  11377. "lines": true,
  11378. "linewidth": 1,
  11379. "nullPointMode": "null",
  11380. "options": {
  11381. "alertThreshold": true
  11382. },
  11383. "percentage": false,
  11384. "pluginVersion": "9.2.2",
  11385. "pointradius": 2,
  11386. "points": false,
  11387. "renderer": "flot",
  11388. "seriesOverrides": [],
  11389. "spaceLength": 10,
  11390. "stack": false,
  11391. "steppedLine": false,
  11392. "targets": [
  11393. {
  11394. "datasource": {
  11395. "uid": "$datasource"
  11396. },
  11397. "expr": "synapse_admin_mau_current_mau_by_service{instance=\"$instance\"}",
  11398. "interval": "",
  11399. "legendFormat": "{{ app_service }}",
  11400. "refId": "A"
  11401. }
  11402. ],
  11403. "thresholds": [],
  11404. "timeRegions": [],
  11405. "title": "MAU by Appservice",
  11406. "tooltip": {
  11407. "shared": true,
  11408. "sort": 0,
  11409. "value_type": "individual"
  11410. },
  11411. "type": "graph",
  11412. "xaxis": {
  11413. "mode": "time",
  11414. "show": true,
  11415. "values": []
  11416. },
  11417. "yaxes": [
  11418. {
  11419. "format": "short",
  11420. "logBase": 1,
  11421. "show": true
  11422. },
  11423. {
  11424. "format": "short",
  11425. "logBase": 1,
  11426. "show": true
  11427. }
  11428. ],
  11429. "yaxis": {
  11430. "align": false
  11431. }
  11432. }
  11433. ],
  11434. "targets": [
  11435. {
  11436. "datasource": {
  11437. "type": "prometheus",
  11438. "uid": "000000001"
  11439. },
  11440. "refId": "A"
  11441. }
  11442. ],
  11443. "title": "MAU",
  11444. "type": "row"
  11445. },
  11446. {
  11447. "collapsed": true,
  11448. "datasource": {
  11449. "type": "prometheus",
  11450. "uid": "000000001"
  11451. },
  11452. "gridPos": {
  11453. "h": 1,
  11454. "w": 24,
  11455. "x": 0,
  11456. "y": 43
  11457. },
  11458. "id": 177,
  11459. "panels": [
  11460. {
  11461. "aliasColors": {},
  11462. "bars": false,
  11463. "dashLength": 10,
  11464. "dashes": false,
  11465. "datasource": {
  11466. "type": "prometheus",
  11467. "uid": "$datasource"
  11468. },
  11469. "fieldConfig": {
  11470. "defaults": {
  11471. "links": []
  11472. },
  11473. "overrides": []
  11474. },
  11475. "fill": 1,
  11476. "fillGradient": 0,
  11477. "gridPos": {
  11478. "h": 7,
  11479. "w": 12,
  11480. "x": 0,
  11481. "y": 44
  11482. },
  11483. "hiddenSeries": false,
  11484. "id": 173,
  11485. "legend": {
  11486. "avg": false,
  11487. "current": false,
  11488. "max": false,
  11489. "min": false,
  11490. "show": true,
  11491. "total": false,
  11492. "values": false
  11493. },
  11494. "lines": true,
  11495. "linewidth": 1,
  11496. "links": [],
  11497. "nullPointMode": "null",
  11498. "options": {
  11499. "alertThreshold": true
  11500. },
  11501. "percentage": false,
  11502. "pluginVersion": "9.2.2",
  11503. "pointradius": 5,
  11504. "points": false,
  11505. "renderer": "flot",
  11506. "seriesOverrides": [],
  11507. "spaceLength": 10,
  11508. "stack": false,
  11509. "steppedLine": false,
  11510. "targets": [
  11511. {
  11512. "datasource": {
  11513. "uid": "$datasource"
  11514. },
  11515. "editorMode": "code",
  11516. "expr": "rate(synapse_notifier_users_woken_by_stream_total{job=\"$job\",index=~\"$index\",instance=\"$instance\"}[$bucket_size])",
  11517. "format": "time_series",
  11518. "hide": false,
  11519. "intervalFactor": 2,
  11520. "legendFormat": "{{stream}} {{index}}",
  11521. "metric": "synapse_notifier",
  11522. "range": true,
  11523. "refId": "A",
  11524. "step": 2
  11525. }
  11526. ],
  11527. "thresholds": [],
  11528. "timeRegions": [],
  11529. "title": "Notifier Streams Woken",
  11530. "tooltip": {
  11531. "shared": true,
  11532. "sort": 2,
  11533. "value_type": "individual"
  11534. },
  11535. "type": "graph",
  11536. "xaxis": {
  11537. "mode": "time",
  11538. "show": true,
  11539. "values": []
  11540. },
  11541. "yaxes": [
  11542. {
  11543. "$$hashKey": "object:734",
  11544. "format": "hertz",
  11545. "logBase": 1,
  11546. "show": true
  11547. },
  11548. {
  11549. "$$hashKey": "object:735",
  11550. "format": "short",
  11551. "logBase": 1,
  11552. "show": true
  11553. }
  11554. ],
  11555. "yaxis": {
  11556. "align": false
  11557. }
  11558. },
  11559. {
  11560. "aliasColors": {},
  11561. "bars": false,
  11562. "dashLength": 10,
  11563. "dashes": false,
  11564. "datasource": {
  11565. "type": "prometheus",
  11566. "uid": "$datasource"
  11567. },
  11568. "fieldConfig": {
  11569. "defaults": {
  11570. "links": []
  11571. },
  11572. "overrides": []
  11573. },
  11574. "fill": 1,
  11575. "fillGradient": 0,
  11576. "gridPos": {
  11577. "h": 7,
  11578. "w": 12,
  11579. "x": 12,
  11580. "y": 44
  11581. },
  11582. "hiddenSeries": false,
  11583. "id": 175,
  11584. "legend": {
  11585. "avg": false,
  11586. "current": false,
  11587. "max": false,
  11588. "min": false,
  11589. "show": true,
  11590. "total": false,
  11591. "values": false
  11592. },
  11593. "lines": true,
  11594. "linewidth": 1,
  11595. "links": [],
  11596. "nullPointMode": "null",
  11597. "options": {
  11598. "alertThreshold": true
  11599. },
  11600. "percentage": false,
  11601. "pluginVersion": "9.2.2",
  11602. "pointradius": 5,
  11603. "points": false,
  11604. "renderer": "flot",
  11605. "seriesOverrides": [],
  11606. "spaceLength": 10,
  11607. "stack": false,
  11608. "steppedLine": false,
  11609. "targets": [
  11610. {
  11611. "datasource": {
  11612. "uid": "$datasource"
  11613. },
  11614. "editorMode": "code",
  11615. "expr": "rate(synapse_handler_presence_get_updates_total{job=~\"$job\",instance=\"$instance\"}[$bucket_size])",
  11616. "format": "time_series",
  11617. "interval": "",
  11618. "intervalFactor": 2,
  11619. "legendFormat": "{{type}} {{index}}",
  11620. "range": true,
  11621. "refId": "A",
  11622. "step": 2
  11623. }
  11624. ],
  11625. "thresholds": [],
  11626. "timeRegions": [],
  11627. "title": "Presence Stream Fetch Type Rates",
  11628. "tooltip": {
  11629. "shared": true,
  11630. "sort": 2,
  11631. "value_type": "individual"
  11632. },
  11633. "type": "graph",
  11634. "xaxis": {
  11635. "mode": "time",
  11636. "show": true,
  11637. "values": []
  11638. },
  11639. "yaxes": [
  11640. {
  11641. "$$hashKey": "object:819",
  11642. "format": "hertz",
  11643. "logBase": 1,
  11644. "min": "0",
  11645. "show": true
  11646. },
  11647. {
  11648. "$$hashKey": "object:820",
  11649. "format": "short",
  11650. "logBase": 1,
  11651. "show": true
  11652. }
  11653. ],
  11654. "yaxis": {
  11655. "align": false
  11656. }
  11657. }
  11658. ],
  11659. "targets": [
  11660. {
  11661. "datasource": {
  11662. "type": "prometheus",
  11663. "uid": "000000001"
  11664. },
  11665. "refId": "A"
  11666. }
  11667. ],
  11668. "title": "Notifier",
  11669. "type": "row"
  11670. },
  11671. {
  11672. "collapsed": true,
  11673. "datasource": {
  11674. "type": "prometheus",
  11675. "uid": "000000001"
  11676. },
  11677. "gridPos": {
  11678. "h": 1,
  11679. "w": 24,
  11680. "x": 0,
  11681. "y": 44
  11682. },
  11683. "id": 170,
  11684. "panels": [
  11685. {
  11686. "aliasColors": {},
  11687. "bars": false,
  11688. "dashLength": 10,
  11689. "dashes": false,
  11690. "datasource": {
  11691. "type": "prometheus",
  11692. "uid": "$datasource"
  11693. },
  11694. "fill": 1,
  11695. "fillGradient": 0,
  11696. "gridPos": {
  11697. "h": 8,
  11698. "w": 12,
  11699. "x": 0,
  11700. "y": 45
  11701. },
  11702. "hiddenSeries": false,
  11703. "id": 168,
  11704. "legend": {
  11705. "avg": false,
  11706. "current": false,
  11707. "max": false,
  11708. "min": false,
  11709. "show": true,
  11710. "total": false,
  11711. "values": false
  11712. },
  11713. "lines": true,
  11714. "linewidth": 1,
  11715. "nullPointMode": "null",
  11716. "options": {
  11717. "alertThreshold": true
  11718. },
  11719. "percentage": false,
  11720. "pluginVersion": "9.2.2",
  11721. "pointradius": 2,
  11722. "points": false,
  11723. "renderer": "flot",
  11724. "seriesOverrides": [],
  11725. "spaceLength": 10,
  11726. "stack": false,
  11727. "steppedLine": false,
  11728. "targets": [
  11729. {
  11730. "datasource": {
  11731. "uid": "$datasource"
  11732. },
  11733. "editorMode": "code",
  11734. "expr": "rate(synapse_appservice_api_sent_events_total{instance=\"$instance\"}[$bucket_size])",
  11735. "interval": "",
  11736. "legendFormat": "{{service}}",
  11737. "range": true,
  11738. "refId": "A"
  11739. }
  11740. ],
  11741. "thresholds": [],
  11742. "timeRegions": [],
  11743. "title": "Sent Events rate",
  11744. "tooltip": {
  11745. "shared": true,
  11746. "sort": 0,
  11747. "value_type": "individual"
  11748. },
  11749. "type": "graph",
  11750. "xaxis": {
  11751. "mode": "time",
  11752. "show": true,
  11753. "values": []
  11754. },
  11755. "yaxes": [
  11756. {
  11757. "$$hashKey": "object:177",
  11758. "format": "hertz",
  11759. "logBase": 1,
  11760. "show": true
  11761. },
  11762. {
  11763. "$$hashKey": "object:178",
  11764. "format": "short",
  11765. "logBase": 1,
  11766. "show": true
  11767. }
  11768. ],
  11769. "yaxis": {
  11770. "align": false
  11771. }
  11772. },
  11773. {
  11774. "aliasColors": {},
  11775. "bars": false,
  11776. "dashLength": 10,
  11777. "dashes": false,
  11778. "datasource": {
  11779. "type": "prometheus",
  11780. "uid": "$datasource"
  11781. },
  11782. "fill": 1,
  11783. "fillGradient": 0,
  11784. "gridPos": {
  11785. "h": 8,
  11786. "w": 12,
  11787. "x": 12,
  11788. "y": 45
  11789. },
  11790. "hiddenSeries": false,
  11791. "id": 171,
  11792. "legend": {
  11793. "avg": false,
  11794. "current": false,
  11795. "max": false,
  11796. "min": false,
  11797. "show": true,
  11798. "total": false,
  11799. "values": false
  11800. },
  11801. "lines": true,
  11802. "linewidth": 1,
  11803. "nullPointMode": "null",
  11804. "options": {
  11805. "alertThreshold": true
  11806. },
  11807. "percentage": false,
  11808. "pluginVersion": "9.2.2",
  11809. "pointradius": 2,
  11810. "points": false,
  11811. "renderer": "flot",
  11812. "seriesOverrides": [],
  11813. "spaceLength": 10,
  11814. "stack": false,
  11815. "steppedLine": false,
  11816. "targets": [
  11817. {
  11818. "datasource": {
  11819. "uid": "$datasource"
  11820. },
  11821. "editorMode": "code",
  11822. "expr": "rate(synapse_appservice_api_sent_transactions_total{instance=\"$instance\"}[$bucket_size])",
  11823. "interval": "",
  11824. "legendFormat": "{{exported_service }} {{ service }}",
  11825. "range": true,
  11826. "refId": "A"
  11827. }
  11828. ],
  11829. "thresholds": [],
  11830. "timeRegions": [],
  11831. "title": "Transactions rate",
  11832. "tooltip": {
  11833. "shared": true,
  11834. "sort": 0,
  11835. "value_type": "individual"
  11836. },
  11837. "type": "graph",
  11838. "xaxis": {
  11839. "mode": "time",
  11840. "show": true,
  11841. "values": []
  11842. },
  11843. "yaxes": [
  11844. {
  11845. "$$hashKey": "object:260",
  11846. "format": "hertz",
  11847. "logBase": 1,
  11848. "show": true
  11849. },
  11850. {
  11851. "$$hashKey": "object:261",
  11852. "format": "short",
  11853. "logBase": 1,
  11854. "show": true
  11855. }
  11856. ],
  11857. "yaxis": {
  11858. "align": false
  11859. }
  11860. }
  11861. ],
  11862. "targets": [
  11863. {
  11864. "datasource": {
  11865. "type": "prometheus",
  11866. "uid": "000000001"
  11867. },
  11868. "refId": "A"
  11869. }
  11870. ],
  11871. "title": "Appservices",
  11872. "type": "row"
  11873. },
  11874. {
  11875. "collapsed": true,
  11876. "datasource": {
  11877. "type": "prometheus",
  11878. "uid": "000000001"
  11879. },
  11880. "gridPos": {
  11881. "h": 1,
  11882. "w": 24,
  11883. "x": 0,
  11884. "y": 45
  11885. },
  11886. "id": 188,
  11887. "panels": [
  11888. {
  11889. "aliasColors": {},
  11890. "bars": false,
  11891. "dashLength": 10,
  11892. "dashes": false,
  11893. "datasource": {
  11894. "uid": "$datasource"
  11895. },
  11896. "fill": 1,
  11897. "fillGradient": 0,
  11898. "gridPos": {
  11899. "h": 8,
  11900. "w": 12,
  11901. "x": 0,
  11902. "y": 46
  11903. },
  11904. "hiddenSeries": false,
  11905. "id": 182,
  11906. "legend": {
  11907. "avg": false,
  11908. "current": false,
  11909. "max": false,
  11910. "min": false,
  11911. "show": true,
  11912. "total": false,
  11913. "values": false
  11914. },
  11915. "lines": true,
  11916. "linewidth": 1,
  11917. "nullPointMode": "null",
  11918. "options": {
  11919. "alertThreshold": true
  11920. },
  11921. "percentage": false,
  11922. "pluginVersion": "9.2.2",
  11923. "pointradius": 2,
  11924. "points": false,
  11925. "renderer": "flot",
  11926. "seriesOverrides": [],
  11927. "spaceLength": 10,
  11928. "stack": false,
  11929. "steppedLine": false,
  11930. "targets": [
  11931. {
  11932. "datasource": {
  11933. "uid": "$datasource"
  11934. },
  11935. "expr": "rate(synapse_handler_presence_notified_presence_total{job=\"$job\",index=~\"$index\",instance=\"$instance\"}[$bucket_size])",
  11936. "interval": "",
  11937. "legendFormat": "Notified",
  11938. "refId": "A"
  11939. },
  11940. {
  11941. "datasource": {
  11942. "uid": "$datasource"
  11943. },
  11944. "expr": "rate(synapse_handler_presence_federation_presence_out_total{job=\"$job\",index=~\"$index\",instance=\"$instance\"}[$bucket_size])",
  11945. "interval": "",
  11946. "legendFormat": "Remote ping",
  11947. "refId": "B"
  11948. },
  11949. {
  11950. "datasource": {
  11951. "uid": "$datasource"
  11952. },
  11953. "expr": "rate(synapse_handler_presence_presence_updates_total{job=\"$job\",index=~\"$index\",instance=\"$instance\"}[$bucket_size])",
  11954. "interval": "",
  11955. "legendFormat": "Total updates",
  11956. "refId": "C"
  11957. },
  11958. {
  11959. "datasource": {
  11960. "uid": "$datasource"
  11961. },
  11962. "expr": "rate(synapse_handler_presence_federation_presence_total{job=\"$job\",index=~\"$index\",instance=\"$instance\"}[$bucket_size])",
  11963. "interval": "",
  11964. "legendFormat": "Remote updates",
  11965. "refId": "D"
  11966. },
  11967. {
  11968. "datasource": {
  11969. "uid": "$datasource"
  11970. },
  11971. "expr": "rate(synapse_handler_presence_bump_active_time_total{job=\"$job\",index=~\"$index\",instance=\"$instance\"}[$bucket_size])",
  11972. "interval": "",
  11973. "legendFormat": "Bump active time",
  11974. "refId": "E"
  11975. }
  11976. ],
  11977. "thresholds": [],
  11978. "timeRegions": [],
  11979. "title": "Presence",
  11980. "tooltip": {
  11981. "shared": true,
  11982. "sort": 2,
  11983. "value_type": "individual"
  11984. },
  11985. "type": "graph",
  11986. "xaxis": {
  11987. "mode": "time",
  11988. "show": true,
  11989. "values": []
  11990. },
  11991. "yaxes": [
  11992. {
  11993. "format": "hertz",
  11994. "logBase": 1,
  11995. "show": true
  11996. },
  11997. {
  11998. "format": "short",
  11999. "logBase": 1,
  12000. "show": true
  12001. }
  12002. ],
  12003. "yaxis": {
  12004. "align": false
  12005. }
  12006. },
  12007. {
  12008. "aliasColors": {},
  12009. "bars": false,
  12010. "dashLength": 10,
  12011. "dashes": false,
  12012. "datasource": {
  12013. "type": "prometheus",
  12014. "uid": "$datasource"
  12015. },
  12016. "fill": 1,
  12017. "fillGradient": 0,
  12018. "gridPos": {
  12019. "h": 8,
  12020. "w": 12,
  12021. "x": 12,
  12022. "y": 46
  12023. },
  12024. "hiddenSeries": false,
  12025. "id": 184,
  12026. "legend": {
  12027. "avg": false,
  12028. "current": false,
  12029. "max": false,
  12030. "min": false,
  12031. "show": true,
  12032. "total": false,
  12033. "values": false
  12034. },
  12035. "lines": true,
  12036. "linewidth": 1,
  12037. "nullPointMode": "null",
  12038. "options": {
  12039. "alertThreshold": true
  12040. },
  12041. "percentage": false,
  12042. "pluginVersion": "9.2.2",
  12043. "pointradius": 2,
  12044. "points": false,
  12045. "renderer": "flot",
  12046. "seriesOverrides": [],
  12047. "spaceLength": 10,
  12048. "stack": false,
  12049. "steppedLine": false,
  12050. "targets": [
  12051. {
  12052. "datasource": {
  12053. "uid": "$datasource"
  12054. },
  12055. "editorMode": "code",
  12056. "expr": "rate(synapse_handler_presence_state_transition_total{job=\"$job\",index=~\"$index\",instance=\"$instance\"}[$bucket_size])",
  12057. "interval": "",
  12058. "legendFormat": "{{from}} -> {{to}}",
  12059. "range": true,
  12060. "refId": "A"
  12061. }
  12062. ],
  12063. "thresholds": [],
  12064. "timeRegions": [],
  12065. "title": "Presence state transitions",
  12066. "tooltip": {
  12067. "shared": true,
  12068. "sort": 2,
  12069. "value_type": "individual"
  12070. },
  12071. "type": "graph",
  12072. "xaxis": {
  12073. "mode": "time",
  12074. "show": true,
  12075. "values": []
  12076. },
  12077. "yaxes": [
  12078. {
  12079. "$$hashKey": "object:1090",
  12080. "format": "hertz",
  12081. "logBase": 1,
  12082. "show": true
  12083. },
  12084. {
  12085. "$$hashKey": "object:1091",
  12086. "format": "short",
  12087. "logBase": 1,
  12088. "show": true
  12089. }
  12090. ],
  12091. "yaxis": {
  12092. "align": false
  12093. }
  12094. },
  12095. {
  12096. "aliasColors": {},
  12097. "bars": false,
  12098. "dashLength": 10,
  12099. "dashes": false,
  12100. "datasource": {
  12101. "type": "prometheus",
  12102. "uid": "$datasource"
  12103. },
  12104. "fill": 1,
  12105. "fillGradient": 0,
  12106. "gridPos": {
  12107. "h": 8,
  12108. "w": 12,
  12109. "x": 0,
  12110. "y": 54
  12111. },
  12112. "hiddenSeries": false,
  12113. "id": 186,
  12114. "legend": {
  12115. "avg": false,
  12116. "current": false,
  12117. "max": false,
  12118. "min": false,
  12119. "show": true,
  12120. "total": false,
  12121. "values": false
  12122. },
  12123. "lines": true,
  12124. "linewidth": 1,
  12125. "nullPointMode": "null",
  12126. "options": {
  12127. "alertThreshold": true
  12128. },
  12129. "percentage": false,
  12130. "pluginVersion": "9.2.2",
  12131. "pointradius": 2,
  12132. "points": false,
  12133. "renderer": "flot",
  12134. "seriesOverrides": [],
  12135. "spaceLength": 10,
  12136. "stack": false,
  12137. "steppedLine": false,
  12138. "targets": [
  12139. {
  12140. "datasource": {
  12141. "uid": "$datasource"
  12142. },
  12143. "editorMode": "code",
  12144. "expr": "rate(synapse_handler_presence_notify_reason_total{job=\"$job\",index=~\"$index\",instance=\"$instance\"}[$bucket_size])",
  12145. "interval": "",
  12146. "legendFormat": "{{reason}}",
  12147. "range": true,
  12148. "refId": "A"
  12149. }
  12150. ],
  12151. "thresholds": [],
  12152. "timeRegions": [],
  12153. "title": "Presence notify reason",
  12154. "tooltip": {
  12155. "shared": true,
  12156. "sort": 2,
  12157. "value_type": "individual"
  12158. },
  12159. "type": "graph",
  12160. "xaxis": {
  12161. "mode": "time",
  12162. "show": true,
  12163. "values": []
  12164. },
  12165. "yaxes": [
  12166. {
  12167. "$$hashKey": "object:165",
  12168. "format": "hertz",
  12169. "logBase": 1,
  12170. "show": true
  12171. },
  12172. {
  12173. "$$hashKey": "object:166",
  12174. "format": "short",
  12175. "logBase": 1,
  12176. "show": true
  12177. }
  12178. ],
  12179. "yaxis": {
  12180. "align": false
  12181. }
  12182. }
  12183. ],
  12184. "targets": [
  12185. {
  12186. "datasource": {
  12187. "type": "prometheus",
  12188. "uid": "000000001"
  12189. },
  12190. "refId": "A"
  12191. }
  12192. ],
  12193. "title": "Presence",
  12194. "type": "row"
  12195. },
  12196. {
  12197. "collapsed": true,
  12198. "datasource": {
  12199. "type": "prometheus",
  12200. "uid": "000000001"
  12201. },
  12202. "gridPos": {
  12203. "h": 1,
  12204. "w": 24,
  12205. "x": 0,
  12206. "y": 46
  12207. },
  12208. "id": 197,
  12209. "panels": [
  12210. {
  12211. "datasource": {
  12212. "type": "prometheus",
  12213. "uid": "$datasource"
  12214. },
  12215. "fieldConfig": {
  12216. "defaults": {
  12217. "color": {
  12218. "mode": "palette-classic"
  12219. },
  12220. "custom": {
  12221. "axisLabel": "",
  12222. "axisPlacement": "auto",
  12223. "barAlignment": 0,
  12224. "drawStyle": "line",
  12225. "fillOpacity": 10,
  12226. "gradientMode": "none",
  12227. "hideFrom": {
  12228. "legend": false,
  12229. "tooltip": false,
  12230. "viz": false
  12231. },
  12232. "lineInterpolation": "linear",
  12233. "lineWidth": 1,
  12234. "pointSize": 5,
  12235. "scaleDistribution": {
  12236. "type": "linear"
  12237. },
  12238. "showPoints": "never",
  12239. "spanNulls": false,
  12240. "stacking": {
  12241. "group": "A",
  12242. "mode": "none"
  12243. },
  12244. "thresholdsStyle": {
  12245. "mode": "off"
  12246. }
  12247. },
  12248. "mappings": [],
  12249. "thresholds": {
  12250. "mode": "absolute",
  12251. "steps": [
  12252. {
  12253. "color": "green"
  12254. },
  12255. {
  12256. "color": "red",
  12257. "value": 80
  12258. }
  12259. ]
  12260. },
  12261. "unit": "hertz"
  12262. },
  12263. "overrides": []
  12264. },
  12265. "gridPos": {
  12266. "h": 8,
  12267. "w": 12,
  12268. "x": 0,
  12269. "y": 46
  12270. },
  12271. "id": 191,
  12272. "options": {
  12273. "legend": {
  12274. "calcs": [],
  12275. "displayMode": "list",
  12276. "placement": "bottom",
  12277. "showLegend": true
  12278. },
  12279. "tooltip": {
  12280. "mode": "multi",
  12281. "sort": "desc"
  12282. }
  12283. },
  12284. "pluginVersion": "9.0.4",
  12285. "targets": [
  12286. {
  12287. "datasource": {
  12288. "uid": "$datasource"
  12289. },
  12290. "editorMode": "code",
  12291. "expr": "rate(synapse_external_cache_set{job=~\"$job\", instance=\"$instance\", index=~\"$index\"}[$bucket_size])",
  12292. "interval": "",
  12293. "legendFormat": "{{ cache_name }} {{job}}-{{ index }}",
  12294. "range": true,
  12295. "refId": "A"
  12296. }
  12297. ],
  12298. "title": "External Cache Set Rate",
  12299. "type": "timeseries"
  12300. },
  12301. {
  12302. "aliasColors": {},
  12303. "bars": false,
  12304. "dashLength": 10,
  12305. "dashes": false,
  12306. "datasource": {
  12307. "type": "prometheus",
  12308. "uid": "$datasource"
  12309. },
  12310. "description": "",
  12311. "fill": 1,
  12312. "fillGradient": 0,
  12313. "gridPos": {
  12314. "h": 8,
  12315. "w": 12,
  12316. "x": 12,
  12317. "y": 46
  12318. },
  12319. "hiddenSeries": false,
  12320. "id": 193,
  12321. "legend": {
  12322. "avg": false,
  12323. "current": false,
  12324. "max": false,
  12325. "min": false,
  12326. "show": true,
  12327. "total": false,
  12328. "values": false
  12329. },
  12330. "lines": true,
  12331. "linewidth": 1,
  12332. "nullPointMode": "null",
  12333. "options": {
  12334. "alertThreshold": true
  12335. },
  12336. "percentage": false,
  12337. "pluginVersion": "9.0.4",
  12338. "pointradius": 2,
  12339. "points": false,
  12340. "renderer": "flot",
  12341. "seriesOverrides": [],
  12342. "spaceLength": 10,
  12343. "stack": false,
  12344. "steppedLine": false,
  12345. "targets": [
  12346. {
  12347. "datasource": {
  12348. "uid": "$datasource"
  12349. },
  12350. "editorMode": "code",
  12351. "expr": "sum without (hit) (rate(synapse_external_cache_get{job=~\"$job\", instance=\"$instance\", index=~\"$index\"}[$bucket_size]))",
  12352. "interval": "",
  12353. "legendFormat": "{{ cache_name }} {{job}}-{{ index }}",
  12354. "range": true,
  12355. "refId": "A"
  12356. }
  12357. ],
  12358. "thresholds": [],
  12359. "timeRegions": [],
  12360. "title": "External Cache Get Rate",
  12361. "tooltip": {
  12362. "shared": true,
  12363. "sort": 2,
  12364. "value_type": "individual"
  12365. },
  12366. "type": "graph",
  12367. "xaxis": {
  12368. "mode": "time",
  12369. "show": true,
  12370. "values": []
  12371. },
  12372. "yaxes": [
  12373. {
  12374. "$$hashKey": "object:390",
  12375. "format": "hertz",
  12376. "logBase": 1,
  12377. "show": true
  12378. },
  12379. {
  12380. "$$hashKey": "object:391",
  12381. "format": "short",
  12382. "logBase": 1,
  12383. "show": true
  12384. }
  12385. ],
  12386. "yaxis": {
  12387. "align": false
  12388. }
  12389. },
  12390. {
  12391. "cards": {
  12392. "cardPadding": -1
  12393. },
  12394. "color": {
  12395. "cardColor": "#b4ff00",
  12396. "colorScale": "sqrt",
  12397. "colorScheme": "interpolateInferno",
  12398. "exponent": 0.5,
  12399. "min": 0,
  12400. "mode": "spectrum"
  12401. },
  12402. "dataFormat": "tsbuckets",
  12403. "datasource": {
  12404. "type": "prometheus",
  12405. "uid": "$datasource"
  12406. },
  12407. "gridPos": {
  12408. "h": 8,
  12409. "w": 12,
  12410. "x": 0,
  12411. "y": 54
  12412. },
  12413. "heatmap": {},
  12414. "hideZeroBuckets": false,
  12415. "highlightCards": true,
  12416. "id": 195,
  12417. "legend": {
  12418. "show": false
  12419. },
  12420. "links": [],
  12421. "reverseYBuckets": false,
  12422. "targets": [
  12423. {
  12424. "datasource": {
  12425. "uid": "$datasource"
  12426. },
  12427. "expr": "sum(rate(synapse_external_cache_response_time_seconds_bucket{index=~\"$index\",instance=\"$instance\",job=~\"$job\"}[$bucket_size])) by (le)",
  12428. "format": "heatmap",
  12429. "instant": false,
  12430. "interval": "",
  12431. "intervalFactor": 1,
  12432. "legendFormat": "{{le}}",
  12433. "refId": "A"
  12434. }
  12435. ],
  12436. "title": "External Cache Response Time",
  12437. "tooltip": {
  12438. "show": true,
  12439. "showHistogram": true
  12440. },
  12441. "tooltipDecimals": 2,
  12442. "type": "heatmap",
  12443. "xAxis": {
  12444. "show": true
  12445. },
  12446. "yAxis": {
  12447. "decimals": 0,
  12448. "format": "s",
  12449. "logBase": 1,
  12450. "show": true
  12451. },
  12452. "yBucketBound": "auto"
  12453. },
  12454. {
  12455. "datasource": {
  12456. "type": "prometheus",
  12457. "uid": "$datasource"
  12458. },
  12459. "description": "",
  12460. "fieldConfig": {
  12461. "defaults": {
  12462. "color": {
  12463. "mode": "palette-classic"
  12464. },
  12465. "custom": {
  12466. "axisLabel": "",
  12467. "axisPlacement": "auto",
  12468. "barAlignment": 0,
  12469. "drawStyle": "line",
  12470. "fillOpacity": 10,
  12471. "gradientMode": "none",
  12472. "hideFrom": {
  12473. "legend": false,
  12474. "tooltip": false,
  12475. "viz": false
  12476. },
  12477. "lineInterpolation": "linear",
  12478. "lineWidth": 1,
  12479. "pointSize": 5,
  12480. "scaleDistribution": {
  12481. "type": "linear"
  12482. },
  12483. "showPoints": "never",
  12484. "spanNulls": false,
  12485. "stacking": {
  12486. "group": "A",
  12487. "mode": "none"
  12488. },
  12489. "thresholdsStyle": {
  12490. "mode": "off"
  12491. }
  12492. },
  12493. "mappings": [],
  12494. "thresholds": {
  12495. "mode": "absolute",
  12496. "steps": [
  12497. {
  12498. "color": "green"
  12499. }
  12500. ]
  12501. },
  12502. "unit": "hertz"
  12503. },
  12504. "overrides": []
  12505. },
  12506. "gridPos": {
  12507. "h": 8,
  12508. "w": 12,
  12509. "x": 12,
  12510. "y": 54
  12511. },
  12512. "id": 223,
  12513. "options": {
  12514. "legend": {
  12515. "calcs": [],
  12516. "displayMode": "list",
  12517. "placement": "bottom",
  12518. "showLegend": true
  12519. },
  12520. "tooltip": {
  12521. "mode": "multi",
  12522. "sort": "desc"
  12523. }
  12524. },
  12525. "pluginVersion": "9.0.4",
  12526. "targets": [
  12527. {
  12528. "datasource": {
  12529. "uid": "$datasource"
  12530. },
  12531. "editorMode": "code",
  12532. "expr": "rate(synapse_external_cache_get{job=~\"$job\", instance=\"$instance\", index=~\"$index\", hit=\"False\"}[$bucket_size])",
  12533. "interval": "",
  12534. "legendFormat": "{{ cache_name }} {{job}}-{{ index }}",
  12535. "range": true,
  12536. "refId": "A"
  12537. }
  12538. ],
  12539. "title": "External Cache Miss Rate",
  12540. "type": "timeseries"
  12541. }
  12542. ],
  12543. "targets": [
  12544. {
  12545. "datasource": {
  12546. "type": "prometheus",
  12547. "uid": "000000001"
  12548. },
  12549. "refId": "A"
  12550. }
  12551. ],
  12552. "title": "External Cache",
  12553. "type": "row"
  12554. }
  12555. ],
  12556. "refresh": false,
  12557. "schemaVersion": 37,
  12558. "style": "dark",
  12559. "tags": [
  12560. "matrix"
  12561. ],
  12562. "templating": {
  12563. "list": [
  12564. {
  12565. "current": {
  12566. "selected": false,
  12567. "text": "default",
  12568. "value": "default"
  12569. },
  12570. "hide": 0,
  12571. "includeAll": false,
  12572. "multi": false,
  12573. "name": "datasource",
  12574. "options": [],
  12575. "query": "prometheus",
  12576. "queryValue": "",
  12577. "refresh": 1,
  12578. "regex": "",
  12579. "skipUrlSync": false,
  12580. "type": "datasource"
  12581. },
  12582. {
  12583. "allFormat": "glob",
  12584. "auto": true,
  12585. "auto_count": 100,
  12586. "auto_min": "30s",
  12587. "current": {
  12588. "selected": false,
  12589. "text": "auto",
  12590. "value": "$__auto_interval_bucket_size"
  12591. },
  12592. "hide": 0,
  12593. "includeAll": false,
  12594. "label": "Bucket Size",
  12595. "multi": false,
  12596. "multiFormat": "glob",
  12597. "name": "bucket_size",
  12598. "options": [
  12599. {
  12600. "selected": true,
  12601. "text": "auto",
  12602. "value": "$__auto_interval_bucket_size"
  12603. },
  12604. {
  12605. "selected": false,
  12606. "text": "30s",
  12607. "value": "30s"
  12608. },
  12609. {
  12610. "selected": false,
  12611. "text": "1m",
  12612. "value": "1m"
  12613. },
  12614. {
  12615. "selected": false,
  12616. "text": "2m",
  12617. "value": "2m"
  12618. },
  12619. {
  12620. "selected": false,
  12621. "text": "5m",
  12622. "value": "5m"
  12623. },
  12624. {
  12625. "selected": false,
  12626. "text": "10m",
  12627. "value": "10m"
  12628. },
  12629. {
  12630. "selected": false,
  12631. "text": "15m",
  12632. "value": "15m"
  12633. }
  12634. ],
  12635. "query": "30s,1m,2m,5m,10m,15m",
  12636. "queryValue": "",
  12637. "refresh": 2,
  12638. "skipUrlSync": false,
  12639. "type": "interval"
  12640. },
  12641. {
  12642. "current": {},
  12643. "datasource": {
  12644. "uid": "$datasource"
  12645. },
  12646. "definition": "",
  12647. "hide": 0,
  12648. "includeAll": false,
  12649. "multi": false,
  12650. "name": "instance",
  12651. "options": [],
  12652. "query": {
  12653. "query": "label_values(synapse_util_metrics_block_ru_utime_seconds_total, instance)",
  12654. "refId": "Prometheus-instance-Variable-Query"
  12655. },
  12656. "refresh": 2,
  12657. "regex": "",
  12658. "skipUrlSync": false,
  12659. "sort": 1,
  12660. "tagValuesQuery": "",
  12661. "tagsQuery": "",
  12662. "type": "query",
  12663. "useTags": false
  12664. },
  12665. {
  12666. "allFormat": "regex wildcard",
  12667. "allValue": "",
  12668. "current": {},
  12669. "datasource": {
  12670. "uid": "$datasource"
  12671. },
  12672. "definition": "",
  12673. "hide": 0,
  12674. "hideLabel": false,
  12675. "includeAll": true,
  12676. "label": "Job",
  12677. "multi": true,
  12678. "multiFormat": "regex values",
  12679. "name": "job",
  12680. "options": [],
  12681. "query": {
  12682. "query": "label_values(synapse_util_metrics_block_ru_utime_seconds_total, job)",
  12683. "refId": "Prometheus-job-Variable-Query"
  12684. },
  12685. "refresh": 2,
  12686. "refresh_on_load": false,
  12687. "regex": "",
  12688. "skipUrlSync": false,
  12689. "sort": 1,
  12690. "tagValuesQuery": "",
  12691. "tagsQuery": "",
  12692. "type": "query",
  12693. "useTags": false
  12694. },
  12695. {
  12696. "allFormat": "regex wildcard",
  12697. "allValue": ".*",
  12698. "current": {},
  12699. "datasource": {
  12700. "uid": "$datasource"
  12701. },
  12702. "definition": "",
  12703. "hide": 0,
  12704. "hideLabel": false,
  12705. "includeAll": true,
  12706. "label": "",
  12707. "multi": true,
  12708. "multiFormat": "regex values",
  12709. "name": "index",
  12710. "options": [],
  12711. "query": {
  12712. "query": "label_values(synapse_util_metrics_block_ru_utime_seconds_total, index)",
  12713. "refId": "Prometheus-index-Variable-Query"
  12714. },
  12715. "refresh": 2,
  12716. "refresh_on_load": false,
  12717. "regex": "",
  12718. "skipUrlSync": false,
  12719. "sort": 3,
  12720. "tagValuesQuery": "",
  12721. "tagsQuery": "",
  12722. "type": "query",
  12723. "useTags": false
  12724. }
  12725. ]
  12726. },
  12727. "time": {
  12728. "from": "now-3h",
  12729. "to": "now"
  12730. },
  12731. "timepicker": {
  12732. "now": true,
  12733. "refresh_intervals": [
  12734. "5s",
  12735. "10s",
  12736. "30s",
  12737. "1m",
  12738. "5m",
  12739. "15m",
  12740. "30m",
  12741. "1h",
  12742. "2h",
  12743. "1d"
  12744. ],
  12745. "time_options": [
  12746. "5m",
  12747. "15m",
  12748. "1h",
  12749. "6h",
  12750. "12h",
  12751. "24h",
  12752. "2d",
  12753. "7d",
  12754. "30d"
  12755. ]
  12756. },
  12757. "timezone": "",
  12758. "title": "Synapse",
  12759. "uid": "000000012",
  12760. "version": 150,
  12761. "weekStart": ""
  12762. }