this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor: rewrite monitoring stack

+221 -115
-7
apps/loki/Chart.yaml
··· 1 - apiVersion: v2 2 - name: loki 3 - version: 0.0.0 4 - dependencies: 5 - - name: loki-stack 6 - version: 2.10.2 7 - repository: https://grafana.github.io/helm-charts
-4
apps/loki/values.yaml
··· 1 - loki-stack: 2 - loki: 3 - serviceMonitor: 4 - enabled: true
-7
apps/monitoring-system/Chart.yaml
··· 1 - apiVersion: v2 2 - name: kube-prometheus-stack 3 - version: 0.0.0 4 - dependencies: 5 - - name: kube-prometheus-stack 6 - version: 58.0.0 7 - repository: https://prometheus-community.github.io/helm-charts
-12
apps/monitoring-system/values.yaml
··· 1 - kube-prometheus-stack: 2 - grafana: 3 - additionalDataSources: 4 - - name: Loki 5 - type: loki 6 - url: http://loki.loki:3100 7 - prometheus: 8 - prometheusSpec: 9 - ruleSelectorNilUsesHelmValues: false 10 - serviceMonitorSelectorNilUsesHelmValues: false 11 - podMonitorSelectorNilUsesHelmValues: false 12 - probeSelectorNilUsesHelmValues: false
+6
cluster/roles/secrets/tasks/main.yml
··· 11 11 loop: 12 12 - argocd 13 13 - istio-system 14 + - monitoring 14 15 - dex 15 16 - temporal 16 17 - wireguard ··· 37 38 namespace: dex 38 39 stringData: 39 40 ARGOCD_CLIENT_SECRET: "{{ dex_argocd_client_secret }}" 41 + GRAFANA_CLIENT_SECRET: "{{ dex_grafana_client_secret }}" 40 42 KIALI_CLIENT_SECRET: "{{ dex_kiali_client_secret }}" 41 43 TEMPORAL_CLIENT_SECRET: "{{ dex_temporal_client_secret }}" 42 44 - name: argocd-secret 43 45 namespace: argocd 44 46 stringData: 45 47 oidc.dex.clientSecret: "{{ dex_argocd_client_secret }}" 48 + - name: grafana-secrets 49 + namespace: monitoring 50 + stringData: 51 + SSO_CLIENT_SECRET: "{{ dex_grafana_client_secret }}" 46 52 - name: kiali 47 53 namespace: istio-system 48 54 stringData:
+88 -84
cluster/roles/secrets/vars/main.yml
··· 1 1 $ANSIBLE_VAULT;1.1;AES256 2 - 33343766626338663936663332376364356638653166313239313865373132626237376334356661 3 - 6330636438336461383735366437376135633938303136360a333133383930316435333566356534 4 - 38653038653230633438636632373763393932623231643232383262613264323130383062323861 5 - 3864343936373830390a623431333731636139333338636264303261613464326664626139616435 6 - 38386663366636343030613465326365323662353265313637323632383732386633336333656465 7 - 61646137316332663736306266323935663965353739636139646536623333323539326462313266 8 - 32333936343062383766326361363939393163353730653136326233323564633030643031623262 9 - 62313837336334353036346136373361616132323761353664323230373963323162343763383563 10 - 64303461613266376263376637306534373135656338653263323863316664306433383834613732 11 - 31326534333561373834303236343635323863663536646565663736356337343737636432626539 12 - 31373862636235636462346430333063326265336337333661306339646162643737613930323533 13 - 64663530323938353632663733366431356236333561396666356137396139376133653765336439 14 - 39643030333266616639623530616335313035653231396434633834663362326236393763666133 15 - 38656537373463336265643561666530383833323462396437383435623730633233386435316133 16 - 34346339373734613530376632383361356263393833323066376161613838323063626265616261 17 - 35323437366661393364353761366233653738333063313531623361656366326666346665336663 18 - 33636265336131616332663831666632663932316332653066346130663138306639393163316538 19 - 62373630623363393238656232383830666465313337653662636564383532303636306138313164 20 - 39643961386362313565656134353030313964363162653036306431323531386261663166333633 21 - 32653464613165313835393261373564393364366632353334336134653264353961313434316333 22 - 63326438306433323663653533643565346335343565323363356539636433393136653766666562 23 - 36623765313532613962633964333138633234303461323262376139653765366533306334306566 24 - 35376431616130306632383030373238336138363763383362613462363663613963616632386461 25 - 30393630633734336162313965326235663833613165316236373238633630663136646537633461 26 - 35626662393334303465646434643530356333633038643931313131663931316537306133303331 27 - 36623630356330643432613931616336626163626533343562373132386462613234373464323337 28 - 64396638316335653531316134643739333165613462366132393633333630346537346431663938 29 - 38613636663264633132643462356461663739656633613461663838336264383763633465363463 30 - 63643061613366303339343932363463653137613661646235336237633636393732346139653738 31 - 36383036306339613231663634326661366266346165613863343662383834326261623865363065 32 - 31306235393531356135666132336366366262333734363863386262326564366238346164663538 33 - 66623762313766663463323137376263633834303730653838323464376531626632326661383634 34 - 66316533383633623264623365623862623938636238386165323934393465626435353664316235 35 - 31633363336137363161653566306663633665366235663737376133346338636237636130646333 36 - 34613538393866613338613731303837306630626139336237643335616662633738626465633631 37 - 36383731303038396563393734613531633336336232363832333637623664383538656164646432 38 - 66353763636335323162616235663731333139306564356361393065336164636638383034363634 39 - 36313365386466623437303137653733643830333032376666393462353437363137333962316131 40 - 30383934643365366561333564396537383831626634363836353862653763646163313730383730 41 - 65653833636238363733626263376138313932363937373865626133663930663961386232333833 42 - 37616234313531666434346530623535353336633163383336313630376238663261636363343564 43 - 34333031383130666237353861626336646263663432376564653962653764333437663637356561 44 - 62396466636365636536333561666336613038383033643635613832653663396463646465363165 45 - 31356238643733336137396138623764373361323038366334383938336131666638313439373762 46 - 62386565643630616661343336616131643666663738333134663636383333633566356261656565 47 - 35386138363966666131653133613065343434373137363335623264613162343433333262326136 48 - 33303232386462333638646638616236393337303839346132353637626138316638383163376662 49 - 65356566333365353631626231306463373934303866333936663032386535343666666264653934 50 - 62343563306265636235343634633562636431616665656533393461616130343733613932643431 51 - 66633038633763636232323836323632356532646437623566613139393334353133326333323339 52 - 64623061643137316433653166626535316630643938356432303138353962346163383939306536 53 - 66663663343434613639313035643832333563316336393831393434353339373762623930313736 54 - 34626265373731356665343563646666666636303462316664313961633366356332333838326266 55 - 32653737616663356462613464313932313034616134346532313538666437353339663631646438 56 - 35353166366361343831346233663136653339633034663764333262353664343863623766646465 57 - 63323461356336633135663132356531316561393430306466306464623033363533353164666535 58 - 61353830366264333735303533626631626564363163376531636663363033383561623537393132 59 - 64643937366564386366613462353464313862666536633265623635393966396434333432363235 60 - 35653139636332313936353435343432366339636562626266346439353161393065373235393333 61 - 36313335333664663338613033633034356630373335383165626561353238326532623566333534 62 - 36376631633465336134363537643133653262353732646137316335343433326136613435646232 63 - 32646165636264343363313466656663363038353236323231646563333335326364666661306632 64 - 37353539666531386638303565396531613935383738343965333230623836323963346333316361 65 - 32353139353566313961313737643861663336363063346335373232656462333537653430643230 66 - 63646462653539303961373334653336663665356364383633363833653563663538353730386631 67 - 34393263343033653761376330646166373034306535353939646131313161396536376565653133 68 - 64643735373934643731613739656531346539663766333738396633666266356361393433396439 69 - 61343438356232386633366534663138323263303663646631643138333532356433643461396666 70 - 66633166373739343731613764613662383065373236613830396462303339303833333665326636 71 - 64313235346631363335626132306235373339666166356332393135643035663239666461643332 72 - 63623734393565373136643063643761386161316263376538373565613763333265343335633139 73 - 36366635383437633365393732383666656431656265323130313765303232653961343336333031 74 - 39323661666239336562623863376239333361663331323638316430623732383734353838613164 75 - 31626232383133633835383337643963353263396236623864626662343265626362656636356263 76 - 63306437653665386165336161343539336333343831646539363063643032353738336234343364 77 - 36366566633231643465396664646336356262353161303335376462666666343935366563633534 78 - 37336331643334316138636638633537623037313334303736373935313863373635313663613637 79 - 32326430653136353834643837313363393263366233353739396665376462663335306530326436 80 - 65313038336661633132653866656539633139633332306465616239393030343235656162313262 81 - 61386635386233373365633963366262393561353463353463643732313364333032323661353865 82 - 65376331323233643066646363623164363861663631343936643039356362343837313064353261 83 - 32316131306232633738393531616165643339353064303839353134663635646234323630666137 84 - 65323263626662396365353264626161333036656166393061346532653663623537386332316533 85 - 38386530633435363730 2 + 35373735646234636563633136303536346537626163646139663464333530313831653337383266 3 + 3435356261316435643463303837343166303635393466360a643238376165363739643235386538 4 + 36376264623264393537633438636266323631346539653939326666653633366237323064363135 5 + 3338333034373435640a626339356163383932623030303264303238313364373930353732313464 6 + 38383237303561373537343638663534393738326134376532623563353239333961613838333731 7 + 39303863356135376232643363626533656161623631363863386134393339373963663232623764 8 + 34326534623061646434346637386466366238303333656234646439663862633239303938373861 9 + 64373838303366656662366237666665636332613831376334313530316463343564333064333234 10 + 62636132343062646532366330616363373662643330626561383261316439326236366133616434 11 + 35643362353266653536396636613730613564376635356638326365383462613436396535313335 12 + 37646365363037353131393930303330396535616539363436353132356132666165373561663736 13 + 30616161316131663562646332643566663239353664343737626264393363303438303434323331 14 + 61303466613462316235386333643636626334346533653265656561316631316434616164663334 15 + 31626238613839633034326539646230316461653863346430636462373434626638636532653464 16 + 38623731323162626165346434383664383466636661303264656433383461303430643637663664 17 + 37306163633735346433666166656133326264376132623433326431336165666366363566663835 18 + 61326339396336623864383639393333386230613862613861643962303161393962363664343465 19 + 38643265613039656639623832393636373235663335353765653032306630323066366161343064 20 + 39373236346131626165653233666134613737643333393665326533613837326231353132626466 21 + 62363533623932636438376363306333376530366364623538656638306233343063366234633730 22 + 34633063313764306632346464343166323939376333326635343832386363323539363466633630 23 + 31653934613364393933333033623966393435313737393037346265316162356134336464326537 24 + 61306537666330643665636363303561643561646133363263383564656231313636636536383930 25 + 36363465383066646437636239643139373035396230336535363837363961386134386164623964 26 + 33343165633535623539643532386639323163663863383566656462326635313436663364653937 27 + 62323530646437616232346265663633343562373136636331623237353466616465626666303338 28 + 30643233663464666364336461323834373434393262383561323333616534303732346635623639 29 + 32393338663332323030663338663632346239376437663331626530306331336361643935656465 30 + 39353333303736366162343630386334623861666337653963613739613537356162323436373662 31 + 37636437383732636361333434333961626166353633666634383965383265393737323064343261 32 + 61313538346465303833633630613664393832346261303631336661316666316439656630643664 33 + 37663935323864346563373335346265363436646366346137316136613339666232323564306230 34 + 65633430663034393265353239613437303062336265393039653565656365383766346532613163 35 + 31623061373334656331366434666232303138636165623266626262313731666536636633643530 36 + 64313363323439633163356131613036363334396465333365393030306332363065616132623735 37 + 38646561353361346232663465626639346265393431636236306264636562393130313338643136 38 + 66323331383037616562646535333561633161636534373730663065616337633936373363383863 39 + 31653930323831393862363565626132643539333864393231376661656531386361633633666539 40 + 36323461363938303834633238393237656133656363643638316333363930613461333036356164 41 + 39393439303837363738376663656565383333313339366563366638663863346130633239326234 42 + 33316366313261333534356533636436303834643431363738326433613432373336356131376531 43 + 39376330333537356464333261316635366432623031366264643464313236383838613237323937 44 + 39343332303537333130393832366639313363643362663261376461653438313061333530316636 45 + 61316462353038343163313865306630346136633134646565656236353965323333373136666561 46 + 61363836376234383861343664623238303864363763323266316166316133363362663961323765 47 + 35386136316463666338653966323831313864343662346262653339303537623262373862333136 48 + 37383764363861393537623737383163326438366365323236303335643663353737363663333562 49 + 37613638383565666334383665346138656363653532663135363934626339306564646666373065 50 + 62636533356435396632336235633162313039306430346431326237643037313562386337616661 51 + 64646565353837323234623763663566656630303239373661366432393839316633346464336536 52 + 64353734313234326336383831316164656264663961323630323037336439663734303836656134 53 + 30363165626663653462383834326237383061656530633562623462616233656330643932646662 54 + 64303834366265383839646161303663653930393136623764303265623930323435333435356433 55 + 62373064623363346330663231303730303964353733306165636134666165643331663932626636 56 + 33663739383536643263623462653864353638613635653230353236313333396433333964323266 57 + 33613861633233313161636432666130323134373731656234613131373132616564616136393137 58 + 35643439343634366361326132393538666334663931373563343335626266653032613765366430 59 + 36633366653337613661616430316564326130623635376539666232323663333664346632666430 60 + 33323961633863626334663164326633613933376463393432323735633038633666333038313064 61 + 36653164633165343032663933623964396438393762393932616239363039326364326664356534 62 + 62636232343030326664633236326363396561613035303766333534313136343539343762383634 63 + 34666165663639376435623635336462353231353939353462373630303939323865656630653663 64 + 35646631613266656336633335396364333564363034346662623564313435303138333837343832 65 + 64613938313364646138666336643032616636633363333864646434616239636532616662313164 66 + 37356632643436643039313339323532643037613966373531363137663763393562326437373635 67 + 61636465306661323664313635616138383462343430626165316331613366373130323837616430 68 + 31623666336332633262653763383065326231313430633033633566636334326434623063643666 69 + 32653338623632353763396534356633653235383934633135383763666334326537343639346535 70 + 61376661333961376632343030653137393336616234316231396165303064386463313831326363 71 + 65383634626463386633663638323738393231653765346464383561666166343562343237323130 72 + 37373264636661613731303637663561643133323837303361356462386364653562336335613362 73 + 64636565316161613963383930356665663231653261346431323731633031666464366262336164 74 + 35616662393563313637393230666564303065303734636665626662616438366539366663396132 75 + 61643862343366353535313334613663393765366236653761313862356635623764383237376536 76 + 62383439646336666236646530306536383435306131313432323334616532653532646536376536 77 + 65336232376630616662633363383139356362386263316661343535346666383939356331626463 78 + 30316137663763353462336133396131326366366635316365613763626163653464323033326134 79 + 64376661656532616633393737386464303837373231636432346665306338626636336630323437 80 + 38663538313537373038333565356333626336636133386666616330393131613864393639653539 81 + 64383232623061303133373566366565323036306538303131303539303436376132663962636134 82 + 63343933363163623166343536353736666237626462646338306462353239653334313563313236 83 + 63656661373265316461363839643537303434306331663533613433386566623532356164363532 84 + 33646236393336356635393366613464326661656363623264303532303034373239656563613032 85 + 39343163623865383130383039343137383532353565613533343062633565396131633562636164 86 + 32653833323435303434316461376466366639326334356363626262306662656638356636636539 87 + 30373835386238366563396164376333303435333766313436663430363265626165306463363434 88 + 37643864633663386431333034666563373764333635363463366433396462323137623364633030 89 + 32343438653661386235
+5
platform/dex.yaml
··· 45 45 redirectURIs: 46 46 - 'https://argocd.horus.khuedoan.com/auth/callback' 47 47 secretEnv: ARGOCD_CLIENT_SECRET 48 + - id: grafana 49 + name: Grafana 50 + redirectURIs: 51 + - 'https://grafana.horus.khuedoan.com/login/generic_oauth' 52 + secretEnv: GRAFANA_CLIENT_SECRET 48 53 - id: kiali 49 54 name: Kiali 50 55 redirectURIs:
+55
platform/grafana.yaml
··· 1 + apiVersion: argoproj.io/v1alpha1 2 + kind: Application 3 + metadata: 4 + finalizers: 5 + - resources-finalizer.argocd.argoproj.io 6 + name: grafana 7 + spec: 8 + destination: 9 + name: in-cluster 10 + namespace: monitoring 11 + project: default 12 + syncPolicy: 13 + automated: 14 + prune: true 15 + selfHeal: true 16 + syncOptions: 17 + - CreateNamespace=true 18 + - ApplyOutOfSyncOnly=true 19 + - ServerSideApply=true 20 + source: 21 + repoURL: https://grafana.github.io/helm-charts 22 + chart: grafana 23 + targetRevision: 8.15.0 24 + helm: 25 + valuesObject: 26 + ingress: 27 + enabled: true 28 + ingressClassName: nginx 29 + annotations: 30 + cert-manager.io/cluster-issuer: letsencrypt-prod 31 + hosts: 32 + - grafana.horus.khuedoan.com 33 + tls: 34 + - secretName: grafana-general-tls 35 + hosts: 36 + - grafana.horus.khuedoan.com 37 + sidecar: 38 + dashboards: 39 + enabled: true 40 + datasources: 41 + enabled: true 42 + envFromSecret: grafana-secrets 43 + grafana.ini: 44 + server: 45 + root_url: https://grafana.horus.khuedoan.com 46 + auth.generic_oauth: 47 + enabled: true 48 + allow_sign_up: true 49 + name: SSO 50 + client_id: grafana 51 + client_secret: $__env{SSO_CLIENT_SECRET} 52 + scopes: openid profile email groups 53 + auth_url: https://dex.horus.khuedoan.com/auth 54 + token_url: https://dex.horus.khuedoan.com/token 55 + api_url: https://dex.horus.khuedoan.com/userinfo
+1 -1
platform/kiali.yaml
··· 31 31 disable_rbac: true 32 32 external_services: 33 33 prometheus: 34 - url: http://monitoring-system-kube-pro-prometheus.monitoring-system:9090 34 + url: http://prometheus-kube-prometheus-prometheus.monitoring:9090 35 35 grafana: 36 36 enabled: false 37 37 deployment:
+27
system/loki.yaml
··· 1 + apiVersion: argoproj.io/v1alpha1 2 + kind: Application 3 + metadata: 4 + finalizers: 5 + - resources-finalizer.argocd.argoproj.io 6 + name: loki 7 + spec: 8 + destination: 9 + name: in-cluster 10 + namespace: monitoring 11 + project: default 12 + syncPolicy: 13 + automated: 14 + prune: true 15 + selfHeal: true 16 + syncOptions: 17 + - CreateNamespace=true 18 + - ApplyOutOfSyncOnly=true 19 + - ServerSideApply=true 20 + source: 21 + repoURL: https://grafana.github.io/helm-charts 22 + chart: loki-stack 23 + targetRevision: 2.10.2 24 + helm: 25 + valuesObject: 26 + serviceMonitor: 27 + enabled: true
+39
system/prometheus.yaml
··· 1 + apiVersion: argoproj.io/v1alpha1 2 + kind: Application 3 + metadata: 4 + finalizers: 5 + - resources-finalizer.argocd.argoproj.io 6 + name: prometheus 7 + spec: 8 + destination: 9 + name: in-cluster 10 + namespace: monitoring 11 + project: default 12 + syncPolicy: 13 + automated: 14 + prune: true 15 + selfHeal: true 16 + syncOptions: 17 + - CreateNamespace=true 18 + - ApplyOutOfSyncOnly=true 19 + - ServerSideApply=true 20 + source: 21 + repoURL: https://prometheus-community.github.io/helm-charts 22 + chart: kube-prometheus-stack 23 + targetRevision: 72.0.1 24 + helm: 25 + valuesObject: 26 + grafana: 27 + enabled: false 28 + forceDeployDatasources: true 29 + forceDeployDashboards: true 30 + additionalDataSources: 31 + - name: Loki 32 + type: loki 33 + url: http://loki:3100 34 + prometheus: 35 + prometheusSpec: 36 + ruleSelectorNilUsesHelmValues: false 37 + serviceMonitorSelectorNilUsesHelmValues: false 38 + podMonitorSelectorNilUsesHelmValues: false 39 + probeSelectorNilUsesHelmValues: false