diff --git a/group_vars/redis/plain.yml b/group_vars/redis/plain.yml index 99cc2c4..b2cc017 100644 --- a/group_vars/redis/plain.yml +++ b/group_vars/redis/plain.yml @@ -9,3 +9,5 @@ node_exporter_enabled: true redis_bind_interface: 0.0.0.0 redis_maxmemory: '{{ ansible_memtotal_mb * 0.8 | int }}' + +redis_exporter_ip: "{{ ansible_ens10.ipv4.address | default('127.0.0.1') }}" diff --git a/group_vars/stage_dev/plain.yml b/group_vars/stage_dev/plain.yml index 0a45ace..4e8cbcb 100644 --- a/group_vars/stage_dev/plain.yml +++ b/group_vars/stage_dev/plain.yml @@ -82,6 +82,12 @@ shared_service_gitea_ip: "{{ stage_server_infos | list | first | default('-') }}" +shared_service_redis_ip: "{{ stage_server_infos + | selectattr('name', 'match', stage + '-redis-01' ) + | map(attribute='private_ip') + | list + | first + | default('-') }}" shared_service_kube_master_01: "{{ stage_server_infos | selectattr('name', 'match', stage + '-kube-master-01' ) | map(attribute='private_ip') @@ -136,6 +142,7 @@ kube_node_03_hostname: "{{ stage }}-kube-node-03.{{ domain }}" shared_service_iam_hostname: "{{ stage }}-iam-01.{{ domain }}" shared_service_mail_hostname: "{{ stage }}-mail-01.{{ domain }}" shared_service_gitea_hostname: "{{ stage }}-gitea-01.{{ domain }}" +shared_service_redis_hostname: "{{ stage }}-redis-01.{{ domain }}" shared_service_webdav_hostname: "{{ stage }}-webdav-01.{{ domain }}" shared_service_keycloak_hostname: "{{ stage }}-keycloak-01.{{ domain }}" shared_service_docker_registry_hostname: "{{ stage }}-docker-registry-01.{{ domain }}" @@ -197,6 +204,10 @@ shared_service_hosts: [ ip: "{{ shared_service_gitea_ip }}", name: "{{ shared_service_gitea_hostname }}" }, + { + ip: "{{ shared_service_redis_ip }}", + name: "{{ shared_service_redis_hostname }}" + }, { ip: "{{ shared_service_kube_master_01 }}", name: "{{ kube_master_01_hostname }}" diff --git a/group_vars/stage_dev/vault.yml b/group_vars/stage_dev/vault.yml index 1f1cac1..5a63ddf 100644 --- a/group_vars/stage_dev/vault.yml +++ b/group_vars/stage_dev/vault.yml @@ -1,66 +1,70 @@ $ANSIBLE_VAULT;1.1;AES256 -32333333386332636232343134316634646533663132366165373935393961653235353630343466 -3861316631356236623163333834393932376661303631640a336134353963316430396432376364 -62643135376161316439383564343536393537363231313537613133636338356562653134613333 -6132393566303537340a303639353565633962383466623639323932346665663736653066653666 -63643965396639626165646231656665643963613966376564366239396630646231363939393838 -62626334383038396135313866636538613565306530626365613534366136346433643333613133 -33353365353731623362393965363137316438643264623139343166363865353438636234373365 -64636237326462646633633533636136303635316530313430303565323433386638666638613935 -61313938396135323435366237623332636237336330666162323534623235666436316132643763 -31383438313739383431396636613663393362346631326233653461336433616533643035363539 -66366137303631656630316166373935353131333265353566313936336530323836323837383439 -61316438363238396435343464323763393431313662656133623035393833363463346262383561 -66656233343435363830306634313838363639306434343335303962356463363430653163666139 -35323230623732653830353737653465616166313462633861393232663036363862643335353264 -31383465306261383236313336376265346665393263303831623934613863626564306463656537 -63303738626661666532386135666362303762353836333663303264313166653638373031393731 -62353466386631666537346537363436353138373330323432303335386231613863633036376134 -38346561663432316631616137663364353135393734336233663562383864633863343738356162 -32656138646161383230643464383734633033346561386239633863353637363466363562653863 -63333761363339346438613331663462303963303935366234356263663362616132326332326363 -31363832666238313762386562346362646137336163346261613736313536333263383032376232 -37653434633263313161313961356636343664653332373337623832323237323066356233613836 -30643765306463363033313732353834363137363034303632386636346339376539383933353335 -31316530356365383531366261663065303235336138303330306237653533313439356662376434 -66363062303533643162363865663566356164336531376564663161623634366137303665376539 -35356461356138333732643537346431383862353466316434393533326366363431313633396239 -38303438333636626631616662616137323634336237626331373264643334343466646335626462 -38383663613131346538323639376165373864363061336330383338653866663530313662393337 -39303632303037303363343436386461613236383966396666323437376131343361663731383761 -33383763646133613262666433643763633134376433663166666630363338613336346161356235 -31323564333263613435636535356433643330613566303963616231353263636132343139643165 -34373530383166386439626366643434386639333430376239326263623562336364353738613639 -65383937643231323264326433643739303733663439393065336234653932386531636439326637 -31613432396536623635386636356666306535636334613537363761356135393034663034346462 -37306539386230353932366234663562346134333636653139623133393839653438396630646363 -63343331666262363131663038613634303861366563376430343764613734303538646130633765 -63346235393031333065653230373265346164373138646136653330353566643762643166383730 -64643561633334353539326664306334666134356261346337386263613831363539323332323030 -35356363373836646133363039303864626566653163383666363066666266613830336539663461 -34313139306266633137376463313633326232643363653835386136613463343766333061333263 -34366431663930343837353731333761323736396337343564643136323430373265623138393663 -32653666613065306430353063383334653164363064353530333439653933653236643466306663 -35643861633961373431386134333639313034383938346464383539323762323339663465643930 -65393932366165616230316164653561646264643461316231313561616435623535373834323163 -66623537373330643137643532653332386532353762646565383532636261316334316334313161 -30613539353561653464666236656364393231326362396137323262346361386563376466316662 -63643162386139393961633433336566663638613132323965616466343962646534366363363263 -65373432326239336337383566633462646535653338323461613261353062623934373432653163 -30636264623737313261303231353331306665633766613636336264623161643239333533666565 -32653064373663613635303135316430633132363861643833383833386332396632363134353664 -63326130363961363466326231313663343438306664613330333861383730363234633162363534 -39616136653836393264613765313765613562663937633033323962376665383138623333376137 -34313335653166313061386334636166346565363066376232363532363139353033613737303434 -62626632343431313430656234393136663166373533343730616265396264383635613563626532 -64343231303138326635636436633631643862333938663335653234633336386366366237393466 -34326233656439323466333438373237333161386165303664383433363634636236356165633031 -31343038336334303231626434623464666630316335323330623461656334653337343435346566 -39303464653730333165353534656361646231396535363562343936666462313036313065373064 -36323039396366343661336362353337653863363139323461636238653633303632383336636263 -65663639666363616161643333623631363339613335653264663031336164366139663932613333 -61333731313466313039356566353065363437306334333037393666626436373132373835613833 -36633263333732383164356463636239633431316661396261306339666665333164346538313136 -36366432303339373836343131306337316339343334336365336633376537353665323934383335 -34613538616163626333633761343535653739303534386538656134376266303131343931663833 -63336632646530313966633239313834636562656437376230336463383131323238 +32306134373236346231396562396163656363356664636430633438663366383963303134356532 +3363393762333138656238336366623065326539306663650a616566343765386464323162316138 +65613934386161366436616338613265636237323137386263633234333061653936663635303334 +3336386637356165630a613737323630303562393030656566643633323266663836393632653737 +31343736303463386131306433643336623434353631626130336233663430306366393732386138 +62653337303338633162333663626266653461303736666261356639646533353438343539343466 +64313139373163343039666133386238396362336466653762613136613333303265366236393166 +62663362333235323139393334663266386230323534396339373432353031366466636637316533 +64376330373336306662303433393465336465666332653330323539316665356335343738303133 +66653938383462383432366364633938373164643035613964303939666237323163363862646538 +37626336316339366162636639646263633334333562346339666430616134306561616636646264 +33356665383636623138393033643263636432636331373266346138616564353631313262373833 +63313031643433323634323661666435316362346466636333383166323137646436663265396333 +33343264313061646134313963396635373232643966313263616536393065326333366162663836 +32366666633739643366633364333064313232613537653034653734646338353062613335353262 +36663131633835363337343236343432303335623861313965326433363964373361373536623166 +39313265363039303038323837376533356236333264303839363361623131343466623861656137 +32646631653238366533353231636538313135633362376363323833303831356137326530363031 +62316636646332323130373065323238306533666235636230326431333432636463336433363030 +34323438613833633632353965386138323739626163646431653039313364306161633962356133 +31346131383166393038303466376138343764656132336666613536326364636533353162313861 +37323161343832346333396361333363383938346632333836306336353337633062336561336631 +39353537313366306234363064333932646363316461653339653765333037636263343732343432 +30656536313862643435623335393262623762353635646638333532613065656664386634346436 +62643337663832396463636335376263373938623766383564323937613534363462653434316631 +30393764386335646134366566343436646462316363323539373764333437373138636231613939 +37306161316139653866336335386639616330636336616237333664613234663031383333383132 +62373039346632623766313739393666643531306665336337303363323461376136656339336463 +31613830373039316564333731333466623465323865663339653134643337313564613064323264 +65623863633138313866376230303964383631303938636134323365316537356233646439373361 +32613430343639363938373833646661643831326333633235643463336439663833363165656134 +33616563393438346230623234616332643238653735313362373831356239613433616537633939 +31653161643966313363363638383731333833366564303661353362636534656336303131643663 +66663631333633343733393564326265386132616638333465343236313562343036646261303131 +65306231386330653731633430363261623765666163633563326438623031616265303736656539 +31373564633031363162333336343339343661636663343666306163653763356261383164623264 +63323864613032306364326136636531363639663830396535313234656461613736353737623733 +31393361313362386437663833656237613136343038383231336436363531343562356263386233 +32373963363762616331363733303965306462646134303163626238303266336439306539613764 +62326566386162663133333137613666653239633834363433313966343537323536323039666538 +37666639646337336466326137306233363632323734363533373834323761393934353733396232 +31646535373666333861376266303031393230666164353965383765623333366537656466373062 +33336237343237393362333539326466383464623761666432626362353864393063356639356366 +63313234626533643430323530363265646433613436316662356463326533653537306330616638 +34323330326434643439356632376432366363326163316332363139633965653063626361616235 +33303934353165653735653736313539643231323735633365666165663438303462353939633238 +30323564346336393531663562623766323661333333616464393563633764313837376263353038 +38636235633834666430626439313434393233303339663330656534333734663265353239656130 +62323933336464666235303266343561333131373131353162316566383036323130653063646234 +32313938306638333736646537333462633539633236646134343134613662643730323733663230 +64613436633265316663386262333465313732663333393933636461303430383566383962616166 +65396566663432623837363461343436313466356366386530663966393031666336343063373162 +38373037336237626436336437376339396664646461336439336363666137613136646266336365 +35346362366166383634333430376465636361643638636363343062626363623132663233636231 +63333732653462623164396133343930313163636661346436633564623030633163356439393762 +33333330663931303437646234646134303465616365313336363335363363366137336163643939 +62306462323764346632343361326462383033313261666435626434326236396164356464326333 +65633138653735353336333530396236636630343839626330643961663666336536396165653638 +64623238623636363430636635393630663338646130333436656638623038626331643136323333 +35343638666636343537356365646136346337396635626333666436383465343630306135363261 +39633739326537393161663234333636353538633831303232366466366234626163666333643034 +61653432616366633536636138346636613064633861386661613039396338623736663330333033 +38643432396130626136656466633936626630333837636264356466613963333166326466633266 +31393032316136366562623766336138653730626136316138663361333732623838366434363363 +63656362336530646463373761613661613961623836663332316561326337653165343562633766 +37623833613634346531613432353266313936623563373461663438396233396437386339613732 +33636165313730393637333334396531383164363132303761623361666261323664323762313864 +63393136646632653935393634653365386465373865303234613339633161383037393066343166 +3266 diff --git a/group_vars/stage_qa/plain.yml b/group_vars/stage_qa/plain.yml index f835cc1..6c234c9 100644 --- a/group_vars/stage_qa/plain.yml +++ b/group_vars/stage_qa/plain.yml @@ -82,6 +82,12 @@ shared_service_gitea_ip: "{{ stage_server_infos | list | first | default('-') }}" +shared_service_redis_ip: "{{ stage_server_infos + | selectattr('name', 'match', stage + '-redis-01' ) + | map(attribute='private_ip') + | list + | first + | default('-') }}" shared_service_kube_master_01: "{{ stage_server_infos | selectattr('name', 'match', stage + '-kube-master-01' ) | map(attribute='private_ip') @@ -136,6 +142,7 @@ kube_node_03_hostname: "{{ stage }}-kube-node-03.{{ domain }}" shared_service_iam_hostname: "{{ stage }}-iam-01.{{ domain }}" shared_service_mail_hostname: "{{ stage }}-mail-01.{{ domain }}" shared_service_gitea_hostname: "{{ stage }}-gitea-01.{{ domain }}" +shared_service_redis_hostname: "{{ stage }}-redis-01.{{ domain }}" shared_service_webdav_hostname: "{{ stage }}-webdav-01.{{ domain }}" shared_service_keycloak_hostname: "{{ stage }}-keycloak-01.{{ domain }}" shared_service_docker_registry_hostname: "{{ stage }}-docker-registry-01.{{ domain }}" @@ -197,6 +204,10 @@ shared_service_hosts: [ ip: "{{ shared_service_gitea_ip }}", name: "{{ shared_service_gitea_hostname }}" }, + { + ip: "{{ shared_service_redis_ip }}", + name: "{{ shared_service_redis_hostname }}" + }, { ip: "{{ shared_service_kube_master_01 }}", name: "{{ kube_master_01_hostname }}" diff --git a/group_vars/stage_qa/vault.yml b/group_vars/stage_qa/vault.yml index dae9084..a1ba280 100644 --- a/group_vars/stage_qa/vault.yml +++ b/group_vars/stage_qa/vault.yml @@ -1,80 +1,82 @@ $ANSIBLE_VAULT;1.1;AES256 -39613937316133666563313630373032306334623835623165663463323232666536663933616338 -6438623033653738646534646233333931616536383566390a643638663736373034363237366132 -33653130376334626232303066653736353238353231303466633239373432356461313264343165 -3831353362386566360a393433376238636635656664393031376564393136663439376263613631 -66346134626664616664326534343363396335303465366130663034313933343936346261323962 -34346338623239363165313039613764396661386662353664353331626138376136613231383936 -31336335393535363039343030623134353533306333633433356166383339353963366330333034 -62643236396561303365366637316663326231633234653865666565643232363730333534363235 -66653439333435663061383461343663386266366434343235333138613234646634383137383131 -62316330373630353661373635306435646236613461366235376433666661353561313135303831 -34376135343235663330373031623963626564616664353637656465646131643332383461303665 -64626265646630316135623635383662303863363536623636636165636537643033346265323636 -38313237353931653834653432616634363535383966643235613232306134336432383134306432 -38623864333830663632613361616637393539326262663461336339363766643437346265353638 -63363730343039323531313530386439313137663530333533653236616136343064353166626238 -30386536653037396363393265306332316630663561666130313038316566383866363038656266 -66633932323630363363343330613163663234376131636335646661363864333937336133303366 -65323563623562653134663034323663663461356466633832303732623337383433616439613565 -66643963353836326534303533363433633330393965356535383132333838343365366362386537 -39656539373633613833313235373065323432333537623234333430306635633038623833656135 -63393164666635396264653439313461316235633532643032363330353561616563386661646366 -35326438633836393564643439653031313861306536373137626632393934303664646565363164 -37616533633564313536376236353630373931653462623637333530616434653636366262356461 -34333465616434313633343338633039386432613932313936326136383564626264373334373932 -64343632353465366133633765386361666530323130366463323031313339643031333365663037 -62383237366330663761663163343261626237366565396361633130626637666161613535373665 -32666363353030663363366234326632373364303934613364376631636537313833633062353166 -64363138343534333163666131663833666266363165363363653064616566663633663735343338 -65623931303364336366663730326466613338636135616532383237623532643061343762666232 -38373139643331343531356563306332313039353931346262376232316162356238666533306466 -38313534373065336231356635646432323462376333653666333739643138323933366137326561 -34386232613732323832633836306539336664386133323634636163363665313263393232333662 -30643836363835653838303031393839393333356261326435316130356430393238373761306237 -36653138313630336464386434343335373531633463623162343331653761323631363433616166 -34613962336438373963386562666330633762356236653864303663633230323439653562366634 -35623437373538356334363237393330313265653766326539623731383535323139383835373532 -36313531376335323036323935343062353763616332316434663036666531396234343230336430 -66363464396337336139326662653131326665353630333430653063653937326436376431663463 -34663366393464356538663230663331303765326533393330323038333334333536366164386164 -65363537656238623935353762343265333262336662376130653865386366613339356436383831 -63303434396463633932396362386438633633666636653332303734316566313061306561613866 -31386662353534363462303066613435383864373835656331666363663765316131376335366636 -64313062613966323239626338353131386565663534323432353462306235663934343364353264 -30373066653461666131373630633037613830316239613064336136386133373332363635623633 -31373838393632353963613330663361336133326461333237386335393234666438666534623766 -36613431646435393664346531616463623638383563303561663637343939643635396636393734 -37326364623530336236643833646635633038656137336635386561633362376635306362623261 -34313861343862326462333532303935383432623636363637366361363762643738363233656439 -32343966376536346234656334366438633164376434666330313965626539366265656362373662 -64323735333166356466376534303132303731356439326133666166366230373231623335386130 -61623663636166323438303163386365333233383663363935373963383033313034346162653635 -39643264353733383834376235386264633037613736653363643366646535343761366662376334 -34383162393763643736343839333237393862626665613737333734356337313263623335373261 -66333666353631376135616266306436343461393038336661353265633139663439323032646439 -65633738303361303263666165333238646366326464373737653037336232663763363665336437 -38633432623637623437666162616339376334616235343364363933616130656364303839343266 -30303735383138396635663938666637366132636661383337393637616335666536303135653334 -32323535613566336630356232393035626538666664383962373465646466666132396564306130 -32323565316137366333303233366532656531663761653438383639383039313163366339656132 -31646261306532646335343935626264346339616464353262613062366665613738623033646334 -35333662623939383561383561643737656237393734643465613331393661373732343330363336 -62613231383431636434323863313038656362386331313764613164366333306264616332323137 -34373135613861386165646532386661616164663964373437333939343261626233656463323965 -63636663323338623738303266636336636431636333396161666535383937373330386535643335 -64366332396530363737663736343361666538353663663061303031353734616431326438636635 -39306366353736623961656233626331613066333538663965343035383066353762643633393039 -39373537373636363336393130316437353863626534326461303462386633646535326132396433 -64343361396433626536663364613033653036636366333232656561323663666337663961323164 -36623139666432383566363234633530303831396263306664626330336235363738373731626637 -37343261363734363531373231393063376130383233346365373837323463386463373632306238 -37393239633839376663656537303639646530373138343038653038303266623338323430323465 -64386637363038313635616531336365383433646565643364386630373133323362646332353763 -30346366363531363963336338633332396265353936643931633032633263393236616166346261 -38356163393561323536306264356137353062613532653663393831373039663137663965346139 -66633231346435333262366134613634666161626663306361623939353837646563303166353165 -66636437396439666235646631643130303865336637383838636530396538353736326163336535 -64346630393966346139326333356131313937376431313464656361663061323830393565373538 -62623561363735626632653933376263396331653534336161643863313664633135303033653261 -376462633038633833653833313437313631 +35393237356663343935636433353239373533633162393730386361336536323136653362653934 +3735336130373233386136306139326562363736383962610a363466666331313032396237663065 +64363765383530643661626365303134323036613663353331323663333833356235316264653632 +3433613932346236350a303236383638666435306164333630376138396235616561626433336265 +37653831366464373961393738656634653664653438333764363461653761373935393334313138 +35333236663037303735363466353832383762386432623761306463613330626630663162616335 +32656530326664666131633766663537356165343331626661646430336266653161626136323836 +30353230646237396362333464653830346364353062633364353964353161393030336633626535 +31313231636437343331363666656632386231383239653336313237376332323431316663383463 +64343963323962633632396463393536356563616630353139623464343635373534313634643437 +63353233343338346232356165643532366534636336656564393265323865396162663462663636 +30313066626437393437356266623535393565363536616138366537636433646439623632356366 +63336263356335356561643032623131386432316564343137333439336138643437623563636433 +64373337646231333263626665333837623639613136393738353932663338323435333138656365 +38333265643636353462383832613231316438306165306162346134336637613839636362653462 +63313238326461326237623234383437353036646633646133626239653432363931623538633838 +62393162336534316536353863393363313263316534643331636130373430656264346134633535 +31646439393662656261303865353566303563363362653532343637653862646565303833366265 +63336362306335333465336634613839336665383136616638663465383235306565366235626636 +35303430633335323039643435383861363431663539396438393666333131353533616135636539 +61623637333163336238653066393132623035383036396165316533363361386263386463643133 +37626664356136646234613133636535333162623738303532616436336337643836653931383563 +32663733333531663637633932306637373235333332666461653262656135313636396530626362 +62643132623562323430643335313036623236396330353635656165623036653534326438373431 +61666163336364613730306432303762373236653336393262333632613464363934313666663037 +63373739386132633734633363643633306233626134613832303263346430366363306233663664 +30383231653332623637613032626663646165643538666330306234653138376337393165363131 +36313335626437353132323164616331393139303536356336353234383437366537303037346339 +63366239653136363466343164333265303661313838663163346365353431633264643135313137 +31656137643936646439336365343033393231343531623730323961393961616362636531613738 +64633333646637633661646636366230396438333837303830663531656433323132613431346533 +32353939383234336534316433336462616639316562383764323563393932376332613934666165 +39373238663036306434666462333033383530393735643230376235303336376434356465363762 +62383939613036353461393830346433376466373964303661333033356131643531633834353539 +63336363343339343938313836336330633363613663306632333162306566323734393330316138 +37396235666266343436633536663939653530666333663962613738303737353033626638373436 +34343462366564363134656334636132326565633530303437303439386162653830313862343264 +35623731653561356466343763376638356336323934613137306530333337666238336635356134 +38623665663761353239306632366236656637613830616464653039323733373537613232323234 +31326531326134633263303231353465363762613035313966656630613037333333333031333037 +39623461326133316632386265646432383134326137666363663938643662373065646166333030 +61343962353563316630636431626664383066363937356138376561333133323632633934383465 +62336230653936303765326135643561386362613738333137653662363165323238383433653232 +65346262663264356232623864346661623639373738663834396563346361383462356533643630 +30373365633265323632346535353066373539663335626261336636656232656633333463386631 +34653961613463376637656336303365623433343636386530306339343131313839383832353033 +30343339393865323230663866623662326138623962353132346633663233666431626166636239 +30636163663463316463663765353233663436376138306231386431643661626131363531366232 +30353433646330626534363739303733653663653762313165313038663630396433643233373032 +32643137323864623135633439383636366133306436653137343435323732636430303066326362 +66393163643234303934376632336232343638396466653439313232613562613836663530333362 +66663661326463663036353439636263636638623037316133336538633863353866353336356461 +36336436333235323766633936393261313462363138393435613865343630336264613032633865 +63306365666563653539616237616438613664623566333639316565383664653864363836346438 +33356439613763313435356661323332343137323637623631333037636336316633623935323738 +31333536346538333635623462363435393537303638303065346361363433633162303330363637 +32626563333131666334356537373130373363656531303262623030646135646634386635373534 +62303964633166336133306663333931323064613532623035643433633664646239663038376565 +39643162366233303233326363653733623862393239616463323530316134653432633036653734 +62393838363737316566303963306536633531316563373435353933336563353330613732346638 +63313236393233346537313766333135623534366566383962613066373965663732613534313764 +37633537383163613431353563646663626536643632656466653939363233623531396533353134 +64386262333361663863376533396537633234636362303637366532643137393262373065316530 +37643832366361313035376362346139616363343365656666323263336466653138663636306138 +39316135653636393430636235643236653761326136383132393634353736636563353434633831 +32396638336237326138643832363561643235396630633862653762333962623231386162383134 +36326466383465333532646465643936356166323136333632656566636633366233353035666362 +34616561353963663239393635346364626434306438386234383538623737336136303765356236 +65333465616161353963663637343462653031643961393031343930386339656563636363383033 +34656461316666316162613930663338303932613762613430343633396232666266326634633362 +37623335356362316335323164376230373131626539386562643436623266653561656362313834 +31643765373839666262633036343331356563323830363161346439656665643862613161396333 +31633837326264626662396566356639623336383438363838393361343263373139313332353333 +30346237633830306361396565373866376534313233613339353830643666323738306664656330 +39316132353130396131663062366133326361646533333233333239313663633933343136656166 +62663334353531333132656432656136356665616237643036653766353466613438333238653266 +61363537373433653638363037663837326337363730643338613061633735663162316663333937 +39353830623132303633373238663435366164306537363163313262613938393135303962373232 +37366239373030306633386430653962333862653732636666613866363365326566376332306431 +36396331343639653431623965333263323365663432633036386539343961633433363938373665 +31653138613861663033666234623030653635363831346365323765663766306639 diff --git a/templates/prometheus/config/grafana/provisioning/dashboards/Redis.json b/templates/prometheus/config/grafana/provisioning/dashboards/Redis.json new file mode 100644 index 0000000..da46223 --- /dev/null +++ b/templates/prometheus/config/grafana/provisioning/dashboards/Redis.json @@ -0,0 +1,1315 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + } + ] + }, + "description": "Redis Dashboard for Prometheus Redis ", + "editable": true, + "gnetId": 10819, + "graphTooltip": 0, + "id": 13, + "iteration": 1637686234590, + "links": [], + "panels": [ + { + "cacheTimeout": null, + "columns": [ + { + "text": "Current", + "value": "current" + } + ], + "datasource": "Prometheus", + "fontSize": "100%", + "gridPos": { + "h": 7, + "w": 4, + "x": 0, + "y": 0 + }, + "id": 9, + "links": [], + "pageSize": null, + "scroll": true, + "showHeader": true, + "sort": { + "col": 0, + "desc": true + }, + "styles": [ + { + "alias": "", + "align": "auto", + "colorMode": null, + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "", + "thresholds": [], + "type": "number", + "unit": "short" + }, + { + "alias": "Uptime", + "align": "auto", + "colorMode": "cell", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "decimals": 2, + "link": false, + "pattern": "/.*/", + "thresholds": [ + "600", + "1200" + ], + "type": "number", + "unit": "s" + } + ], + "targets": [ + { + "expr": "redis_uptime_in_seconds{release=~\"$release\"}", + "format": "time_series", + "interval": "", + "intervalFactor": 2, + "legendFormat": "{{ instance }}", + "metric": "", + "refId": "A", + "step": 1800 + } + ], + "title": "Uptime", + "transform": "timeseries_aggregations", + "type": "table-old" + }, + { + "cacheTimeout": null, + "datasource": "Prometheus", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "max": 100, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(50, 172, 45, 0.97)", + "value": null + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 80 + }, + { + "color": "rgba(245, 54, 54, 0.9)", + "value": 95 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 4, + "x": 4, + "y": 0 + }, + "hideTimeOverride": true, + "id": 11, + "interval": null, + "links": [], + "maxDataPoints": 100, + "options": { + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true, + "text": {} + }, + "pluginVersion": "8.1.2", + "targets": [ + { + "expr": "100 * (redis_memory_used_bytes{instance=~\"$instance\"} / redis_memory_max_bytes{instance=~\"$instance\"} )", + "format": "time_series", + "intervalFactor": 2, + "legendFormat": "", + "metric": "", + "refId": "A", + "step": 2 + } + ], + "timeFrom": "1m", + "timeShift": null, + "title": "Memory Usage", + "type": "gauge" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Prometheus", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 8, + "x": 8, + "y": 0 + }, + "hiddenSeries": false, + "id": 2, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.1.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "rate(redis_commands_processed_total{instance=~\"$instance\"}[1m])", + "format": "time_series", + "interval": "", + "intervalFactor": 2, + "legendFormat": "{{ instance }}", + "metric": "A", + "refId": "A", + "step": 240, + "target": "" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Commands Executed / sec", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Prometheus", + "decimals": 2, + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 8, + "x": 16, + "y": 0 + }, + "hiddenSeries": false, + "id": 1, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "options": { + "alertThreshold": true + }, + "percentage": true, + "pluginVersion": "8.1.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "irate(redis_keyspace_hits_total{instance=~\"$instance\"}[5m])", + "format": "time_series", + "hide": false, + "interval": "", + "intervalFactor": 2, + "legendFormat": "hits-{{instance}}", + "metric": "", + "refId": "A", + "step": 240, + "target": "" + }, + { + "expr": "irate(redis_keyspace_misses_total{instance=~\"$instance\"}[5m])", + "format": "time_series", + "hide": false, + "interval": "", + "intervalFactor": 2, + "legendFormat": "misses-{{instance}}", + "metric": "", + "refId": "B", + "step": 240, + "target": "" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Hits / Misses per Sec", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": "", + "logBase": 1, + "max": null, + "min": 0, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": { + "max": "#BF1B00" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Prometheus", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 7 + }, + "hiddenSeries": false, + "id": 7, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "hideEmpty": false, + "hideZero": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null as zero", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.1.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "redis_memory_used_bytes{instance=~\"$instance\"} ", + "format": "time_series", + "intervalFactor": 2, + "legendFormat": "used-{{instance}}", + "metric": "", + "refId": "A", + "step": 240, + "target": "" + }, + { + "expr": "redis_memory_max_bytes{instance=~\"$instance\"} ", + "format": "time_series", + "hide": false, + "intervalFactor": 2, + "legendFormat": "max", + "refId": "B", + "step": 240 + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Total Memory Usage", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "bytes", + "label": null, + "logBase": 1, + "max": null, + "min": 0, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Prometheus", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 7 + }, + "hiddenSeries": false, + "id": 10, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.1.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "rate(redis_net_input_bytes_total{instance=~\"$instance\"}[5m])", + "format": "time_series", + "intervalFactor": 2, + "legendFormat": "{{ input }}", + "refId": "A", + "step": 240 + }, + { + "expr": "rate(redis_net_output_bytes_total{instance=~\"$instance\"}[5m])", + "format": "time_series", + "interval": "", + "intervalFactor": 2, + "legendFormat": "{{ output }}", + "refId": "B", + "step": 240 + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Network I/O", + "tooltip": { + "msResolution": true, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "bytes", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Prometheus", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 7, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 14 + }, + "hiddenSeries": false, + "id": 5, + "isNew": true, + "legend": { + "alignAsTable": true, + "avg": false, + "current": true, + "max": false, + "min": false, + "rightSide": true, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.1.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "expr": "sum (redis_db_keys{instance=~\"$instance\"}) by (db)", + "format": "time_series", + "interval": "", + "intervalFactor": 2, + "legendFormat": "{{ db }} ", + "refId": "A", + "step": 240, + "target": "" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Total Items per DB", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "none", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Prometheus", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 7, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 14 + }, + "hiddenSeries": false, + "id": 13, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.1.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "expr": "sum (redis_db_keys{instance=~\"$instance\"}) - sum (redis_db_keys_expiring{instance=~\"$instance\"}) ", + "format": "time_series", + "interval": "", + "intervalFactor": 2, + "legendFormat": "not expiring", + "refId": "A", + "step": 240, + "target": "" + }, + { + "expr": "sum (redis_db_keys_expiring{instance=~\"$instance\"}) ", + "format": "time_series", + "interval": "", + "intervalFactor": 2, + "legendFormat": "expiring", + "metric": "", + "refId": "B", + "step": 240 + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Expiring vs Not-Expiring Keys", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": { + "evicts": "#890F02", + "memcached_items_evicted_total{instance=\"172.17.0.1:9150\",job=\"prometheus\"}": "#890F02", + "reclaims": "#3F6833" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Prometheus", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 21 + }, + "hiddenSeries": false, + "id": 8, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.1.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "reclaims", + "yaxis": 2 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "sum(rate(redis_expired_keys_total{instance=~\"$instance\"}[5m])) by (instance)", + "format": "time_series", + "hide": false, + "interval": "", + "intervalFactor": 2, + "legendFormat": "expired", + "metric": "", + "refId": "A", + "step": 240, + "target": "" + }, + { + "expr": "sum(rate(redis_evicted_keys_total{instance=~\"$instance\"}[5m])) by (instance)", + "format": "time_series", + "interval": "", + "intervalFactor": 2, + "legendFormat": "evicted", + "refId": "B", + "step": 240 + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Expired / Evicted", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Prometheus", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 8, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 21 + }, + "hiddenSeries": false, + "id": 14, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "connected", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.1.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "expr": "topk(5, irate(redis_commands_total{instance=~\"$instance\"} [1m]))", + "format": "time_series", + "interval": "", + "intervalFactor": 2, + "legendFormat": "{{ cmd }}", + "metric": "redis_command_calls_total", + "refId": "A", + "step": 240 + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Command Calls / sec", + "tooltip": { + "msResolution": true, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Prometheus", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 8, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 28 + }, + "hiddenSeries": false, + "id": 15, + "isNew": true, + "legend": { + "alignAsTable": false, + "avg": true, + "current": true, + "hideZero": false, + "max": false, + "min": false, + "rightSide": true, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "connected", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.1.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "topk(5, irate(redis_commands_duration_seconds_total{instance=~\"$instance\"} [1m]))", + "format": "time_series", + "interval": "", + "intervalFactor": 2, + "legendFormat": "{{ cmd }}-{{instance}}", + "metric": "redis_command_calls_total", + "refId": "A", + "step": 240 + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Command Duration", + "tooltip": { + "msResolution": true, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "transparent": true, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "s", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + } + ], + "refresh": "30s", + "schemaVersion": 30, + "style": "dark", + "tags": [ + "prometheus", + "redis" + ], + "templating": { + "list": [ + { + "allValue": null, + "current": { + "isNone": true, + "selected": false, + "text": "None", + "value": "" + }, + "datasource": "Prometheus", + "definition": "label_values(redis_up, release)", + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": null, + "multi": false, + "name": "release", + "options": [], + "query": { + "query": "label_values(redis_up, release)", + "refId": "Prometheus-release-Variable-Query" + }, + "refresh": 2, + "regex": "", + "skipUrlSync": false, + "sort": 1, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": "Prometheus", + "definition": "query_result(up{release=\"$release\"})", + "description": null, + "error": null, + "hide": 0, + "includeAll": true, + "label": null, + "multi": false, + "name": "instance", + "options": [], + "query": { + "query": "query_result(up{release=\"$release\"})", + "refId": "Prometheus-instance-Variable-Query" + }, + "refresh": 1, + "regex": "/.*instance=\"([^\"]+).*/", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + } + ] + }, + "time": { + "from": "now-1h", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ], + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ] + }, + "timezone": "browser", + "title": "Redis Dashboard", + "uid": "dvSx1Dpnz", + "version": 1 +} \ No newline at end of file diff --git a/templates/prometheus/config/prometheus/prometheus.yml.j2 b/templates/prometheus/config/prometheus/prometheus.yml.j2 index 0da48b7..8982b27 100644 --- a/templates/prometheus/config/prometheus/prometheus.yml.j2 +++ b/templates/prometheus/config/prometheus/prometheus.yml.j2 @@ -278,6 +278,29 @@ scrape_configs: target_label: instance replacement: $1 +############################################## + + - job_name: 'redis' + scheme: http + metrics_path: '/metrics' + static_configs: + - targets: [ +{% for server_info in stage_server_infos | default([]) %} +{% if server_info.service == 'redis' %} + '{{ server_info.name }}.{{ domain }}:{{ redis_exporter_service_port | default("9121") }}', +{% endif %} +{% endfor %} + ] + labels: + env: {{ stage }} + project: smardigo + application: redis + relabel_configs: + - source_labels: [__address__] + regex: (.*) + target_label: instance + replacement: $1 + ############################################## ### Servers #### ##############################################