grafana-dashboard-definitions-nginx.yaml 220 KB

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