values.yaml 152 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627
  1. # Default values for kube-prometheus-stack.
  2. # This is a YAML-formatted file.
  3. # Declare variables to be passed into your templates.
  4. ## Provide a name in place of kube-prometheus-stack for `app:` labels
  5. ##
  6. nameOverride: "mon-stack"
  7. ## Override the deployment namespace
  8. ##
  9. namespaceOverride: ""
  10. ## Provide a k8s version to auto dashboard import script example: kubeTargetVersionOverride: 1.26.6
  11. ##
  12. kubeTargetVersionOverride: ""
  13. ## Allow kubeVersion to be overridden while creating the ingress
  14. ##
  15. kubeVersionOverride: ""
  16. ## Provide a name to substitute for the full names of resources
  17. ##
  18. fullnameOverride: ""
  19. ## Labels to apply to all resources
  20. ##
  21. commonLabels: {}
  22. # scmhash: abc123
  23. # myLabel: aakkmd
  24. ## Install Prometheus Operator CRDs
  25. ##
  26. crds:
  27. enabled: true
  28. ## custom Rules to override "for" and "severity" in defaultRules
  29. ##
  30. customRules: {}
  31. # AlertmanagerFailedReload:
  32. # for: 3m
  33. # AlertmanagerMembersInconsistent:
  34. # for: 5m
  35. # severity: "warning"
  36. ## Create default rules for monitoring the cluster
  37. ##
  38. defaultRules:
  39. create: true
  40. rules:
  41. alertmanager: true
  42. etcd: true
  43. configReloaders: true
  44. general: true
  45. k8sContainerCpuUsageSecondsTotal: true
  46. k8sContainerMemoryCache: true
  47. k8sContainerMemoryRss: true
  48. k8sContainerMemorySwap: true
  49. k8sContainerResource: true
  50. k8sContainerMemoryWorkingSetBytes: true
  51. k8sPodOwner: true
  52. kubeApiserverAvailability: true
  53. kubeApiserverBurnrate: true
  54. kubeApiserverHistogram: true
  55. kubeApiserverSlos: true
  56. kubeControllerManager: true
  57. kubelet: true
  58. kubeProxy: true
  59. kubePrometheusGeneral: true
  60. kubePrometheusNodeRecording: true
  61. kubernetesApps: true
  62. kubernetesResources: true
  63. kubernetesStorage: true
  64. kubernetesSystem: true
  65. kubeSchedulerAlerting: true
  66. kubeSchedulerRecording: true
  67. kubeStateMetrics: true
  68. network: true
  69. node: true
  70. nodeExporterAlerting: true
  71. nodeExporterRecording: true
  72. prometheus: true
  73. prometheusOperator: true
  74. windows: true
  75. ## Reduce app namespace alert scope
  76. appNamespacesTarget: ".*"
  77. ## Set keep_firing_for for all alerts
  78. keepFiringFor: ""
  79. ## Labels for default rules
  80. labels: {}
  81. ## Annotations for default rules
  82. annotations: {}
  83. ## Additional labels for PrometheusRule alerts
  84. additionalRuleLabels: {}
  85. ## Additional annotations for PrometheusRule alerts
  86. additionalRuleAnnotations: {}
  87. ## Additional labels for specific PrometheusRule alert groups
  88. additionalRuleGroupLabels:
  89. alertmanager: {}
  90. etcd: {}
  91. configReloaders: {}
  92. general: {}
  93. k8sContainerCpuUsageSecondsTotal: {}
  94. k8sContainerMemoryCache: {}
  95. k8sContainerMemoryRss: {}
  96. k8sContainerMemorySwap: {}
  97. k8sContainerResource: {}
  98. k8sPodOwner: {}
  99. kubeApiserverAvailability: {}
  100. kubeApiserverBurnrate: {}
  101. kubeApiserverHistogram: {}
  102. kubeApiserverSlos: {}
  103. kubeControllerManager: {}
  104. kubelet: {}
  105. kubeProxy: {}
  106. kubePrometheusGeneral: {}
  107. kubePrometheusNodeRecording: {}
  108. kubernetesApps: {}
  109. kubernetesResources: {}
  110. kubernetesStorage: {}
  111. kubernetesSystem: {}
  112. kubeSchedulerAlerting: {}
  113. kubeSchedulerRecording: {}
  114. kubeStateMetrics: {}
  115. network: {}
  116. node: {}
  117. nodeExporterAlerting: {}
  118. nodeExporterRecording: {}
  119. prometheus: {}
  120. prometheusOperator: {}
  121. ## Additional annotations for specific PrometheusRule alerts groups
  122. additionalRuleGroupAnnotations:
  123. alertmanager: {}
  124. etcd: {}
  125. configReloaders: {}
  126. general: {}
  127. k8sContainerCpuUsageSecondsTotal: {}
  128. k8sContainerMemoryCache: {}
  129. k8sContainerMemoryRss: {}
  130. k8sContainerMemorySwap: {}
  131. k8sContainerResource: {}
  132. k8sPodOwner: {}
  133. kubeApiserverAvailability: {}
  134. kubeApiserverBurnrate: {}
  135. kubeApiserverHistogram: {}
  136. kubeApiserverSlos: {}
  137. kubeControllerManager: {}
  138. kubelet: {}
  139. kubeProxy: {}
  140. kubePrometheusGeneral: {}
  141. kubePrometheusNodeRecording: {}
  142. kubernetesApps: {}
  143. kubernetesResources: {}
  144. kubernetesStorage: {}
  145. kubernetesSystem: {}
  146. kubeSchedulerAlerting: {}
  147. kubeSchedulerRecording: {}
  148. kubeStateMetrics: {}
  149. network: {}
  150. node: {}
  151. nodeExporterAlerting: {}
  152. nodeExporterRecording: {}
  153. prometheus: {}
  154. prometheusOperator: {}
  155. additionalAggregationLabels: []
  156. ## Prefix for runbook URLs. Use this to override the first part of the runbookURLs that is common to all rules.
  157. runbookUrl: "https://runbooks.prometheus-operator.dev/runbooks"
  158. ## Disabled PrometheusRule alerts
  159. disabled: {}
  160. # KubeAPIDown: true
  161. # NodeRAIDDegraded: true
  162. ## Deprecated way to provide custom recording or alerting rules to be deployed into the cluster.
  163. ##
  164. # additionalPrometheusRules: []
  165. # - name: my-rule-file
  166. # groups:
  167. # - name: my_group
  168. # rules:
  169. # - record: my_record
  170. # expr: 100 * my_record
  171. ## Provide custom recording or alerting rules to be deployed into the cluster.
  172. ##
  173. additionalPrometheusRulesMap: {}
  174. # rule-name:
  175. # groups:
  176. # - name: my_group
  177. # rules:
  178. # - record: my_record
  179. # expr: 100 * my_record
  180. ##
  181. global:
  182. rbac:
  183. create: true
  184. ## Create ClusterRoles that extend the existing view, edit and admin ClusterRoles to interact with prometheus-operator CRDs
  185. ## Ref: https://kubernetes.io/docs/reference/access-authn-authz/rbac/#aggregated-clusterroles
  186. createAggregateClusterRoles: false
  187. pspEnabled: false
  188. pspAnnotations: {}
  189. ## Specify pod annotations
  190. ## Ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/#apparmor
  191. ## Ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/#seccomp
  192. ## Ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/#sysctl
  193. ##
  194. # seccomp.security.alpha.kubernetes.io/allowedProfileNames: '*'
  195. # seccomp.security.alpha.kubernetes.io/defaultProfileName: 'docker/default'
  196. # apparmor.security.beta.kubernetes.io/defaultProfileName: 'runtime/default'
  197. ## Global image registry to use if it needs to be overriden for some specific use cases (e.g local registries, custom images, ...)
  198. ##
  199. imageRegistry: ""
  200. ## Reference to one or more secrets to be used when pulling images
  201. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
  202. ##
  203. imagePullSecrets: []
  204. # - name: "image-pull-secret"
  205. # or
  206. # - "image-pull-secret"
  207. windowsMonitoring:
  208. ## Deploys the windows-exporter and Windows-specific dashboards and rules (job name must be 'windows-exporter')
  209. enabled: false
  210. ## Configuration for prometheus-windows-exporter
  211. ## ref: https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus-windows-exporter
  212. ##
  213. prometheus-windows-exporter:
  214. ## Enable ServiceMonitor and set Kubernetes label to use as a job label
  215. ##
  216. prometheus:
  217. monitor:
  218. enabled: true
  219. jobLabel: jobLabel
  220. releaseLabel: true
  221. ## Set job label to 'windows-exporter' as required by the default Prometheus rules and Grafana dashboards
  222. ##
  223. podLabels:
  224. jobLabel: windows-exporter
  225. ## Enable memory and container metrics as required by the default Prometheus rules and Grafana dashboards
  226. ##
  227. config: |-
  228. collectors:
  229. enabled: '[defaults],memory,container'
  230. ## Configuration for alertmanager
  231. ## ref: https://prometheus.io/docs/alerting/alertmanager/
  232. ##
  233. alertmanager:
  234. ## Deploy alertmanager
  235. ##
  236. enabled: true
  237. ## Annotations for Alertmanager
  238. ##
  239. annotations: {}
  240. ## Api that prometheus will use to communicate with alertmanager. Possible values are v1, v2
  241. ##
  242. apiVersion: v2
  243. ## Service account for Alertmanager to use.
  244. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
  245. ##
  246. serviceAccount:
  247. create: true
  248. name: ""
  249. annotations: {}
  250. automountServiceAccountToken: true
  251. ## Configure pod disruption budgets for Alertmanager
  252. ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/#specifying-a-poddisruptionbudget
  253. ## This configuration is immutable once created and will require the PDB to be deleted to be changed
  254. ## https://github.com/kubernetes/kubernetes/issues/45398
  255. ##
  256. podDisruptionBudget:
  257. enabled: false
  258. minAvailable: 1
  259. maxUnavailable: ""
  260. ## Alertmanager configuration directives
  261. ## ref: https://prometheus.io/docs/alerting/configuration/#configuration-file
  262. ## https://prometheus.io/webtools/alerting/routing-tree-editor/
  263. ##
  264. config:
  265. global:
  266. resolve_timeout: 5m
  267. inhibit_rules:
  268. - source_matchers:
  269. - 'severity = critical'
  270. target_matchers:
  271. - 'severity =~ warning|info'
  272. equal:
  273. - 'namespace'
  274. - 'alertname'
  275. - source_matchers:
  276. - 'severity = warning'
  277. target_matchers:
  278. - 'severity = info'
  279. equal:
  280. - 'namespace'
  281. - 'alertname'
  282. - source_matchers:
  283. - 'alertname = InfoInhibitor'
  284. target_matchers:
  285. - 'severity = info'
  286. equal:
  287. - 'namespace'
  288. - target_matchers:
  289. - 'alertname = InfoInhibitor'
  290. route:
  291. group_by: ['namespace']
  292. group_wait: 30s
  293. group_interval: 5m
  294. repeat_interval: 12h
  295. receiver: 'null'
  296. routes:
  297. - receiver: 'null'
  298. matchers:
  299. - alertname = "Watchdog"
  300. receivers:
  301. - name: 'null'
  302. templates:
  303. - '/etc/alertmanager/config/*.tmpl'
  304. ## Alertmanager configuration directives (as string type, preferred over the config hash map)
  305. ## stringConfig will be used only, if tplConfig is true
  306. ## ref: https://prometheus.io/docs/alerting/configuration/#configuration-file
  307. ## https://prometheus.io/webtools/alerting/routing-tree-editor/
  308. ##
  309. stringConfig: ""
  310. ## Pass the Alertmanager configuration directives through Helm's templating
  311. ## engine. If the Alertmanager configuration contains Alertmanager templates,
  312. ## they'll need to be properly escaped so that they are not interpreted by
  313. ## Helm
  314. ## ref: https://helm.sh/docs/developing_charts/#using-the-tpl-function
  315. ## https://prometheus.io/docs/alerting/configuration/#tmpl_string
  316. ## https://prometheus.io/docs/alerting/notifications/
  317. ## https://prometheus.io/docs/alerting/notification_examples/
  318. tplConfig: false
  319. ## Alertmanager template files to format alerts
  320. ## By default, templateFiles are placed in /etc/alertmanager/config/ and if
  321. ## they have a .tmpl file suffix will be loaded. See config.templates above
  322. ## to change, add other suffixes. If adding other suffixes, be sure to update
  323. ## config.templates above to include those suffixes.
  324. ## ref: https://prometheus.io/docs/alerting/notifications/
  325. ## https://prometheus.io/docs/alerting/notification_examples/
  326. ##
  327. templateFiles: {}
  328. #
  329. ## An example template:
  330. # template_1.tmpl: |-
  331. # {{ define "cluster" }}{{ .ExternalURL | reReplaceAll ".*alertmanager\\.(.*)" "$1" }}{{ end }}
  332. #
  333. # {{ define "slack.myorg.text" }}
  334. # {{- $root := . -}}
  335. # {{ range .Alerts }}
  336. # *Alert:* {{ .Annotations.summary }} - `{{ .Labels.severity }}`
  337. # *Cluster:* {{ template "cluster" $root }}
  338. # *Description:* {{ .Annotations.description }}
  339. # *Graph:* <{{ .GeneratorURL }}|:chart_with_upwards_trend:>
  340. # *Runbook:* <{{ .Annotations.runbook }}|:spiral_note_pad:>
  341. # *Details:*
  342. # {{ range .Labels.SortedPairs }} - *{{ .Name }}:* `{{ .Value }}`
  343. # {{ end }}
  344. # {{ end }}
  345. # {{ end }}
  346. ingress:
  347. enabled: false
  348. # For Kubernetes >= 1.18 you should specify the ingress-controller via the field ingressClassName
  349. # See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#specifying-the-class-of-an-ingress
  350. # ingressClassName: nginx
  351. annotations: {}
  352. labels: {}
  353. ## Override ingress to a different defined port on the service
  354. # servicePort: 8081
  355. ## Override ingress to a different service then the default, this is useful if you need to
  356. ## point to a specific instance of the alertmanager (eg kube-prometheus-stack-alertmanager-0)
  357. # serviceName: kube-prometheus-stack-alertmanager-0
  358. ## Hosts must be provided if Ingress is enabled.
  359. ##
  360. hosts: []
  361. # - alertmanager.domain.com
  362. ## Paths to use for ingress rules - one path should match the alertmanagerSpec.routePrefix
  363. ##
  364. paths: []
  365. # - /
  366. ## For Kubernetes >= 1.18 you should specify the pathType (determines how Ingress paths should be matched)
  367. ## See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#better-path-matching-with-path-types
  368. # pathType: ImplementationSpecific
  369. ## TLS configuration for Alertmanager Ingress
  370. ## Secret must be manually created in the namespace
  371. ##
  372. tls: []
  373. # - secretName: alertmanager-general-tls
  374. # hosts:
  375. # - alertmanager.example.com
  376. ## Configuration for Alertmanager secret
  377. ##
  378. secret:
  379. annotations: {}
  380. ## Configuration for creating an Ingress that will map to each Alertmanager replica service
  381. ## alertmanager.servicePerReplica must be enabled
  382. ##
  383. ingressPerReplica:
  384. enabled: false
  385. # For Kubernetes >= 1.18 you should specify the ingress-controller via the field ingressClassName
  386. # See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#specifying-the-class-of-an-ingress
  387. # ingressClassName: nginx
  388. annotations: {}
  389. labels: {}
  390. ## Final form of the hostname for each per replica ingress is
  391. ## {{ ingressPerReplica.hostPrefix }}-{{ $replicaNumber }}.{{ ingressPerReplica.hostDomain }}
  392. ##
  393. ## Prefix for the per replica ingress that will have `-$replicaNumber`
  394. ## appended to the end
  395. hostPrefix: ""
  396. ## Domain that will be used for the per replica ingress
  397. hostDomain: ""
  398. ## Paths to use for ingress rules
  399. ##
  400. paths: []
  401. # - /
  402. ## For Kubernetes >= 1.18 you should specify the pathType (determines how Ingress paths should be matched)
  403. ## See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#better-path-matching-with-path-types
  404. # pathType: ImplementationSpecific
  405. ## Secret name containing the TLS certificate for alertmanager per replica ingress
  406. ## Secret must be manually created in the namespace
  407. tlsSecretName: ""
  408. ## Separated secret for each per replica Ingress. Can be used together with cert-manager
  409. ##
  410. tlsSecretPerReplica:
  411. enabled: false
  412. ## Final form of the secret for each per replica ingress is
  413. ## {{ tlsSecretPerReplica.prefix }}-{{ $replicaNumber }}
  414. ##
  415. prefix: "alertmanager"
  416. ## Configuration for Alertmanager service
  417. ##
  418. service:
  419. annotations: {}
  420. labels: {}
  421. clusterIP: ""
  422. ## Port for Alertmanager Service to listen on
  423. ##
  424. port: 9093
  425. ## To be used with a proxy extraContainer port
  426. ##
  427. targetPort: 9093
  428. ## Port to expose on each node
  429. ## Only used if service.type is 'NodePort'
  430. ##
  431. nodePort: 30903
  432. ## List of IP addresses at which the Prometheus server service is available
  433. ## Ref: https://kubernetes.io/docs/user-guide/services/#external-ips
  434. ##
  435. ## Additional ports to open for Alertmanager service
  436. ##
  437. additionalPorts: []
  438. # - name: oauth-proxy
  439. # port: 8081
  440. # targetPort: 8081
  441. # - name: oauth-metrics
  442. # port: 8082
  443. # targetPort: 8082
  444. externalIPs: []
  445. loadBalancerIP: ""
  446. loadBalancerSourceRanges: []
  447. ## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
  448. ##
  449. externalTrafficPolicy: Cluster
  450. ## If you want to make sure that connections from a particular client are passed to the same Pod each time
  451. ## Accepts 'ClientIP' or 'None'
  452. ##
  453. sessionAffinity: None
  454. ## If you want to modify the ClientIP sessionAffinity timeout
  455. ## The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP"
  456. ##
  457. sessionAffinityConfig:
  458. clientIP:
  459. timeoutSeconds: 10800
  460. ## Service type
  461. ##
  462. type: ClusterIP
  463. ## Configuration for creating a separate Service for each statefulset Alertmanager replica
  464. ##
  465. servicePerReplica:
  466. enabled: false
  467. annotations: {}
  468. ## Port for Alertmanager Service per replica to listen on
  469. ##
  470. port: 9093
  471. ## To be used with a proxy extraContainer port
  472. targetPort: 9093
  473. ## Port to expose on each node
  474. ## Only used if servicePerReplica.type is 'NodePort'
  475. ##
  476. nodePort: 30904
  477. ## Loadbalancer source IP ranges
  478. ## Only used if servicePerReplica.type is "LoadBalancer"
  479. loadBalancerSourceRanges: []
  480. ## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
  481. ##
  482. externalTrafficPolicy: Cluster
  483. ## Service type
  484. ##
  485. type: ClusterIP
  486. ## Configuration for creating a ServiceMonitor for AlertManager
  487. ##
  488. serviceMonitor:
  489. ## If true, a ServiceMonitor will be created for the AlertManager service.
  490. ##
  491. selfMonitor: true
  492. ## Scrape interval. If not set, the Prometheus default scrape interval is used.
  493. ##
  494. interval: ""
  495. ## Additional labels
  496. ##
  497. additionalLabels: {}
  498. ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
  499. ##
  500. sampleLimit: 0
  501. ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
  502. ##
  503. targetLimit: 0
  504. ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  505. ##
  506. labelLimit: 0
  507. ## Per-scrape limit on length of labels name that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  508. ##
  509. labelNameLengthLimit: 0
  510. ## Per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  511. ##
  512. labelValueLengthLimit: 0
  513. ## proxyUrl: URL of a proxy that should be used for scraping.
  514. ##
  515. proxyUrl: ""
  516. ## scheme: HTTP scheme to use for scraping. Can be used with `tlsConfig` for example if using istio mTLS.
  517. scheme: ""
  518. ## enableHttp2: Whether to enable HTTP2.
  519. ## See https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#endpoint
  520. enableHttp2: true
  521. ## tlsConfig: TLS configuration to use when scraping the endpoint. For example if using istio mTLS.
  522. ## Of type: https://github.com/coreos/prometheus-operator/blob/main/Documentation/api.md#tlsconfig
  523. tlsConfig: {}
  524. bearerTokenFile:
  525. ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
  526. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
  527. ##
  528. metricRelabelings: []
  529. # - action: keep
  530. # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
  531. # sourceLabels: [__name__]
  532. ## RelabelConfigs to apply to samples before scraping
  533. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
  534. ##
  535. relabelings: []
  536. # - sourceLabels: [__meta_kubernetes_pod_node_name]
  537. # separator: ;
  538. # regex: ^(.*)$
  539. # targetLabel: nodename
  540. # replacement: $1
  541. # action: replace
  542. ## Additional Endpoints
  543. ##
  544. additionalEndpoints: []
  545. # - port: oauth-metrics
  546. # path: /metrics
  547. ## Settings affecting alertmanagerSpec
  548. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#alertmanagerspec
  549. ##
  550. alertmanagerSpec:
  551. ## Standard object's metadata. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata
  552. ## Metadata Labels and Annotations gets propagated to the Alertmanager pods.
  553. ##
  554. podMetadata: {}
  555. ## Image of Alertmanager
  556. ##
  557. image:
  558. registry: quay.io
  559. repository: prometheus/alertmanager
  560. tag: v0.27.0
  561. sha: ""
  562. ## If true then the user will be responsible to provide a secret with alertmanager configuration
  563. ## So when true the config part will be ignored (including templateFiles) and the one in the secret will be used
  564. ##
  565. useExistingSecret: false
  566. ## Secrets is a list of Secrets in the same namespace as the Alertmanager object, which shall be mounted into the
  567. ## Alertmanager Pods. The Secrets are mounted into /etc/alertmanager/secrets/.
  568. ##
  569. secrets: []
  570. ## If false then the user will opt out of automounting API credentials.
  571. ##
  572. automountServiceAccountToken: true
  573. ## ConfigMaps is a list of ConfigMaps in the same namespace as the Alertmanager object, which shall be mounted into the Alertmanager Pods.
  574. ## The ConfigMaps are mounted into /etc/alertmanager/configmaps/.
  575. ##
  576. configMaps: []
  577. ## ConfigSecret is the name of a Kubernetes Secret in the same namespace as the Alertmanager object, which contains configuration for
  578. ## this Alertmanager instance. Defaults to 'alertmanager-' The secret is mounted into /etc/alertmanager/config.
  579. ##
  580. # configSecret:
  581. ## WebTLSConfig defines the TLS parameters for HTTPS
  582. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#alertmanagerwebspec
  583. web: {}
  584. ## AlertmanagerConfigs to be selected to merge and configure Alertmanager with.
  585. ##
  586. alertmanagerConfigSelector: {}
  587. ## Example which selects all alertmanagerConfig resources
  588. ## with label "alertconfig" with values any of "example-config" or "example-config-2"
  589. # alertmanagerConfigSelector:
  590. # matchExpressions:
  591. # - key: alertconfig
  592. # operator: In
  593. # values:
  594. # - example-config
  595. # - example-config-2
  596. #
  597. ## Example which selects all alertmanagerConfig resources with label "role" set to "example-config"
  598. # alertmanagerConfigSelector:
  599. # matchLabels:
  600. # role: example-config
  601. ## Namespaces to be selected for AlertmanagerConfig discovery. If nil, only check own namespace.
  602. ##
  603. alertmanagerConfigNamespaceSelector: {}
  604. ## Example which selects all namespaces
  605. ## with label "alertmanagerconfig" with values any of "example-namespace" or "example-namespace-2"
  606. # alertmanagerConfigNamespaceSelector:
  607. # matchExpressions:
  608. # - key: alertmanagerconfig
  609. # operator: In
  610. # values:
  611. # - example-namespace
  612. # - example-namespace-2
  613. ## Example which selects all namespaces with label "alertmanagerconfig" set to "enabled"
  614. # alertmanagerConfigNamespaceSelector:
  615. # matchLabels:
  616. # alertmanagerconfig: enabled
  617. ## AlermanagerConfig to be used as top level configuration
  618. ##
  619. alertmanagerConfiguration: {}
  620. ## Example with select a global alertmanagerconfig
  621. # alertmanagerConfiguration:
  622. # name: global-alertmanager-Configuration
  623. ## Defines the strategy used by AlertmanagerConfig objects to match alerts. eg:
  624. ##
  625. alertmanagerConfigMatcherStrategy: {}
  626. ## Example with use OnNamespace strategy
  627. # alertmanagerConfigMatcherStrategy:
  628. # type: OnNamespace
  629. ## Define Log Format
  630. # Use logfmt (default) or json logging
  631. logFormat: logfmt
  632. ## Log level for Alertmanager to be configured with.
  633. ##
  634. logLevel: info
  635. ## Size is the expected size of the alertmanager cluster. The controller will eventually make the size of the
  636. ## running cluster equal to the expected size.
  637. replicas: 1
  638. ## Time duration Alertmanager shall retain data for. Default is '120h', and must match the regular expression
  639. ## [0-9]+(ms|s|m|h) (milliseconds seconds minutes hours).
  640. ##
  641. retention: 120h
  642. ## Storage is the definition of how storage will be used by the Alertmanager instances.
  643. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/user-guides/storage.md
  644. ##
  645. storage:
  646. volumeClaimTemplate:
  647. spec:
  648. storageClassName: nfs-client
  649. accessModes: ["ReadWriteOnce"]
  650. resources:
  651. requests:
  652. storage: 50Gi
  653. ## The external URL the Alertmanager instances will be available under. This is necessary to generate correct URLs. This is necessary if Alertmanager is not served from root of a DNS name. string false
  654. ##
  655. externalUrl:
  656. ## The route prefix Alertmanager registers HTTP handlers for. This is useful, if using ExternalURL and a proxy is rewriting HTTP routes of a request, and the actual ExternalURL is still true,
  657. ## but the server serves requests under a different route prefix. For example for use with kubectl proxy.
  658. ##
  659. routePrefix: /
  660. ## scheme: HTTP scheme to use. Can be used with `tlsConfig` for example if using istio mTLS.
  661. scheme: ""
  662. ## tlsConfig: TLS configuration to use when connect to the endpoint. For example if using istio mTLS.
  663. ## Of type: https://github.com/coreos/prometheus-operator/blob/main/Documentation/api.md#tlsconfig
  664. tlsConfig: {}
  665. ## If set to true all actions on the underlying managed objects are not going to be performed, except for delete actions.
  666. ##
  667. paused: false
  668. ## Define which Nodes the Pods are scheduled on.
  669. ## ref: https://kubernetes.io/docs/user-guide/node-selection/
  670. ##
  671. nodeSelector: {}
  672. ## Define resources requests and limits for single Pods.
  673. ## ref: https://kubernetes.io/docs/user-guide/compute-resources/
  674. ##
  675. resources: {}
  676. # requests:
  677. # memory: 400Mi
  678. ## Pod anti-affinity can prevent the scheduler from placing Prometheus replicas on the same node.
  679. ## The default value "soft" means that the scheduler should *prefer* to not schedule two replica pods onto the same node but no guarantee is provided.
  680. ## The value "hard" means that the scheduler is *required* to not schedule two replica pods onto the same node.
  681. ## The value "" will disable pod anti-affinity so that no anti-affinity rules will be configured.
  682. ##
  683. podAntiAffinity: ""
  684. ## If anti-affinity is enabled sets the topologyKey to use for anti-affinity.
  685. ## This can be changed to, for example, failure-domain.beta.kubernetes.io/zone
  686. ##
  687. podAntiAffinityTopologyKey: kubernetes.io/hostname
  688. ## Assign custom affinity rules to the alertmanager instance
  689. ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
  690. ##
  691. affinity: {}
  692. # nodeAffinity:
  693. # requiredDuringSchedulingIgnoredDuringExecution:
  694. # nodeSelectorTerms:
  695. # - matchExpressions:
  696. # - key: kubernetes.io/e2e-az-name
  697. # operator: In
  698. # values:
  699. # - e2e-az1
  700. # - e2e-az2
  701. ## If specified, the pod's tolerations.
  702. ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
  703. ##
  704. tolerations: []
  705. # - key: "key"
  706. # operator: "Equal"
  707. # value: "value"
  708. # effect: "NoSchedule"
  709. ## If specified, the pod's topology spread constraints.
  710. ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
  711. ##
  712. topologySpreadConstraints: []
  713. # - maxSkew: 1
  714. # topologyKey: topology.kubernetes.io/zone
  715. # whenUnsatisfiable: DoNotSchedule
  716. # labelSelector:
  717. # matchLabels:
  718. # app: alertmanager
  719. ## SecurityContext holds pod-level security attributes and common container settings.
  720. ## This defaults to non root user with uid 1000 and gid 2000. *v1.PodSecurityContext false
  721. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
  722. ##
  723. securityContext:
  724. runAsGroup: 2000
  725. runAsNonRoot: true
  726. runAsUser: 1000
  727. fsGroup: 2000
  728. seccompProfile:
  729. type: RuntimeDefault
  730. ## ListenLocal makes the Alertmanager server listen on loopback, so that it does not bind against the Pod IP.
  731. ## Note this is only for the Alertmanager UI, not the gossip communication.
  732. ##
  733. listenLocal: false
  734. ## Containers allows injecting additional containers. This is meant to allow adding an authentication proxy to an Alertmanager pod.
  735. ##
  736. containers: []
  737. # containers:
  738. # - name: oauth-proxy
  739. # image: quay.io/oauth2-proxy/oauth2-proxy:v7.5.1
  740. # args:
  741. # - --upstream=http://127.0.0.1:9093
  742. # - --http-address=0.0.0.0:8081
  743. # - --metrics-address=0.0.0.0:8082
  744. # - ...
  745. # ports:
  746. # - containerPort: 8081
  747. # name: oauth-proxy
  748. # protocol: TCP
  749. # - containerPort: 8082
  750. # name: oauth-metrics
  751. # protocol: TCP
  752. # resources: {}
  753. # Additional volumes on the output StatefulSet definition.
  754. volumes: []
  755. # Additional VolumeMounts on the output StatefulSet definition.
  756. volumeMounts: []
  757. ## InitContainers allows injecting additional initContainers. This is meant to allow doing some changes
  758. ## (permissions, dir tree) on mounted volumes before starting prometheus
  759. initContainers: []
  760. ## Priority class assigned to the Pods
  761. ##
  762. priorityClassName: ""
  763. ## AdditionalPeers allows injecting a set of additional Alertmanagers to peer with to form a highly available cluster.
  764. ##
  765. additionalPeers: []
  766. ## PortName to use for Alert Manager.
  767. ##
  768. portName: "http-web"
  769. ## ClusterAdvertiseAddress is the explicit address to advertise in cluster. Needs to be provided for non RFC1918 [1] (public) addresses. [1] RFC1918: https://tools.ietf.org/html/rfc1918
  770. ##
  771. clusterAdvertiseAddress: false
  772. ## clusterGossipInterval determines interval between gossip attempts.
  773. ## Needs to be specified as GoDuration, a time duration that can be parsed by Go’s time.ParseDuration() (e.g. 45ms, 30s, 1m, 1h20m15s)
  774. clusterGossipInterval: ""
  775. ## clusterPeerTimeout determines timeout for cluster peering.
  776. ## Needs to be specified as GoDuration, a time duration that can be parsed by Go’s time.ParseDuration() (e.g. 45ms, 30s, 1m, 1h20m15s)
  777. clusterPeerTimeout: ""
  778. ## clusterPushpullInterval determines interval between pushpull attempts.
  779. ## Needs to be specified as GoDuration, a time duration that can be parsed by Go’s time.ParseDuration() (e.g. 45ms, 30s, 1m, 1h20m15s)
  780. clusterPushpullInterval: ""
  781. ## ForceEnableClusterMode ensures Alertmanager does not deactivate the cluster mode when running with a single replica.
  782. ## Use case is e.g. spanning an Alertmanager cluster across Kubernetes clusters with a single replica in each.
  783. forceEnableClusterMode: false
  784. ## Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to
  785. ## be considered available. Defaults to 0 (pod will be considered available as soon as it is ready).
  786. minReadySeconds: 0
  787. ## Additional configuration which is not covered by the properties above. (passed through tpl)
  788. additionalConfig: {}
  789. ## Additional configuration which is not covered by the properties above.
  790. ## Useful, if you need advanced templating inside alertmanagerSpec.
  791. ## Otherwise, use alertmanager.alertmanagerSpec.additionalConfig (passed through tpl)
  792. additionalConfigString: ""
  793. ## ExtraSecret can be used to store various data in an extra secret
  794. ## (use it for example to store hashed basic auth credentials)
  795. extraSecret:
  796. ## if not set, name will be auto generated
  797. # name: ""
  798. annotations: {}
  799. data: {}
  800. # auth: |
  801. # foo:$apr1$OFG3Xybp$ckL0FHDAkoXYIlH9.cysT0
  802. # someoneelse:$apr1$DMZX2Z4q$6SbQIfyuLQd.xmo/P0m2c.
  803. ## Using default values from https://github.com/grafana/helm-charts/blob/main/charts/grafana/values.yaml
  804. ##
  805. grafana:
  806. enabled: true
  807. namespaceOverride: ""
  808. ## ForceDeployDatasources Create datasource configmap even if grafana deployment has been disabled
  809. ##
  810. forceDeployDatasources: false
  811. ## ForceDeployDashboard Create dashboard configmap even if grafana deployment has been disabled
  812. ##
  813. forceDeployDashboards: false
  814. ## Deploy default dashboards
  815. ##
  816. defaultDashboardsEnabled: true
  817. ## Timezone for the default dashboards
  818. ## Other options are: browser or a specific timezone, i.e. Europe/Luxembourg
  819. ##
  820. defaultDashboardsTimezone: Europe/Zurich
  821. ## Editable flag for the default dashboards
  822. ##
  823. defaultDashboardsEditable: true
  824. adminPassword: 2FR3pFRfyZpS5meVDzJX
  825. rbac:
  826. ## If true, Grafana PSPs will be created
  827. ##
  828. pspEnabled: false
  829. ingress:
  830. ## If true, Grafana Ingress will be created
  831. ##
  832. enabled: true
  833. ## IngressClassName for Grafana Ingress.
  834. ## Should be provided if Ingress is enable.
  835. ##
  836. ingressClassName: nginx
  837. ## Annotations for Grafana Ingress
  838. ##
  839. annotations: {
  840. cert-manager.io/cluster-issuer: "letsencrypt",
  841. acme.cert-manager.io/http01-edit-in-place: "true",
  842. ingress.kubernetes.io/ssl-redirect: "true",
  843. nginx.org/redirect-to-https: "true",
  844. }
  845. # kubernetes.io/ingress.class: nginx
  846. # kubernetes.io/tls-acme: "true"
  847. ## Labels to be added to the Ingress
  848. ##
  849. labels: {}
  850. ## Hostnames.
  851. ## Must be provided if Ingress is enable.
  852. ##
  853. # hosts:
  854. # - grafana.domain.com
  855. hosts: ["gfn.dodges.it"]
  856. ## Path for grafana ingress
  857. path: /
  858. ## TLS configuration for grafana Ingress
  859. ## Secret must be manually created in the namespace
  860. ##
  861. tls:
  862. - secretName: gfn-le-secret
  863. hosts:
  864. - gfn.dodges.it
  865. # # To make Grafana persistent (Using Statefulset)
  866. # #
  867. persistence:
  868. enabled: true
  869. type: sts
  870. storageClassName: "nfs-client"
  871. accessModes:
  872. - ReadWriteOnce
  873. size: 20Gi
  874. finalizers:
  875. - kubernetes.io/pvc-protection
  876. serviceAccount:
  877. create: true
  878. autoMount: true
  879. sidecar:
  880. dashboards:
  881. enabled: true
  882. label: grafana_dashboard
  883. labelValue: "1"
  884. # Allow discovery in all namespaces for dashboards
  885. searchNamespace: ALL
  886. # Support for new table panels, when enabled grafana auto migrates the old table panels to newer table panels
  887. enableNewTablePanelSyntax: false
  888. ## Annotations for Grafana dashboard configmaps
  889. ##
  890. annotations: {}
  891. multicluster:
  892. global:
  893. enabled: false
  894. etcd:
  895. enabled: false
  896. provider:
  897. allowUiUpdates: false
  898. datasources:
  899. enabled: true
  900. defaultDatasourceEnabled: true
  901. isDefaultDatasource: true
  902. uid: prometheus
  903. ## URL of prometheus datasource
  904. ##
  905. # url: http://prometheus-stack-prometheus:9090/
  906. ## Prometheus request timeout in seconds
  907. # timeout: 30
  908. # If not defined, will use prometheus.prometheusSpec.scrapeInterval or its default
  909. # defaultDatasourceScrapeInterval: 15s
  910. ## Annotations for Grafana datasource configmaps
  911. ##
  912. annotations: {}
  913. ## Set method for HTTP to send query to datasource
  914. httpMethod: POST
  915. ## Create datasource for each Pod of Prometheus StatefulSet;
  916. ## this uses headless service `prometheus-operated` which is
  917. ## created by Prometheus Operator
  918. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/0fee93e12dc7c2ea1218f19ae25ec6b893460590/pkg/prometheus/statefulset.go#L255-L286
  919. createPrometheusReplicasDatasources: false
  920. label: grafana_datasource
  921. labelValue: "1"
  922. ## Field with internal link pointing to existing data source in Grafana.
  923. ## Can be provisioned via additionalDataSources
  924. exemplarTraceIdDestinations: {}
  925. # datasourceUid: Jaeger
  926. # traceIdLabelName: trace_id
  927. alertmanager:
  928. enabled: true
  929. uid: alertmanager
  930. handleGrafanaManagedAlerts: false
  931. implementation: prometheus
  932. extraConfigmapMounts: []
  933. # - name: certs-configmap
  934. # mountPath: /etc/grafana/ssl/
  935. # configMap: certs-configmap
  936. # readOnly: true
  937. deleteDatasources: []
  938. # - name: example-datasource
  939. # orgId: 1
  940. ## Configure additional grafana datasources (passed through tpl)
  941. ## ref: http://docs.grafana.org/administration/provisioning/#datasources
  942. additionalDataSources: []
  943. # - name: prometheus-sample
  944. # access: proxy
  945. # basicAuth: true
  946. # basicAuthPassword: pass
  947. # basicAuthUser: daco
  948. # editable: false
  949. # jsonData:
  950. # tlsSkipVerify: true
  951. # orgId: 1
  952. # type: prometheus
  953. # url: https://{{ printf "%s-prometheus.svc" .Release.Name }}:9090
  954. # version: 1
  955. ## Passed to grafana subchart and used by servicemonitor below
  956. ##
  957. service:
  958. portName: http-web
  959. serviceMonitor:
  960. # If true, a ServiceMonitor CRD is created for a prometheus operator
  961. # https://github.com/coreos/prometheus-operator
  962. #
  963. enabled: true
  964. # Path to use for scraping metrics. Might be different if server.root_url is set
  965. # in grafana.ini
  966. path: "/metrics"
  967. # namespace: monitoring (defaults to use the namespace this chart is deployed to)
  968. # labels for the ServiceMonitor
  969. labels: {}
  970. # Scrape interval. If not set, the Prometheus default scrape interval is used.
  971. #
  972. interval: ""
  973. scheme: http
  974. tlsConfig: {}
  975. scrapeTimeout: 30s
  976. ## RelabelConfigs to apply to samples before scraping
  977. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
  978. ##
  979. relabelings: []
  980. # - sourceLabels: [__meta_kubernetes_pod_node_name]
  981. # separator: ;
  982. # regex: ^(.*)$
  983. # targetLabel: nodename
  984. # replacement: $1
  985. # action: replace
  986. ## Flag to disable all the kubernetes component scrapers
  987. ##
  988. kubernetesServiceMonitors:
  989. enabled: true
  990. ## Component scraping the kube api server
  991. ##
  992. kubeApiServer:
  993. enabled: true
  994. tlsConfig:
  995. serverName: kubernetes
  996. insecureSkipVerify: false
  997. serviceMonitor:
  998. ## Scrape interval. If not set, the Prometheus default scrape interval is used.
  999. ##
  1000. interval: ""
  1001. ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
  1002. ##
  1003. sampleLimit: 0
  1004. ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
  1005. ##
  1006. targetLimit: 0
  1007. ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  1008. ##
  1009. labelLimit: 0
  1010. ## Per-scrape limit on length of labels name that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  1011. ##
  1012. labelNameLengthLimit: 0
  1013. ## Per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  1014. ##
  1015. labelValueLengthLimit: 0
  1016. ## proxyUrl: URL of a proxy that should be used for scraping.
  1017. ##
  1018. proxyUrl: ""
  1019. jobLabel: component
  1020. selector:
  1021. matchLabels:
  1022. component: apiserver
  1023. provider: kubernetes
  1024. ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
  1025. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
  1026. ##
  1027. metricRelabelings:
  1028. # Drop excessively noisy apiserver buckets.
  1029. - action: drop
  1030. regex: apiserver_request_duration_seconds_bucket;(0.15|0.2|0.3|0.35|0.4|0.45|0.6|0.7|0.8|0.9|1.25|1.5|1.75|2|3|3.5|4|4.5|6|7|8|9|15|25|40|50)
  1031. sourceLabels:
  1032. - __name__
  1033. - le
  1034. # - action: keep
  1035. # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
  1036. # sourceLabels: [__name__]
  1037. ## RelabelConfigs to apply to samples before scraping
  1038. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
  1039. ##
  1040. relabelings: []
  1041. # - sourceLabels:
  1042. # - __meta_kubernetes_namespace
  1043. # - __meta_kubernetes_service_name
  1044. # - __meta_kubernetes_endpoint_port_name
  1045. # action: keep
  1046. # regex: default;kubernetes;https
  1047. # - targetLabel: __address__
  1048. # replacement: kubernetes.default.svc:443
  1049. ## Additional labels
  1050. ##
  1051. additionalLabels: {}
  1052. # foo: bar
  1053. ## Component scraping the kubelet and kubelet-hosted cAdvisor
  1054. ##
  1055. kubelet:
  1056. enabled: true
  1057. namespace: kube-system
  1058. serviceMonitor:
  1059. ## Attach metadata to discovered targets. Requires Prometheus v2.45 for endpoints created by the operator.
  1060. ##
  1061. attachMetadata:
  1062. node: false
  1063. ## Scrape interval. If not set, the Prometheus default scrape interval is used.
  1064. ##
  1065. interval: ""
  1066. ## If true, Prometheus use (respect) labels provided by exporter.
  1067. ##
  1068. honorLabels: true
  1069. ## If true, Prometheus ingests metrics with timestamp provided by exporter. If false, Prometheus ingests metrics with timestamp of scrape.
  1070. ##
  1071. honorTimestamps: true
  1072. ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
  1073. ##
  1074. sampleLimit: 0
  1075. ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
  1076. ##
  1077. targetLimit: 0
  1078. ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  1079. ##
  1080. labelLimit: 0
  1081. ## Per-scrape limit on length of labels name that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  1082. ##
  1083. labelNameLengthLimit: 0
  1084. ## Per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  1085. ##
  1086. labelValueLengthLimit: 0
  1087. ## proxyUrl: URL of a proxy that should be used for scraping.
  1088. ##
  1089. proxyUrl: ""
  1090. ## Enable scraping the kubelet over https. For requirements to enable this see
  1091. ## https://github.com/prometheus-operator/prometheus-operator/issues/926
  1092. ##
  1093. https: true
  1094. ## Enable scraping /metrics/cadvisor from kubelet's service
  1095. ##
  1096. cAdvisor: true
  1097. ## Enable scraping /metrics/probes from kubelet's service
  1098. ##
  1099. probes: true
  1100. ## Enable scraping /metrics/resource from kubelet's service
  1101. ## This is disabled by default because container metrics are already exposed by cAdvisor
  1102. ##
  1103. resource: false
  1104. # From kubernetes 1.18, /metrics/resource/v1alpha1 renamed to /metrics/resource
  1105. resourcePath: "/metrics/resource/v1alpha1"
  1106. ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
  1107. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
  1108. ##
  1109. cAdvisorMetricRelabelings:
  1110. # Drop less useful container CPU metrics.
  1111. - sourceLabels: [__name__]
  1112. action: drop
  1113. regex: 'container_cpu_(cfs_throttled_seconds_total|load_average_10s|system_seconds_total|user_seconds_total)'
  1114. # Drop less useful container / always zero filesystem metrics.
  1115. - sourceLabels: [__name__]
  1116. action: drop
  1117. regex: 'container_fs_(io_current|io_time_seconds_total|io_time_weighted_seconds_total|reads_merged_total|sector_reads_total|sector_writes_total|writes_merged_total)'
  1118. # Drop less useful / always zero container memory metrics.
  1119. - sourceLabels: [__name__]
  1120. action: drop
  1121. regex: 'container_memory_(mapped_file|swap)'
  1122. # Drop less useful container process metrics.
  1123. - sourceLabels: [__name__]
  1124. action: drop
  1125. regex: 'container_(file_descriptors|tasks_state|threads_max)'
  1126. # Drop container spec metrics that overlap with kube-state-metrics.
  1127. - sourceLabels: [__name__]
  1128. action: drop
  1129. regex: 'container_spec.*'
  1130. # Drop cgroup metrics with no pod.
  1131. - sourceLabels: [id, pod]
  1132. action: drop
  1133. regex: '.+;'
  1134. # - sourceLabels: [__name__, image]
  1135. # separator: ;
  1136. # regex: container_([a-z_]+);
  1137. # replacement: $1
  1138. # action: drop
  1139. # - sourceLabels: [__name__]
  1140. # separator: ;
  1141. # regex: container_(network_tcp_usage_total|network_udp_usage_total|tasks_state|cpu_load_average_10s)
  1142. # replacement: $1
  1143. # action: drop
  1144. ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
  1145. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
  1146. ##
  1147. probesMetricRelabelings: []
  1148. # - sourceLabels: [__name__, image]
  1149. # separator: ;
  1150. # regex: container_([a-z_]+);
  1151. # replacement: $1
  1152. # action: drop
  1153. # - sourceLabels: [__name__]
  1154. # separator: ;
  1155. # regex: container_(network_tcp_usage_total|network_udp_usage_total|tasks_state|cpu_load_average_10s)
  1156. # replacement: $1
  1157. # action: drop
  1158. ## RelabelConfigs to apply to samples before scraping
  1159. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
  1160. ##
  1161. ## metrics_path is required to match upstream rules and charts
  1162. cAdvisorRelabelings:
  1163. - action: replace
  1164. sourceLabels: [__metrics_path__]
  1165. targetLabel: metrics_path
  1166. # - sourceLabels: [__meta_kubernetes_pod_node_name]
  1167. # separator: ;
  1168. # regex: ^(.*)$
  1169. # targetLabel: nodename
  1170. # replacement: $1
  1171. # action: replace
  1172. ## RelabelConfigs to apply to samples before scraping
  1173. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
  1174. ##
  1175. probesRelabelings:
  1176. - action: replace
  1177. sourceLabels: [__metrics_path__]
  1178. targetLabel: metrics_path
  1179. # - sourceLabels: [__meta_kubernetes_pod_node_name]
  1180. # separator: ;
  1181. # regex: ^(.*)$
  1182. # targetLabel: nodename
  1183. # replacement: $1
  1184. # action: replace
  1185. ## RelabelConfigs to apply to samples before scraping
  1186. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
  1187. ##
  1188. resourceRelabelings:
  1189. - action: replace
  1190. sourceLabels: [__metrics_path__]
  1191. targetLabel: metrics_path
  1192. # - sourceLabels: [__meta_kubernetes_pod_node_name]
  1193. # separator: ;
  1194. # regex: ^(.*)$
  1195. # targetLabel: nodename
  1196. # replacement: $1
  1197. # action: replace
  1198. ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
  1199. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
  1200. ##
  1201. metricRelabelings: []
  1202. # - sourceLabels: [__name__, image]
  1203. # separator: ;
  1204. # regex: container_([a-z_]+);
  1205. # replacement: $1
  1206. # action: drop
  1207. # - sourceLabels: [__name__]
  1208. # separator: ;
  1209. # regex: container_(network_tcp_usage_total|network_udp_usage_total|tasks_state|cpu_load_average_10s)
  1210. # replacement: $1
  1211. # action: drop
  1212. ## RelabelConfigs to apply to samples before scraping
  1213. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
  1214. ##
  1215. ## metrics_path is required to match upstream rules and charts
  1216. relabelings:
  1217. - action: replace
  1218. sourceLabels: [__metrics_path__]
  1219. targetLabel: metrics_path
  1220. # - sourceLabels: [__meta_kubernetes_pod_node_name]
  1221. # separator: ;
  1222. # regex: ^(.*)$
  1223. # targetLabel: nodename
  1224. # replacement: $1
  1225. # action: replace
  1226. ## Additional labels
  1227. ##
  1228. additionalLabels: {}
  1229. # foo: bar
  1230. ## Component scraping the kube controller manager
  1231. ##
  1232. kubeControllerManager:
  1233. enabled: true
  1234. ## If your kube controller manager is not deployed as a pod, specify IPs it can be found on
  1235. ##
  1236. endpoints: []
  1237. # - 10.141.4.22
  1238. # - 10.141.4.23
  1239. # - 10.141.4.24
  1240. ## If using kubeControllerManager.endpoints only the port and targetPort are used
  1241. ##
  1242. service:
  1243. enabled: true
  1244. ## If null or unset, the value is determined dynamically based on target Kubernetes version due to change
  1245. ## of default port in Kubernetes 1.22.
  1246. ##
  1247. port: null
  1248. targetPort: null
  1249. # selector:
  1250. # component: kube-controller-manager
  1251. serviceMonitor:
  1252. enabled: true
  1253. ## Scrape interval. If not set, the Prometheus default scrape interval is used.
  1254. ##
  1255. interval: ""
  1256. ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
  1257. ##
  1258. sampleLimit: 0
  1259. ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
  1260. ##
  1261. targetLimit: 0
  1262. ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  1263. ##
  1264. labelLimit: 0
  1265. ## Per-scrape limit on length of labels name that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  1266. ##
  1267. labelNameLengthLimit: 0
  1268. ## Per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  1269. ##
  1270. labelValueLengthLimit: 0
  1271. ## proxyUrl: URL of a proxy that should be used for scraping.
  1272. ##
  1273. proxyUrl: ""
  1274. ## port: Name of the port the metrics will be scraped from
  1275. ##
  1276. port: http-metrics
  1277. jobLabel: jobLabel
  1278. selector: {}
  1279. # matchLabels:
  1280. # component: kube-controller-manager
  1281. ## Enable scraping kube-controller-manager over https.
  1282. ## Requires proper certs (not self-signed) and delegated authentication/authorization checks.
  1283. ## If null or unset, the value is determined dynamically based on target Kubernetes version.
  1284. ##
  1285. https: null
  1286. # Skip TLS certificate validation when scraping
  1287. insecureSkipVerify: null
  1288. # Name of the server to use when validating TLS certificate
  1289. serverName: null
  1290. ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
  1291. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
  1292. ##
  1293. metricRelabelings: []
  1294. # - action: keep
  1295. # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
  1296. # sourceLabels: [__name__]
  1297. ## RelabelConfigs to apply to samples before scraping
  1298. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
  1299. ##
  1300. relabelings: []
  1301. # - sourceLabels: [__meta_kubernetes_pod_node_name]
  1302. # separator: ;
  1303. # regex: ^(.*)$
  1304. # targetLabel: nodename
  1305. # replacement: $1
  1306. # action: replace
  1307. ## Additional labels
  1308. ##
  1309. additionalLabels: {}
  1310. # foo: bar
  1311. ## Component scraping coreDns. Use either this or kubeDns
  1312. ##
  1313. coreDns:
  1314. enabled: true
  1315. service:
  1316. enabled: true
  1317. port: 9153
  1318. targetPort: 9153
  1319. # selector:
  1320. # k8s-app: kube-dns
  1321. serviceMonitor:
  1322. enabled: true
  1323. ## Scrape interval. If not set, the Prometheus default scrape interval is used.
  1324. ##
  1325. interval: ""
  1326. ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
  1327. ##
  1328. sampleLimit: 0
  1329. ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
  1330. ##
  1331. targetLimit: 0
  1332. ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  1333. ##
  1334. labelLimit: 0
  1335. ## Per-scrape limit on length of labels name that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  1336. ##
  1337. labelNameLengthLimit: 0
  1338. ## Per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  1339. ##
  1340. labelValueLengthLimit: 0
  1341. ## proxyUrl: URL of a proxy that should be used for scraping.
  1342. ##
  1343. proxyUrl: ""
  1344. ## port: Name of the port the metrics will be scraped from
  1345. ##
  1346. port: http-metrics
  1347. jobLabel: jobLabel
  1348. selector: {}
  1349. # matchLabels:
  1350. # k8s-app: kube-dns
  1351. ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
  1352. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
  1353. ##
  1354. metricRelabelings: []
  1355. # - action: keep
  1356. # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
  1357. # sourceLabels: [__name__]
  1358. ## RelabelConfigs to apply to samples before scraping
  1359. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
  1360. ##
  1361. relabelings: []
  1362. # - sourceLabels: [__meta_kubernetes_pod_node_name]
  1363. # separator: ;
  1364. # regex: ^(.*)$
  1365. # targetLabel: nodename
  1366. # replacement: $1
  1367. # action: replace
  1368. ## Additional labels
  1369. ##
  1370. additionalLabels: {}
  1371. # foo: bar
  1372. ## Component scraping kubeDns. Use either this or coreDns
  1373. ##
  1374. kubeDns:
  1375. enabled: false
  1376. service:
  1377. dnsmasq:
  1378. port: 10054
  1379. targetPort: 10054
  1380. skydns:
  1381. port: 10055
  1382. targetPort: 10055
  1383. # selector:
  1384. # k8s-app: kube-dns
  1385. serviceMonitor:
  1386. ## Scrape interval. If not set, the Prometheus default scrape interval is used.
  1387. ##
  1388. interval: ""
  1389. ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
  1390. ##
  1391. sampleLimit: 0
  1392. ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
  1393. ##
  1394. targetLimit: 0
  1395. ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  1396. ##
  1397. labelLimit: 0
  1398. ## Per-scrape limit on length of labels name that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  1399. ##
  1400. labelNameLengthLimit: 0
  1401. ## Per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  1402. ##
  1403. labelValueLengthLimit: 0
  1404. ## proxyUrl: URL of a proxy that should be used for scraping.
  1405. ##
  1406. proxyUrl: ""
  1407. jobLabel: jobLabel
  1408. selector: {}
  1409. # matchLabels:
  1410. # k8s-app: kube-dns
  1411. ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
  1412. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
  1413. ##
  1414. metricRelabelings: []
  1415. # - action: keep
  1416. # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
  1417. # sourceLabels: [__name__]
  1418. ## RelabelConfigs to apply to samples before scraping
  1419. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
  1420. ##
  1421. relabelings: []
  1422. # - sourceLabels: [__meta_kubernetes_pod_node_name]
  1423. # separator: ;
  1424. # regex: ^(.*)$
  1425. # targetLabel: nodename
  1426. # replacement: $1
  1427. # action: replace
  1428. ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
  1429. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
  1430. ##
  1431. dnsmasqMetricRelabelings: []
  1432. # - action: keep
  1433. # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
  1434. # sourceLabels: [__name__]
  1435. ## RelabelConfigs to apply to samples before scraping
  1436. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
  1437. ##
  1438. dnsmasqRelabelings: []
  1439. # - sourceLabels: [__meta_kubernetes_pod_node_name]
  1440. # separator: ;
  1441. # regex: ^(.*)$
  1442. # targetLabel: nodename
  1443. # replacement: $1
  1444. # action: replace
  1445. ## Additional labels
  1446. ##
  1447. additionalLabels: {}
  1448. # foo: bar
  1449. ## Component scraping etcd
  1450. ##
  1451. kubeEtcd:
  1452. enabled: true
  1453. ## If your etcd is not deployed as a pod, specify IPs it can be found on
  1454. ##
  1455. endpoints: []
  1456. # - 10.141.4.22
  1457. # - 10.141.4.23
  1458. # - 10.141.4.24
  1459. ## Etcd service. If using kubeEtcd.endpoints only the port and targetPort are used
  1460. ##
  1461. service:
  1462. enabled: true
  1463. port: 2381
  1464. targetPort: 2381
  1465. # selector:
  1466. # component: etcd
  1467. ## Configure secure access to the etcd cluster by loading a secret into prometheus and
  1468. ## specifying security configuration below. For example, with a secret named etcd-client-cert
  1469. ##
  1470. ## serviceMonitor:
  1471. ## scheme: https
  1472. ## insecureSkipVerify: false
  1473. ## serverName: localhost
  1474. ## caFile: /etc/prometheus/secrets/etcd-client-cert/etcd-ca
  1475. ## certFile: /etc/prometheus/secrets/etcd-client-cert/etcd-client
  1476. ## keyFile: /etc/prometheus/secrets/etcd-client-cert/etcd-client-key
  1477. ##
  1478. serviceMonitor:
  1479. enabled: true
  1480. ## Scrape interval. If not set, the Prometheus default scrape interval is used.
  1481. ##
  1482. interval: ""
  1483. ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
  1484. ##
  1485. sampleLimit: 0
  1486. ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
  1487. ##
  1488. targetLimit: 0
  1489. ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  1490. ##
  1491. labelLimit: 0
  1492. ## Per-scrape limit on length of labels name that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  1493. ##
  1494. labelNameLengthLimit: 0
  1495. ## Per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  1496. ##
  1497. labelValueLengthLimit: 0
  1498. ## proxyUrl: URL of a proxy that should be used for scraping.
  1499. ##
  1500. proxyUrl: ""
  1501. scheme: http
  1502. insecureSkipVerify: false
  1503. serverName: ""
  1504. caFile: ""
  1505. certFile: ""
  1506. keyFile: ""
  1507. ## port: Name of the port the metrics will be scraped from
  1508. ##
  1509. port: http-metrics
  1510. jobLabel: jobLabel
  1511. selector: {}
  1512. # matchLabels:
  1513. # component: etcd
  1514. ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
  1515. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
  1516. ##
  1517. metricRelabelings: []
  1518. # - action: keep
  1519. # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
  1520. # sourceLabels: [__name__]
  1521. ## RelabelConfigs to apply to samples before scraping
  1522. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
  1523. ##
  1524. relabelings: []
  1525. # - sourceLabels: [__meta_kubernetes_pod_node_name]
  1526. # separator: ;
  1527. # regex: ^(.*)$
  1528. # targetLabel: nodename
  1529. # replacement: $1
  1530. # action: replace
  1531. ## Additional labels
  1532. ##
  1533. additionalLabels: {}
  1534. # foo: bar
  1535. ## Component scraping kube scheduler
  1536. ##
  1537. kubeScheduler:
  1538. enabled: true
  1539. ## If your kube scheduler is not deployed as a pod, specify IPs it can be found on
  1540. ##
  1541. endpoints: []
  1542. # - 10.141.4.22
  1543. # - 10.141.4.23
  1544. # - 10.141.4.24
  1545. ## If using kubeScheduler.endpoints only the port and targetPort are used
  1546. ##
  1547. service:
  1548. enabled: true
  1549. ## If null or unset, the value is determined dynamically based on target Kubernetes version due to change
  1550. ## of default port in Kubernetes 1.23.
  1551. ##
  1552. port: null
  1553. targetPort: null
  1554. # selector:
  1555. # component: kube-scheduler
  1556. serviceMonitor:
  1557. enabled: true
  1558. ## Scrape interval. If not set, the Prometheus default scrape interval is used.
  1559. ##
  1560. interval: ""
  1561. ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
  1562. ##
  1563. sampleLimit: 0
  1564. ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
  1565. ##
  1566. targetLimit: 0
  1567. ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  1568. ##
  1569. labelLimit: 0
  1570. ## Per-scrape limit on length of labels name that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  1571. ##
  1572. labelNameLengthLimit: 0
  1573. ## Per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  1574. ##
  1575. labelValueLengthLimit: 0
  1576. ## proxyUrl: URL of a proxy that should be used for scraping.
  1577. ##
  1578. proxyUrl: ""
  1579. ## Enable scraping kube-scheduler over https.
  1580. ## Requires proper certs (not self-signed) and delegated authentication/authorization checks.
  1581. ## If null or unset, the value is determined dynamically based on target Kubernetes version.
  1582. ##
  1583. https: null
  1584. ## port: Name of the port the metrics will be scraped from
  1585. ##
  1586. port: http-metrics
  1587. jobLabel: jobLabel
  1588. selector: {}
  1589. # matchLabels:
  1590. # component: kube-scheduler
  1591. ## Skip TLS certificate validation when scraping
  1592. insecureSkipVerify: null
  1593. ## Name of the server to use when validating TLS certificate
  1594. serverName: null
  1595. ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
  1596. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
  1597. ##
  1598. metricRelabelings: []
  1599. # - action: keep
  1600. # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
  1601. # sourceLabels: [__name__]
  1602. ## RelabelConfigs to apply to samples before scraping
  1603. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
  1604. ##
  1605. relabelings: []
  1606. # - sourceLabels: [__meta_kubernetes_pod_node_name]
  1607. # separator: ;
  1608. # regex: ^(.*)$
  1609. # targetLabel: nodename
  1610. # replacement: $1
  1611. # action: replace
  1612. ## Additional labels
  1613. ##
  1614. additionalLabels: {}
  1615. # foo: bar
  1616. ## Component scraping kube proxy
  1617. ##
  1618. kubeProxy:
  1619. enabled: true
  1620. ## If your kube proxy is not deployed as a pod, specify IPs it can be found on
  1621. ##
  1622. endpoints: []
  1623. # - 10.141.4.22
  1624. # - 10.141.4.23
  1625. # - 10.141.4.24
  1626. service:
  1627. enabled: true
  1628. port: 10249
  1629. targetPort: 10249
  1630. # selector:
  1631. # k8s-app: kube-proxy
  1632. serviceMonitor:
  1633. enabled: true
  1634. ## Scrape interval. If not set, the Prometheus default scrape interval is used.
  1635. ##
  1636. interval: ""
  1637. ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
  1638. ##
  1639. sampleLimit: 0
  1640. ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
  1641. ##
  1642. targetLimit: 0
  1643. ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  1644. ##
  1645. labelLimit: 0
  1646. ## Per-scrape limit on length of labels name that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  1647. ##
  1648. labelNameLengthLimit: 0
  1649. ## Per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  1650. ##
  1651. labelValueLengthLimit: 0
  1652. ## proxyUrl: URL of a proxy that should be used for scraping.
  1653. ##
  1654. proxyUrl: ""
  1655. ## port: Name of the port the metrics will be scraped from
  1656. ##
  1657. port: http-metrics
  1658. jobLabel: jobLabel
  1659. selector: {}
  1660. # matchLabels:
  1661. # k8s-app: kube-proxy
  1662. ## Enable scraping kube-proxy over https.
  1663. ## Requires proper certs (not self-signed) and delegated authentication/authorization checks
  1664. ##
  1665. https: false
  1666. ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
  1667. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
  1668. ##
  1669. metricRelabelings: []
  1670. # - action: keep
  1671. # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
  1672. # sourceLabels: [__name__]
  1673. ## RelabelConfigs to apply to samples before scraping
  1674. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
  1675. ##
  1676. relabelings: []
  1677. # - action: keep
  1678. # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
  1679. # sourceLabels: [__name__]
  1680. ## Additional labels
  1681. ##
  1682. additionalLabels: {}
  1683. # foo: bar
  1684. ## Component scraping kube state metrics
  1685. ##
  1686. kubeStateMetrics:
  1687. enabled: true
  1688. ## Configuration for kube-state-metrics subchart
  1689. ##
  1690. kube-state-metrics:
  1691. namespaceOverride: ""
  1692. rbac:
  1693. create: true
  1694. releaseLabel: true
  1695. prometheus:
  1696. monitor:
  1697. enabled: true
  1698. ## Scrape interval. If not set, the Prometheus default scrape interval is used.
  1699. ##
  1700. interval: ""
  1701. ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
  1702. ##
  1703. sampleLimit: 0
  1704. ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
  1705. ##
  1706. targetLimit: 0
  1707. ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  1708. ##
  1709. labelLimit: 0
  1710. ## Per-scrape limit on length of labels name that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  1711. ##
  1712. labelNameLengthLimit: 0
  1713. ## Per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  1714. ##
  1715. labelValueLengthLimit: 0
  1716. ## Scrape Timeout. If not set, the Prometheus default scrape timeout is used.
  1717. ##
  1718. scrapeTimeout: ""
  1719. ## proxyUrl: URL of a proxy that should be used for scraping.
  1720. ##
  1721. proxyUrl: ""
  1722. # Keep labels from scraped data, overriding server-side labels
  1723. ##
  1724. honorLabels: true
  1725. ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
  1726. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
  1727. ##
  1728. metricRelabelings: []
  1729. # - action: keep
  1730. # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
  1731. # sourceLabels: [__name__]
  1732. ## RelabelConfigs to apply to samples before scraping
  1733. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
  1734. ##
  1735. relabelings: []
  1736. # - sourceLabels: [__meta_kubernetes_pod_node_name]
  1737. # separator: ;
  1738. # regex: ^(.*)$
  1739. # targetLabel: nodename
  1740. # replacement: $1
  1741. # action: replace
  1742. selfMonitor:
  1743. enabled: false
  1744. ## Deploy node exporter as a daemonset to all nodes
  1745. ##
  1746. nodeExporter:
  1747. enabled: true
  1748. operatingSystems:
  1749. linux:
  1750. enabled: true
  1751. darwin:
  1752. enabled: true
  1753. ## ForceDeployDashboard Create dashboard configmap even if nodeExporter deployment has been disabled
  1754. ##
  1755. forceDeployDashboards: false
  1756. ## Configuration for prometheus-node-exporter subchart
  1757. ##
  1758. prometheus-node-exporter:
  1759. namespaceOverride: ""
  1760. podLabels:
  1761. ## Add the 'node-exporter' label to be used by serviceMonitor to match standard common usage in rules and grafana dashboards
  1762. ##
  1763. jobLabel: node-exporter
  1764. releaseLabel: true
  1765. extraArgs:
  1766. - --collector.filesystem.mount-points-exclude=^/(dev|proc|sys|var/lib/docker/.+|var/lib/kubelet/.+)($|/)
  1767. - --collector.filesystem.fs-types-exclude=^(autofs|binfmt_misc|bpf|cgroup2?|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|iso9660|mqueue|nsfs|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|selinuxfs|squashfs|sysfs|tracefs)$
  1768. service:
  1769. portName: http-metrics
  1770. prometheus:
  1771. monitor:
  1772. enabled: true
  1773. jobLabel: jobLabel
  1774. ## Scrape interval. If not set, the Prometheus default scrape interval is used.
  1775. ##
  1776. interval: ""
  1777. ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
  1778. ##
  1779. sampleLimit: 0
  1780. ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
  1781. ##
  1782. targetLimit: 0
  1783. ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  1784. ##
  1785. labelLimit: 0
  1786. ## Per-scrape limit on length of labels name that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  1787. ##
  1788. labelNameLengthLimit: 0
  1789. ## Per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  1790. ##
  1791. labelValueLengthLimit: 0
  1792. ## How long until a scrape request times out. If not set, the Prometheus default scape timeout is used.
  1793. ##
  1794. scrapeTimeout: ""
  1795. ## proxyUrl: URL of a proxy that should be used for scraping.
  1796. ##
  1797. proxyUrl: ""
  1798. ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
  1799. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
  1800. ##
  1801. metricRelabelings: []
  1802. # - sourceLabels: [__name__]
  1803. # separator: ;
  1804. # regex: ^node_mountstats_nfs_(event|operations|transport)_.+
  1805. # replacement: $1
  1806. # action: drop
  1807. ## RelabelConfigs to apply to samples before scraping
  1808. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
  1809. ##
  1810. relabelings: []
  1811. # - sourceLabels: [__meta_kubernetes_pod_node_name]
  1812. # separator: ;
  1813. # regex: ^(.*)$
  1814. # targetLabel: nodename
  1815. # replacement: $1
  1816. # action: replace
  1817. rbac:
  1818. ## If true, create PSPs for node-exporter
  1819. ##
  1820. pspEnabled: false
  1821. ## Manages Prometheus and Alertmanager components
  1822. ##
  1823. prometheusOperator:
  1824. enabled: true
  1825. ## Use '{{ template "kube-prometheus-stack.fullname" . }}-operator' by default
  1826. fullnameOverride: ""
  1827. ## Number of old replicasets to retain ##
  1828. ## The default value is 10, 0 will garbage-collect old replicasets ##
  1829. revisionHistoryLimit: 10
  1830. ## Strategy of the deployment
  1831. ##
  1832. strategy: {}
  1833. ## Prometheus-Operator v0.39.0 and later support TLS natively.
  1834. ##
  1835. tls:
  1836. enabled: true
  1837. # Value must match version names from https://golang.org/pkg/crypto/tls/#pkg-constants
  1838. tlsMinVersion: VersionTLS13
  1839. # The default webhook port is 10250 in order to work out-of-the-box in GKE private clusters and avoid adding firewall rules.
  1840. internalPort: 10250
  1841. ## Admission webhook support for PrometheusRules resources added in Prometheus Operator 0.30 can be enabled to prevent incorrectly formatted
  1842. ## rules from making their way into prometheus and potentially preventing the container from starting
  1843. admissionWebhooks:
  1844. ## Valid values: Fail, Ignore, IgnoreOnInstallOnly
  1845. ## IgnoreOnInstallOnly - If Release.IsInstall returns "true", set "Ignore" otherwise "Fail"
  1846. failurePolicy: ""
  1847. ## The default timeoutSeconds is 10 and the maximum value is 30.
  1848. timeoutSeconds: 10
  1849. enabled: true
  1850. ## A PEM encoded CA bundle which will be used to validate the webhook's server certificate.
  1851. ## If unspecified, system trust roots on the apiserver are used.
  1852. caBundle: ""
  1853. ## If enabled, generate a self-signed certificate, then patch the webhook configurations with the generated data.
  1854. ## On chart upgrades (or if the secret exists) the cert will not be re-generated. You can use this to provide your own
  1855. ## certs ahead of time if you wish.
  1856. ##
  1857. annotations: {}
  1858. # argocd.argoproj.io/hook: PreSync
  1859. # argocd.argoproj.io/hook-delete-policy: HookSucceeded
  1860. namespaceSelector: {}
  1861. deployment:
  1862. enabled: false
  1863. ## Number of replicas
  1864. ##
  1865. replicas: 1
  1866. ## Strategy of the deployment
  1867. ##
  1868. strategy: {}
  1869. # Ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
  1870. podDisruptionBudget: {}
  1871. # maxUnavailable: 1
  1872. # minAvailable: 1
  1873. ## Number of old replicasets to retain ##
  1874. ## The default value is 10, 0 will garbage-collect old replicasets ##
  1875. revisionHistoryLimit: 10
  1876. ## Prometheus-Operator v0.39.0 and later support TLS natively.
  1877. ##
  1878. tls:
  1879. enabled: true
  1880. # Value must match version names from https://golang.org/pkg/crypto/tls/#pkg-constants
  1881. tlsMinVersion: VersionTLS13
  1882. # The default webhook port is 10250 in order to work out-of-the-box in GKE private clusters and avoid adding firewall rules.
  1883. internalPort: 10250
  1884. ## Service account for Prometheus Operator Webhook to use.
  1885. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
  1886. ##
  1887. serviceAccount:
  1888. automountServiceAccountToken: false
  1889. create: true
  1890. name: ""
  1891. ## Configuration for Prometheus operator Webhook service
  1892. ##
  1893. service:
  1894. annotations: {}
  1895. labels: {}
  1896. clusterIP: ""
  1897. ## Port to expose on each node
  1898. ## Only used if service.type is 'NodePort'
  1899. ##
  1900. nodePort: 31080
  1901. nodePortTls: 31443
  1902. ## Additional ports to open for Prometheus operator Webhook service
  1903. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#multi-port-services
  1904. ##
  1905. additionalPorts: []
  1906. ## Loadbalancer IP
  1907. ## Only use if service.type is "LoadBalancer"
  1908. ##
  1909. loadBalancerIP: ""
  1910. loadBalancerSourceRanges: []
  1911. ## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
  1912. ##
  1913. externalTrafficPolicy: Cluster
  1914. ## Service type
  1915. ## NodePort, ClusterIP, LoadBalancer
  1916. ##
  1917. type: ClusterIP
  1918. ## List of IP addresses at which the Prometheus server service is available
  1919. ## Ref: https://kubernetes.io/docs/user-guide/services/#external-ips
  1920. ##
  1921. externalIPs: []
  1922. # ## Labels to add to the operator webhook deployment
  1923. # ##
  1924. labels: {}
  1925. ## Annotations to add to the operator webhook deployment
  1926. ##
  1927. annotations: {}
  1928. ## Labels to add to the operator webhook pod
  1929. ##
  1930. podLabels: {}
  1931. ## Annotations to add to the operator webhook pod
  1932. ##
  1933. podAnnotations: {}
  1934. ## Assign a PriorityClassName to pods if set
  1935. # priorityClassName: ""
  1936. ## Define Log Format
  1937. # Use logfmt (default) or json logging
  1938. # logFormat: logfmt
  1939. ## Decrease log verbosity to errors only
  1940. # logLevel: error
  1941. ## Prometheus-operator webhook image
  1942. ##
  1943. image:
  1944. registry: quay.io
  1945. repository: prometheus-operator/admission-webhook
  1946. # if not set appVersion field from Chart.yaml is used
  1947. tag: ""
  1948. sha: ""
  1949. pullPolicy: IfNotPresent
  1950. ## Define Log Format
  1951. # Use logfmt (default) or json logging
  1952. # logFormat: logfmt
  1953. ## Decrease log verbosity to errors only
  1954. # logLevel: error
  1955. ## Liveness probe
  1956. ##
  1957. livenessProbe:
  1958. enabled: true
  1959. failureThreshold: 3
  1960. initialDelaySeconds: 30
  1961. periodSeconds: 10
  1962. successThreshold: 1
  1963. timeoutSeconds: 1
  1964. ## Readiness probe
  1965. ##
  1966. readinessProbe:
  1967. enabled: true
  1968. failureThreshold: 3
  1969. initialDelaySeconds: 5
  1970. periodSeconds: 10
  1971. successThreshold: 1
  1972. timeoutSeconds: 1
  1973. ## Resource limits & requests
  1974. ##
  1975. resources: {}
  1976. # limits:
  1977. # cpu: 200m
  1978. # memory: 200Mi
  1979. # requests:
  1980. # cpu: 100m
  1981. # memory: 100Mi
  1982. # Required for use in managed kubernetes clusters (such as AWS EKS) with custom CNI (such as calico),
  1983. # because control-plane managed by AWS cannot communicate with pods' IP CIDR and admission webhooks are not working
  1984. ##
  1985. hostNetwork: false
  1986. ## Define which Nodes the Pods are scheduled on.
  1987. ## ref: https://kubernetes.io/docs/user-guide/node-selection/
  1988. ##
  1989. nodeSelector: {}
  1990. ## Tolerations for use with node taints
  1991. ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
  1992. ##
  1993. tolerations: []
  1994. # - key: "key"
  1995. # operator: "Equal"
  1996. # value: "value"
  1997. # effect: "NoSchedule"
  1998. ## Assign custom affinity rules to the prometheus operator
  1999. ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
  2000. ##
  2001. affinity: {}
  2002. # nodeAffinity:
  2003. # requiredDuringSchedulingIgnoredDuringExecution:
  2004. # nodeSelectorTerms:
  2005. # - matchExpressions:
  2006. # - key: kubernetes.io/e2e-az-name
  2007. # operator: In
  2008. # values:
  2009. # - e2e-az1
  2010. # - e2e-az2
  2011. dnsConfig: {}
  2012. # nameservers:
  2013. # - 1.2.3.4
  2014. # searches:
  2015. # - ns1.svc.cluster-domain.example
  2016. # - my.dns.search.suffix
  2017. # options:
  2018. # - name: ndots
  2019. # value: "2"
  2020. # - name: edns0
  2021. securityContext:
  2022. fsGroup: 65534
  2023. runAsGroup: 65534
  2024. runAsNonRoot: true
  2025. runAsUser: 65534
  2026. seccompProfile:
  2027. type: RuntimeDefault
  2028. ## Container-specific security context configuration
  2029. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
  2030. ##
  2031. containerSecurityContext:
  2032. allowPrivilegeEscalation: false
  2033. readOnlyRootFilesystem: true
  2034. capabilities:
  2035. drop:
  2036. - ALL
  2037. ## If false then the user will opt out of automounting API credentials.
  2038. ##
  2039. automountServiceAccountToken: true
  2040. patch:
  2041. enabled: true
  2042. image:
  2043. registry: registry.k8s.io
  2044. repository: ingress-nginx/kube-webhook-certgen
  2045. tag: v20221220-controller-v1.5.1-58-g787ea74b6
  2046. sha: ""
  2047. pullPolicy: IfNotPresent
  2048. resources: {}
  2049. ## Provide a priority class name to the webhook patching job
  2050. ##
  2051. priorityClassName: ""
  2052. annotations: {}
  2053. # argocd.argoproj.io/hook: PreSync
  2054. # argocd.argoproj.io/hook-delete-policy: HookSucceeded
  2055. podAnnotations: {}
  2056. nodeSelector: {}
  2057. affinity: {}
  2058. tolerations: []
  2059. ## SecurityContext holds pod-level security attributes and common container settings.
  2060. ## This defaults to non root user with uid 2000 and gid 2000. *v1.PodSecurityContext false
  2061. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
  2062. ##
  2063. securityContext:
  2064. runAsGroup: 2000
  2065. runAsNonRoot: true
  2066. runAsUser: 2000
  2067. seccompProfile:
  2068. type: RuntimeDefault
  2069. # Security context for create job container
  2070. createSecretJob:
  2071. securityContext:
  2072. allowPrivilegeEscalation: false
  2073. readOnlyRootFilesystem: true
  2074. capabilities:
  2075. drop:
  2076. - ALL
  2077. # Security context for patch job container
  2078. patchWebhookJob:
  2079. securityContext:
  2080. allowPrivilegeEscalation: false
  2081. readOnlyRootFilesystem: true
  2082. capabilities:
  2083. drop:
  2084. - ALL
  2085. # Use certmanager to generate webhook certs
  2086. certManager:
  2087. enabled: false
  2088. # self-signed root certificate
  2089. rootCert:
  2090. duration: "" # default to be 5y
  2091. admissionCert:
  2092. duration: "" # default to be 1y
  2093. # issuerRef:
  2094. # name: "issuer"
  2095. # kind: "ClusterIssuer"
  2096. ## Namespaces to scope the interaction of the Prometheus Operator and the apiserver (allow list).
  2097. ## This is mutually exclusive with denyNamespaces. Setting this to an empty object will disable the configuration
  2098. ##
  2099. namespaces: {}
  2100. # releaseNamespace: true
  2101. # additional:
  2102. # - kube-system
  2103. ## Namespaces not to scope the interaction of the Prometheus Operator (deny list).
  2104. ##
  2105. denyNamespaces: []
  2106. ## Filter namespaces to look for prometheus-operator custom resources
  2107. ##
  2108. alertmanagerInstanceNamespaces: []
  2109. alertmanagerConfigNamespaces: []
  2110. prometheusInstanceNamespaces: []
  2111. thanosRulerInstanceNamespaces: []
  2112. ## The clusterDomain value will be added to the cluster.peer option of the alertmanager.
  2113. ## Without this specified option cluster.peer will have value alertmanager-monitoring-alertmanager-0.alertmanager-operated:9094 (default value)
  2114. ## With this specified option cluster.peer will have value alertmanager-monitoring-alertmanager-0.alertmanager-operated.namespace.svc.cluster-domain:9094
  2115. ##
  2116. # clusterDomain: "cluster.local"
  2117. networkPolicy:
  2118. ## Enable creation of NetworkPolicy resources.
  2119. ##
  2120. enabled: false
  2121. ## Flavor of the network policy to use.
  2122. # Can be:
  2123. # * kubernetes for networking.k8s.io/v1/NetworkPolicy
  2124. # * cilium for cilium.io/v2/CiliumNetworkPolicy
  2125. flavor: kubernetes
  2126. # cilium:
  2127. # egress:
  2128. ## match labels used in selector
  2129. # matchLabels: {}
  2130. ## Service account for Prometheus Operator to use.
  2131. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
  2132. ##
  2133. serviceAccount:
  2134. create: true
  2135. name: ""
  2136. automountServiceAccountToken: true
  2137. ## Configuration for Prometheus operator service
  2138. ##
  2139. service:
  2140. annotations: {}
  2141. labels: {}
  2142. clusterIP: ""
  2143. ## Port to expose on each node
  2144. ## Only used if service.type is 'NodePort'
  2145. ##
  2146. nodePort: 30080
  2147. nodePortTls: 30443
  2148. ## Additional ports to open for Prometheus operator service
  2149. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#multi-port-services
  2150. ##
  2151. additionalPorts: []
  2152. ## Loadbalancer IP
  2153. ## Only use if service.type is "LoadBalancer"
  2154. ##
  2155. loadBalancerIP: ""
  2156. loadBalancerSourceRanges: []
  2157. ## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
  2158. ##
  2159. externalTrafficPolicy: Cluster
  2160. ## Service type
  2161. ## NodePort, ClusterIP, LoadBalancer
  2162. ##
  2163. type: ClusterIP
  2164. ## List of IP addresses at which the Prometheus server service is available
  2165. ## Ref: https://kubernetes.io/docs/user-guide/services/#external-ips
  2166. ##
  2167. externalIPs: []
  2168. # ## Labels to add to the operator deployment
  2169. # ##
  2170. labels: {}
  2171. ## Annotations to add to the operator deployment
  2172. ##
  2173. annotations: {}
  2174. ## Labels to add to the operator pod
  2175. ##
  2176. podLabels: {}
  2177. ## Annotations to add to the operator pod
  2178. ##
  2179. podAnnotations: {}
  2180. ## Assign a PriorityClassName to pods if set
  2181. # priorityClassName: ""
  2182. ## Define Log Format
  2183. # Use logfmt (default) or json logging
  2184. # logFormat: logfmt
  2185. ## Decrease log verbosity to errors only
  2186. # logLevel: error
  2187. kubeletService:
  2188. ## If true, the operator will create and maintain a service for scraping kubelets
  2189. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/helm/prometheus-operator/README.md
  2190. ##
  2191. enabled: true
  2192. namespace: kube-system
  2193. ## Use '{{ template "kube-prometheus-stack.fullname" . }}-kubelet' by default
  2194. name: ""
  2195. ## Create a servicemonitor for the operator
  2196. ##
  2197. serviceMonitor:
  2198. ## If true, create a serviceMonitor for prometheus operator
  2199. ##
  2200. selfMonitor: true
  2201. ## Labels for ServiceMonitor
  2202. additionalLabels: {}
  2203. ## Scrape interval. If not set, the Prometheus default scrape interval is used.
  2204. ##
  2205. interval: ""
  2206. ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
  2207. ##
  2208. sampleLimit: 0
  2209. ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
  2210. ##
  2211. targetLimit: 0
  2212. ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  2213. ##
  2214. labelLimit: 0
  2215. ## Per-scrape limit on length of labels name that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  2216. ##
  2217. labelNameLengthLimit: 0
  2218. ## Per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  2219. ##
  2220. labelValueLengthLimit: 0
  2221. ## Scrape timeout. If not set, the Prometheus default scrape timeout is used.
  2222. scrapeTimeout: ""
  2223. ## Metric relabel configs to apply to samples before ingestion.
  2224. ##
  2225. metricRelabelings: []
  2226. # - action: keep
  2227. # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
  2228. # sourceLabels: [__name__]
  2229. # relabel configs to apply to samples before ingestion.
  2230. ##
  2231. relabelings: []
  2232. # - sourceLabels: [__meta_kubernetes_pod_node_name]
  2233. # separator: ;
  2234. # regex: ^(.*)$
  2235. # targetLabel: nodename
  2236. # replacement: $1
  2237. # action: replace
  2238. ## Resource limits & requests
  2239. ##
  2240. resources: {}
  2241. # limits:
  2242. # cpu: 200m
  2243. # memory: 200Mi
  2244. # requests:
  2245. # cpu: 100m
  2246. # memory: 100Mi
  2247. ## Operator Environment
  2248. ## env:
  2249. ## VARIABLE: value
  2250. env:
  2251. GOGC: "30"
  2252. # Required for use in managed kubernetes clusters (such as AWS EKS) with custom CNI (such as calico),
  2253. # because control-plane managed by AWS cannot communicate with pods' IP CIDR and admission webhooks are not working
  2254. ##
  2255. hostNetwork: false
  2256. ## Define which Nodes the Pods are scheduled on.
  2257. ## ref: https://kubernetes.io/docs/user-guide/node-selection/
  2258. ##
  2259. nodeSelector: {}
  2260. ## Tolerations for use with node taints
  2261. ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
  2262. ##
  2263. tolerations: []
  2264. # - key: "key"
  2265. # operator: "Equal"
  2266. # value: "value"
  2267. # effect: "NoSchedule"
  2268. ## Assign custom affinity rules to the prometheus operator
  2269. ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
  2270. ##
  2271. affinity: {}
  2272. # nodeAffinity:
  2273. # requiredDuringSchedulingIgnoredDuringExecution:
  2274. # nodeSelectorTerms:
  2275. # - matchExpressions:
  2276. # - key: kubernetes.io/e2e-az-name
  2277. # operator: In
  2278. # values:
  2279. # - e2e-az1
  2280. # - e2e-az2
  2281. dnsConfig: {}
  2282. # nameservers:
  2283. # - 1.2.3.4
  2284. # searches:
  2285. # - ns1.svc.cluster-domain.example
  2286. # - my.dns.search.suffix
  2287. # options:
  2288. # - name: ndots
  2289. # value: "2"
  2290. # - name: edns0
  2291. securityContext:
  2292. fsGroup: 65534
  2293. runAsGroup: 65534
  2294. runAsNonRoot: true
  2295. runAsUser: 65534
  2296. seccompProfile:
  2297. type: RuntimeDefault
  2298. ## Container-specific security context configuration
  2299. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
  2300. ##
  2301. containerSecurityContext:
  2302. allowPrivilegeEscalation: false
  2303. readOnlyRootFilesystem: true
  2304. capabilities:
  2305. drop:
  2306. - ALL
  2307. # Enable vertical pod autoscaler support for prometheus-operator
  2308. verticalPodAutoscaler:
  2309. enabled: false
  2310. # Recommender responsible for generating recommendation for the object.
  2311. # List should be empty (then the default recommender will generate the recommendation)
  2312. # or contain exactly one recommender.
  2313. # recommenders:
  2314. # - name: custom-recommender-performance
  2315. # List of resources that the vertical pod autoscaler can control. Defaults to cpu and memory
  2316. controlledResources: []
  2317. # Specifies which resource values should be controlled: RequestsOnly or RequestsAndLimits.
  2318. # controlledValues: RequestsAndLimits
  2319. # Define the max allowed resources for the pod
  2320. maxAllowed: {}
  2321. # cpu: 200m
  2322. # memory: 100Mi
  2323. # Define the min allowed resources for the pod
  2324. minAllowed: {}
  2325. # cpu: 200m
  2326. # memory: 100Mi
  2327. updatePolicy:
  2328. # Specifies minimal number of replicas which need to be alive for VPA Updater to attempt pod eviction
  2329. # minReplicas: 1
  2330. # Specifies whether recommended updates are applied when a Pod is started and whether recommended updates
  2331. # are applied during the life of a Pod. Possible values are "Off", "Initial", "Recreate", and "Auto".
  2332. updateMode: Auto
  2333. ## Prometheus-operator image
  2334. ##
  2335. image:
  2336. registry: quay.io
  2337. repository: prometheus-operator/prometheus-operator
  2338. # if not set appVersion field from Chart.yaml is used
  2339. tag: ""
  2340. sha: ""
  2341. pullPolicy: IfNotPresent
  2342. ## Prometheus image to use for prometheuses managed by the operator
  2343. ##
  2344. # prometheusDefaultBaseImage: prometheus/prometheus
  2345. ## Prometheus image registry to use for prometheuses managed by the operator
  2346. ##
  2347. # prometheusDefaultBaseImageRegistry: quay.io
  2348. ## Alertmanager image to use for alertmanagers managed by the operator
  2349. ##
  2350. # alertmanagerDefaultBaseImage: prometheus/alertmanager
  2351. ## Alertmanager image registry to use for alertmanagers managed by the operator
  2352. ##
  2353. # alertmanagerDefaultBaseImageRegistry: quay.io
  2354. ## Prometheus-config-reloader
  2355. ##
  2356. prometheusConfigReloader:
  2357. image:
  2358. registry: quay.io
  2359. repository: prometheus-operator/prometheus-config-reloader
  2360. # if not set appVersion field from Chart.yaml is used
  2361. tag: ""
  2362. sha: ""
  2363. # add prometheus config reloader liveness and readiness probe. Default: false
  2364. enableProbe: false
  2365. # resource config for prometheusConfigReloader
  2366. resources: {}
  2367. # requests:
  2368. # cpu: 200m
  2369. # memory: 50Mi
  2370. # limits:
  2371. # cpu: 200m
  2372. # memory: 50Mi
  2373. ## Thanos side-car image when configured
  2374. ##
  2375. thanosImage:
  2376. registry: quay.io
  2377. repository: thanos/thanos
  2378. tag: v0.34.1
  2379. sha: ""
  2380. ## Set a Label Selector to filter watched prometheus and prometheusAgent
  2381. ##
  2382. prometheusInstanceSelector: ""
  2383. ## Set a Label Selector to filter watched alertmanager
  2384. ##
  2385. alertmanagerInstanceSelector: ""
  2386. ## Set a Label Selector to filter watched thanosRuler
  2387. thanosRulerInstanceSelector: ""
  2388. ## Set a Field Selector to filter watched secrets
  2389. ##
  2390. secretFieldSelector: "type!=kubernetes.io/dockercfg,type!=kubernetes.io/service-account-token,type!=helm.sh/release.v1"
  2391. ## If false then the user will opt out of automounting API credentials.
  2392. ##
  2393. automountServiceAccountToken: true
  2394. ## Additional volumes
  2395. ##
  2396. extraVolumes: []
  2397. ## Additional volume mounts
  2398. ##
  2399. extraVolumeMounts: []
  2400. ## Deploy a Prometheus instance
  2401. ##
  2402. prometheus:
  2403. enabled: true
  2404. ## Toggle prometheus into agent mode
  2405. ## Note many of features described below (e.g. rules, query, alerting, remote read, thanos) will not work in agent mode.
  2406. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/designs/prometheus-agent.md
  2407. ##
  2408. agentMode: false
  2409. ## Annotations for Prometheus
  2410. ##
  2411. annotations: {}
  2412. ## Configure network policy for the prometheus
  2413. networkPolicy:
  2414. enabled: false
  2415. ## Flavor of the network policy to use.
  2416. # Can be:
  2417. # * kubernetes for networking.k8s.io/v1/NetworkPolicy
  2418. # * cilium for cilium.io/v2/CiliumNetworkPolicy
  2419. flavor: kubernetes
  2420. # cilium:
  2421. # endpointSelector:
  2422. # egress:
  2423. # ingress:
  2424. # egress:
  2425. # - {}
  2426. # ingress:
  2427. # - {}
  2428. # podSelector:
  2429. # matchLabels:
  2430. # app: prometheus
  2431. ## Service account for Prometheuses to use.
  2432. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
  2433. ##
  2434. serviceAccount:
  2435. create: true
  2436. name: ""
  2437. annotations: {}
  2438. automountServiceAccountToken: true
  2439. # Service for thanos service discovery on sidecar
  2440. # Enable this can make Thanos Query can use
  2441. # `--store=dnssrv+_grpc._tcp.${kube-prometheus-stack.fullname}-thanos-discovery.${namespace}.svc.cluster.local` to discovery
  2442. # Thanos sidecar on prometheus nodes
  2443. # (Please remember to change ${kube-prometheus-stack.fullname} and ${namespace}. Not just copy and paste!)
  2444. thanosService:
  2445. enabled: false
  2446. annotations: {}
  2447. labels: {}
  2448. ## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
  2449. ##
  2450. externalTrafficPolicy: Cluster
  2451. ## Service type
  2452. ##
  2453. type: ClusterIP
  2454. ## gRPC port config
  2455. portName: grpc
  2456. port: 10901
  2457. targetPort: "grpc"
  2458. ## HTTP port config (for metrics)
  2459. httpPortName: http
  2460. httpPort: 10902
  2461. targetHttpPort: "http"
  2462. ## ClusterIP to assign
  2463. # Default is to make this a headless service ("None")
  2464. clusterIP: "None"
  2465. ## Port to expose on each node, if service type is NodePort
  2466. ##
  2467. nodePort: 30901
  2468. httpNodePort: 30902
  2469. # ServiceMonitor to scrape Sidecar metrics
  2470. # Needs thanosService to be enabled as well
  2471. thanosServiceMonitor:
  2472. enabled: false
  2473. interval: ""
  2474. ## Additional labels
  2475. ##
  2476. additionalLabels: {}
  2477. ## scheme: HTTP scheme to use for scraping. Can be used with `tlsConfig` for example if using istio mTLS.
  2478. scheme: ""
  2479. ## tlsConfig: TLS configuration to use when scraping the endpoint. For example if using istio mTLS.
  2480. ## Of type: https://github.com/coreos/prometheus-operator/blob/main/Documentation/api.md#tlsconfig
  2481. tlsConfig: {}
  2482. bearerTokenFile:
  2483. ## Metric relabel configs to apply to samples before ingestion.
  2484. metricRelabelings: []
  2485. ## relabel configs to apply to samples before ingestion.
  2486. relabelings: []
  2487. # Service for external access to sidecar
  2488. # Enabling this creates a service to expose thanos-sidecar outside the cluster.
  2489. thanosServiceExternal:
  2490. enabled: false
  2491. annotations: {}
  2492. labels: {}
  2493. loadBalancerIP: ""
  2494. loadBalancerSourceRanges: []
  2495. ## gRPC port config
  2496. portName: grpc
  2497. port: 10901
  2498. targetPort: "grpc"
  2499. ## HTTP port config (for metrics)
  2500. httpPortName: http
  2501. httpPort: 10902
  2502. targetHttpPort: "http"
  2503. ## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
  2504. ##
  2505. externalTrafficPolicy: Cluster
  2506. ## Service type
  2507. ##
  2508. type: LoadBalancer
  2509. ## Port to expose on each node
  2510. ##
  2511. nodePort: 30901
  2512. httpNodePort: 30902
  2513. ## Configuration for Prometheus service
  2514. ##
  2515. service:
  2516. annotations: {}
  2517. labels: {}
  2518. clusterIP: ""
  2519. ## Port for Prometheus Service to listen on
  2520. ##
  2521. port: 9090
  2522. ## To be used with a proxy extraContainer port
  2523. targetPort: 9090
  2524. ## Port for Prometheus Reloader to listen on
  2525. ##
  2526. reloaderWebPort: 8080
  2527. ## List of IP addresses at which the Prometheus server service is available
  2528. ## Ref: https://kubernetes.io/docs/user-guide/services/#external-ips
  2529. ##
  2530. externalIPs: []
  2531. ## Port to expose on each node
  2532. ## Only used if service.type is 'NodePort'
  2533. ##
  2534. nodePort: 30090
  2535. ## Loadbalancer IP
  2536. ## Only use if service.type is "LoadBalancer"
  2537. loadBalancerIP: ""
  2538. loadBalancerSourceRanges: []
  2539. ## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
  2540. ##
  2541. externalTrafficPolicy: Cluster
  2542. ## Service type
  2543. ##
  2544. type: ClusterIP
  2545. ## Additional ports to open for Prometheus service
  2546. ##
  2547. additionalPorts: []
  2548. # additionalPorts:
  2549. # - name: oauth-proxy
  2550. # port: 8081
  2551. # targetPort: 8081
  2552. # - name: oauth-metrics
  2553. # port: 8082
  2554. # targetPort: 8082
  2555. ## Consider that all endpoints are considered "ready" even if the Pods themselves are not
  2556. ## Ref: https://kubernetes.io/docs/reference/kubernetes-api/service-resources/service-v1/#ServiceSpec
  2557. publishNotReadyAddresses: false
  2558. ## If you want to make sure that connections from a particular client are passed to the same Pod each time
  2559. ## Accepts 'ClientIP' or 'None'
  2560. ##
  2561. sessionAffinity: None
  2562. ## If you want to modify the ClientIP sessionAffinity timeout
  2563. ## The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP"
  2564. ##
  2565. sessionAffinityConfig:
  2566. clientIP:
  2567. timeoutSeconds: 10800
  2568. ## Configuration for creating a separate Service for each statefulset Prometheus replica
  2569. ##
  2570. servicePerReplica:
  2571. enabled: false
  2572. annotations: {}
  2573. ## Port for Prometheus Service per replica to listen on
  2574. ##
  2575. port: 9090
  2576. ## To be used with a proxy extraContainer port
  2577. targetPort: 9090
  2578. ## Port to expose on each node
  2579. ## Only used if servicePerReplica.type is 'NodePort'
  2580. ##
  2581. nodePort: 30091
  2582. ## Loadbalancer source IP ranges
  2583. ## Only used if servicePerReplica.type is "LoadBalancer"
  2584. loadBalancerSourceRanges: []
  2585. ## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
  2586. ##
  2587. externalTrafficPolicy: Cluster
  2588. ## Service type
  2589. ##
  2590. type: ClusterIP
  2591. ## Configure pod disruption budgets for Prometheus
  2592. ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/#specifying-a-poddisruptionbudget
  2593. ## This configuration is immutable once created and will require the PDB to be deleted to be changed
  2594. ## https://github.com/kubernetes/kubernetes/issues/45398
  2595. ##
  2596. podDisruptionBudget:
  2597. enabled: false
  2598. minAvailable: 1
  2599. maxUnavailable: ""
  2600. # Ingress exposes thanos sidecar outside the cluster
  2601. thanosIngress:
  2602. enabled: false
  2603. # For Kubernetes >= 1.18 you should specify the ingress-controller via the field ingressClassName
  2604. # See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#specifying-the-class-of-an-ingress
  2605. # ingressClassName: nginx
  2606. annotations: {}
  2607. labels: {}
  2608. servicePort: 10901
  2609. ## Port to expose on each node
  2610. ## Only used if service.type is 'NodePort'
  2611. ##
  2612. nodePort: 30901
  2613. ## Hosts must be provided if Ingress is enabled.
  2614. ##
  2615. hosts: []
  2616. # - thanos-gateway.domain.com
  2617. ## Paths to use for ingress rules
  2618. ##
  2619. paths: []
  2620. # - /
  2621. ## For Kubernetes >= 1.18 you should specify the pathType (determines how Ingress paths should be matched)
  2622. ## See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#better-path-matching-with-path-types
  2623. # pathType: ImplementationSpecific
  2624. ## TLS configuration for Thanos Ingress
  2625. ## Secret must be manually created in the namespace
  2626. ##
  2627. tls: []
  2628. # - secretName: thanos-gateway-tls
  2629. # hosts:
  2630. # - thanos-gateway.domain.com
  2631. #
  2632. ## ExtraSecret can be used to store various data in an extra secret
  2633. ## (use it for example to store hashed basic auth credentials)
  2634. extraSecret:
  2635. ## if not set, name will be auto generated
  2636. # name: ""
  2637. annotations: {}
  2638. data: {}
  2639. # auth: |
  2640. # foo:$apr1$OFG3Xybp$ckL0FHDAkoXYIlH9.cysT0
  2641. # someoneelse:$apr1$DMZX2Z4q$6SbQIfyuLQd.xmo/P0m2c.
  2642. ingress:
  2643. enabled: false
  2644. # For Kubernetes >= 1.18 you should specify the ingress-controller via the field ingressClassName
  2645. # See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#specifying-the-class-of-an-ingress
  2646. # ingressClassName: nginx
  2647. annotations: {}
  2648. labels: {}
  2649. ## Redirect ingress to an additional defined port on the service
  2650. # servicePort: 8081
  2651. ## Hostnames.
  2652. ## Must be provided if Ingress is enabled.
  2653. ##
  2654. # hosts:
  2655. # - prometheus.domain.com
  2656. hosts: []
  2657. ## Paths to use for ingress rules - one path should match the prometheusSpec.routePrefix
  2658. ##
  2659. paths: []
  2660. # - /
  2661. ## For Kubernetes >= 1.18 you should specify the pathType (determines how Ingress paths should be matched)
  2662. ## See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#better-path-matching-with-path-types
  2663. # pathType: ImplementationSpecific
  2664. ## TLS configuration for Prometheus Ingress
  2665. ## Secret must be manually created in the namespace
  2666. ##
  2667. tls: []
  2668. # - secretName: prometheus-general-tls
  2669. # hosts:
  2670. # - prometheus.example.com
  2671. ## Configuration for creating an Ingress that will map to each Prometheus replica service
  2672. ## prometheus.servicePerReplica must be enabled
  2673. ##
  2674. ingressPerReplica:
  2675. enabled: false
  2676. # For Kubernetes >= 1.18 you should specify the ingress-controller via the field ingressClassName
  2677. # See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#specifying-the-class-of-an-ingress
  2678. # ingressClassName: nginx
  2679. annotations: {}
  2680. labels: {}
  2681. ## Final form of the hostname for each per replica ingress is
  2682. ## {{ ingressPerReplica.hostPrefix }}-{{ $replicaNumber }}.{{ ingressPerReplica.hostDomain }}
  2683. ##
  2684. ## Prefix for the per replica ingress that will have `-$replicaNumber`
  2685. ## appended to the end
  2686. hostPrefix: ""
  2687. ## Domain that will be used for the per replica ingress
  2688. hostDomain: ""
  2689. ## Paths to use for ingress rules
  2690. ##
  2691. paths: []
  2692. # - /
  2693. ## For Kubernetes >= 1.18 you should specify the pathType (determines how Ingress paths should be matched)
  2694. ## See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#better-path-matching-with-path-types
  2695. # pathType: ImplementationSpecific
  2696. ## Secret name containing the TLS certificate for Prometheus per replica ingress
  2697. ## Secret must be manually created in the namespace
  2698. tlsSecretName: ""
  2699. ## Separated secret for each per replica Ingress. Can be used together with cert-manager
  2700. ##
  2701. tlsSecretPerReplica:
  2702. enabled: false
  2703. ## Final form of the secret for each per replica ingress is
  2704. ## {{ tlsSecretPerReplica.prefix }}-{{ $replicaNumber }}
  2705. ##
  2706. prefix: "prometheus"
  2707. ## Configure additional options for default pod security policy for Prometheus
  2708. ## ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/
  2709. podSecurityPolicy:
  2710. allowedCapabilities: []
  2711. allowedHostPaths: []
  2712. volumes: []
  2713. serviceMonitor:
  2714. ## If true, create a serviceMonitor for prometheus
  2715. ##
  2716. selfMonitor: true
  2717. ## Scrape interval. If not set, the Prometheus default scrape interval is used.
  2718. ##
  2719. interval: ""
  2720. ## Additional labels
  2721. ##
  2722. additionalLabels: {}
  2723. ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
  2724. ##
  2725. sampleLimit: 0
  2726. ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
  2727. ##
  2728. targetLimit: 0
  2729. ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  2730. ##
  2731. labelLimit: 0
  2732. ## Per-scrape limit on length of labels name that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  2733. ##
  2734. labelNameLengthLimit: 0
  2735. ## Per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  2736. ##
  2737. labelValueLengthLimit: 0
  2738. ## scheme: HTTP scheme to use for scraping. Can be used with `tlsConfig` for example if using istio mTLS.
  2739. scheme: ""
  2740. ## tlsConfig: TLS configuration to use when scraping the endpoint. For example if using istio mTLS.
  2741. ## Of type: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#tlsconfig
  2742. tlsConfig: {}
  2743. bearerTokenFile:
  2744. ## Metric relabel configs to apply to samples before ingestion.
  2745. ##
  2746. metricRelabelings: []
  2747. # - action: keep
  2748. # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
  2749. # sourceLabels: [__name__]
  2750. # relabel configs to apply to samples before ingestion.
  2751. ##
  2752. relabelings: []
  2753. # - sourceLabels: [__meta_kubernetes_pod_node_name]
  2754. # separator: ;
  2755. # regex: ^(.*)$
  2756. # targetLabel: nodename
  2757. # replacement: $1
  2758. # action: replace
  2759. ## Additional Endpoints
  2760. ##
  2761. additionalEndpoints: []
  2762. # - port: oauth-metrics
  2763. # path: /metrics
  2764. ## Settings affecting prometheusSpec
  2765. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#prometheusspec
  2766. ##
  2767. prometheusSpec:
  2768. ## If true, pass --storage.tsdb.max-block-duration=2h to prometheus. This is already done if using Thanos
  2769. ##
  2770. disableCompaction: false
  2771. ## APIServerConfig
  2772. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#apiserverconfig
  2773. ##
  2774. apiserverConfig: {}
  2775. ## Allows setting additional arguments for the Prometheus container
  2776. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#monitoring.coreos.com/v1.Prometheus
  2777. additionalArgs: []
  2778. ## Interval between consecutive scrapes.
  2779. ## Defaults to 30s.
  2780. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/release-0.44/pkg/prometheus/promcfg.go#L180-L183
  2781. ##
  2782. scrapeInterval: ""
  2783. ## Number of seconds to wait for target to respond before erroring
  2784. ##
  2785. scrapeTimeout: ""
  2786. ## Interval between consecutive evaluations.
  2787. ##
  2788. evaluationInterval: ""
  2789. ## ListenLocal makes the Prometheus server listen on loopback, so that it does not bind against the Pod IP.
  2790. ##
  2791. listenLocal: false
  2792. ## EnableAdminAPI enables Prometheus the administrative HTTP API which includes functionality such as deleting time series.
  2793. ## This is disabled by default.
  2794. ## ref: https://prometheus.io/docs/prometheus/latest/querying/api/#tsdb-admin-apis
  2795. ##
  2796. enableAdminAPI: false
  2797. ## Sets version of Prometheus overriding the Prometheus version as derived
  2798. ## from the image tag. Useful in cases where the tag does not follow semver v2.
  2799. version: ""
  2800. ## WebTLSConfig defines the TLS parameters for HTTPS
  2801. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#webtlsconfig
  2802. web: {}
  2803. ## Exemplars related settings that are runtime reloadable.
  2804. ## It requires to enable the exemplar storage feature to be effective.
  2805. exemplars: ""
  2806. ## Maximum number of exemplars stored in memory for all series.
  2807. ## If not set, Prometheus uses its default value.
  2808. ## A value of zero or less than zero disables the storage.
  2809. # maxSize: 100000
  2810. # EnableFeatures API enables access to Prometheus disabled features.
  2811. # ref: https://prometheus.io/docs/prometheus/latest/disabled_features/
  2812. enableFeatures: []
  2813. # - exemplar-storage
  2814. ## Image of Prometheus.
  2815. ##
  2816. image:
  2817. registry: quay.io
  2818. repository: prometheus/prometheus
  2819. tag: v2.50.1
  2820. sha: ""
  2821. ## Tolerations for use with node taints
  2822. ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
  2823. ##
  2824. tolerations: []
  2825. # - key: "key"
  2826. # operator: "Equal"
  2827. # value: "value"
  2828. # effect: "NoSchedule"
  2829. ## If specified, the pod's topology spread constraints.
  2830. ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
  2831. ##
  2832. topologySpreadConstraints: []
  2833. # - maxSkew: 1
  2834. # topologyKey: topology.kubernetes.io/zone
  2835. # whenUnsatisfiable: DoNotSchedule
  2836. # labelSelector:
  2837. # matchLabels:
  2838. # app: prometheus
  2839. ## Alertmanagers to which alerts will be sent
  2840. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#alertmanagerendpoints
  2841. ##
  2842. ## Default configuration will connect to the alertmanager deployed as part of this release
  2843. ##
  2844. alertingEndpoints: []
  2845. # - name: ""
  2846. # namespace: ""
  2847. # port: http
  2848. # scheme: http
  2849. # pathPrefix: ""
  2850. # tlsConfig: {}
  2851. # bearerTokenFile: ""
  2852. # apiVersion: v2
  2853. ## External labels to add to any time series or alerts when communicating with external systems
  2854. ##
  2855. externalLabels: {}
  2856. ## enable --web.enable-remote-write-receiver flag on prometheus-server
  2857. ##
  2858. enableRemoteWriteReceiver: false
  2859. ## Name of the external label used to denote replica name
  2860. ##
  2861. replicaExternalLabelName: ""
  2862. ## If true, the Operator won't add the external label used to denote replica name
  2863. ##
  2864. replicaExternalLabelNameClear: false
  2865. ## Name of the external label used to denote Prometheus instance name
  2866. ##
  2867. prometheusExternalLabelName: ""
  2868. ## If true, the Operator won't add the external label used to denote Prometheus instance name
  2869. ##
  2870. prometheusExternalLabelNameClear: false
  2871. ## External URL at which Prometheus will be reachable.
  2872. ##
  2873. externalUrl: ""
  2874. ## Define which Nodes the Pods are scheduled on.
  2875. ## ref: https://kubernetes.io/docs/user-guide/node-selection/
  2876. ##
  2877. nodeSelector: {}
  2878. ## Secrets is a list of Secrets in the same namespace as the Prometheus object, which shall be mounted into the Prometheus Pods.
  2879. ## The Secrets are mounted into /etc/prometheus/secrets/. Secrets changes after initial creation of a Prometheus object are not
  2880. ## reflected in the running Pods. To change the secrets mounted into the Prometheus Pods, the object must be deleted and recreated
  2881. ## with the new list of secrets.
  2882. ##
  2883. secrets: []
  2884. ## ConfigMaps is a list of ConfigMaps in the same namespace as the Prometheus object, which shall be mounted into the Prometheus Pods.
  2885. ## The ConfigMaps are mounted into /etc/prometheus/configmaps/.
  2886. ##
  2887. configMaps: []
  2888. ## QuerySpec defines the query command line flags when starting Prometheus.
  2889. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#queryspec
  2890. ##
  2891. query: {}
  2892. ## If nil, select own namespace. Namespaces to be selected for PrometheusRules discovery.
  2893. ruleNamespaceSelector: {}
  2894. ## Example which selects PrometheusRules in namespaces with label "prometheus" set to "somelabel"
  2895. # ruleNamespaceSelector:
  2896. # matchLabels:
  2897. # prometheus: somelabel
  2898. ## If true, a nil or {} value for prometheus.prometheusSpec.ruleSelector will cause the
  2899. ## prometheus resource to be created with selectors based on values in the helm deployment,
  2900. ## which will also match the PrometheusRule resources created
  2901. ##
  2902. ruleSelectorNilUsesHelmValues: true
  2903. ## PrometheusRules to be selected for target discovery.
  2904. ## If {}, select all PrometheusRules
  2905. ##
  2906. ruleSelector: {}
  2907. ## Example which select all PrometheusRules resources
  2908. ## with label "prometheus" with values any of "example-rules" or "example-rules-2"
  2909. # ruleSelector:
  2910. # matchExpressions:
  2911. # - key: prometheus
  2912. # operator: In
  2913. # values:
  2914. # - example-rules
  2915. # - example-rules-2
  2916. #
  2917. ## Example which select all PrometheusRules resources with label "role" set to "example-rules"
  2918. # ruleSelector:
  2919. # matchLabels:
  2920. # role: example-rules
  2921. ## If true, a nil or {} value for prometheus.prometheusSpec.serviceMonitorSelector will cause the
  2922. ## prometheus resource to be created with selectors based on values in the helm deployment,
  2923. ## which will also match the servicemonitors created
  2924. ##
  2925. serviceMonitorSelectorNilUsesHelmValues: true
  2926. ## ServiceMonitors to be selected for target discovery.
  2927. ## If {}, select all ServiceMonitors
  2928. ##
  2929. serviceMonitorSelector: {}
  2930. ## Example which selects ServiceMonitors with label "prometheus" set to "somelabel"
  2931. # serviceMonitorSelector:
  2932. # matchLabels:
  2933. # prometheus: somelabel
  2934. ## Namespaces to be selected for ServiceMonitor discovery.
  2935. ##
  2936. serviceMonitorNamespaceSelector: {}
  2937. ## Example which selects ServiceMonitors in namespaces with label "prometheus" set to "somelabel"
  2938. # serviceMonitorNamespaceSelector:
  2939. # matchLabels:
  2940. # prometheus: somelabel
  2941. ## If true, a nil or {} value for prometheus.prometheusSpec.podMonitorSelector will cause the
  2942. ## prometheus resource to be created with selectors based on values in the helm deployment,
  2943. ## which will also match the podmonitors created
  2944. ##
  2945. podMonitorSelectorNilUsesHelmValues: true
  2946. ## PodMonitors to be selected for target discovery.
  2947. ## If {}, select all PodMonitors
  2948. ##
  2949. podMonitorSelector: {}
  2950. ## Example which selects PodMonitors with label "prometheus" set to "somelabel"
  2951. # podMonitorSelector:
  2952. # matchLabels:
  2953. # prometheus: somelabel
  2954. ## If nil, select own namespace. Namespaces to be selected for PodMonitor discovery.
  2955. podMonitorNamespaceSelector: {}
  2956. ## Example which selects PodMonitor in namespaces with label "prometheus" set to "somelabel"
  2957. # podMonitorNamespaceSelector:
  2958. # matchLabels:
  2959. # prometheus: somelabel
  2960. ## If true, a nil or {} value for prometheus.prometheusSpec.probeSelector will cause the
  2961. ## prometheus resource to be created with selectors based on values in the helm deployment,
  2962. ## which will also match the probes created
  2963. ##
  2964. probeSelectorNilUsesHelmValues: true
  2965. ## Probes to be selected for target discovery.
  2966. ## If {}, select all Probes
  2967. ##
  2968. probeSelector: {}
  2969. ## Example which selects Probes with label "prometheus" set to "somelabel"
  2970. # probeSelector:
  2971. # matchLabels:
  2972. # prometheus: somelabel
  2973. ## If nil, select own namespace. Namespaces to be selected for Probe discovery.
  2974. probeNamespaceSelector: {}
  2975. ## Example which selects Probe in namespaces with label "prometheus" set to "somelabel"
  2976. # probeNamespaceSelector:
  2977. # matchLabels:
  2978. # prometheus: somelabel
  2979. ## If true, a nil or {} value for prometheus.prometheusSpec.scrapeConfigSelector will cause the
  2980. ## prometheus resource to be created with selectors based on values in the helm deployment,
  2981. ## which will also match the scrapeConfigs created
  2982. ##
  2983. scrapeConfigSelectorNilUsesHelmValues: true
  2984. ## scrapeConfigs to be selected for target discovery.
  2985. ## If {}, select all scrapeConfigs
  2986. ##
  2987. scrapeConfigSelector: {}
  2988. ## Example which selects scrapeConfigs with label "prometheus" set to "somelabel"
  2989. # scrapeConfigSelector:
  2990. # matchLabels:
  2991. # prometheus: somelabel
  2992. ## If nil, select own namespace. Namespaces to be selected for scrapeConfig discovery.
  2993. scrapeConfigNamespaceSelector: {}
  2994. ## Example which selects scrapeConfig in namespaces with label "prometheus" set to "somelabel"
  2995. # scrapeConfigNamespaceSelector:
  2996. # matchLabels:
  2997. # prometheus: somelabel
  2998. ## How long to retain metrics
  2999. ##
  3000. retention: 10d
  3001. ## Maximum size of metrics
  3002. ##
  3003. retentionSize: ""
  3004. ## Allow out-of-order/out-of-bounds samples ingested into Prometheus for a specified duration
  3005. ## See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#tsdb
  3006. tsdb:
  3007. outOfOrderTimeWindow: 0s
  3008. ## Enable compression of the write-ahead log using Snappy.
  3009. ##
  3010. walCompression: true
  3011. ## If true, the Operator won't process any Prometheus configuration changes
  3012. ##
  3013. paused: false
  3014. ## Number of replicas of each shard to deploy for a Prometheus deployment.
  3015. ## Number of replicas multiplied by shards is the total number of Pods created.
  3016. ##
  3017. replicas: 1
  3018. ## EXPERIMENTAL: Number of shards to distribute targets onto.
  3019. ## Number of replicas multiplied by shards is the total number of Pods created.
  3020. ## Note that scaling down shards will not reshard data onto remaining instances, it must be manually moved.
  3021. ## Increasing shards will not reshard data either but it will continue to be available from the same instances.
  3022. ## To query globally use Thanos sidecar and Thanos querier or remote write data to a central location.
  3023. ## Sharding is done on the content of the `__address__` target meta-label.
  3024. ##
  3025. shards: 1
  3026. ## Log level for Prometheus be configured in
  3027. ##
  3028. logLevel: info
  3029. ## Log format for Prometheus be configured in
  3030. ##
  3031. logFormat: logfmt
  3032. ## Prefix used to register routes, overriding externalUrl route.
  3033. ## Useful for proxies that rewrite URLs.
  3034. ##
  3035. routePrefix: /
  3036. ## Standard object's metadata. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata
  3037. ## Metadata Labels and Annotations gets propagated to the prometheus pods.
  3038. ##
  3039. podMetadata: {}
  3040. # labels:
  3041. # app: prometheus
  3042. # k8s-app: prometheus
  3043. ## Pod anti-affinity can prevent the scheduler from placing Prometheus replicas on the same node.
  3044. ## The default value "soft" means that the scheduler should *prefer* to not schedule two replica pods onto the same node but no guarantee is provided.
  3045. ## The value "hard" means that the scheduler is *required* to not schedule two replica pods onto the same node.
  3046. ## The value "" will disable pod anti-affinity so that no anti-affinity rules will be configured.
  3047. podAntiAffinity: ""
  3048. ## If anti-affinity is enabled sets the topologyKey to use for anti-affinity.
  3049. ## This can be changed to, for example, failure-domain.beta.kubernetes.io/zone
  3050. ##
  3051. podAntiAffinityTopologyKey: kubernetes.io/hostname
  3052. ## Assign custom affinity rules to the prometheus instance
  3053. ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
  3054. ##
  3055. affinity: {}
  3056. # nodeAffinity:
  3057. # requiredDuringSchedulingIgnoredDuringExecution:
  3058. # nodeSelectorTerms:
  3059. # - matchExpressions:
  3060. # - key: kubernetes.io/e2e-az-name
  3061. # operator: In
  3062. # values:
  3063. # - e2e-az1
  3064. # - e2e-az2
  3065. ## The remote_read spec configuration for Prometheus.
  3066. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#remotereadspec
  3067. remoteRead: []
  3068. # - url: http://remote1/read
  3069. ## additionalRemoteRead is appended to remoteRead
  3070. additionalRemoteRead: []
  3071. ## The remote_write spec configuration for Prometheus.
  3072. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#remotewritespec
  3073. remoteWrite: []
  3074. # - url: http://remote1/push
  3075. ## additionalRemoteWrite is appended to remoteWrite
  3076. additionalRemoteWrite: []
  3077. ## Enable/Disable Grafana dashboards provisioning for prometheus remote write feature
  3078. remoteWriteDashboards: false
  3079. ## Resource limits & requests
  3080. ##
  3081. resources: {}
  3082. # requests:
  3083. # memory: 400Mi
  3084. ## Prometheus StorageSpec for persistent data
  3085. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/user-guides/storage.md
  3086. ##
  3087. storageSpec:
  3088. ## Using PersistentVolumeClaim
  3089. ##
  3090. volumeClaimTemplate:
  3091. spec:
  3092. storageClassName: nfs-client
  3093. accessModes: ["ReadWriteOnce"]
  3094. resources:
  3095. requests:
  3096. storage: 50Gi
  3097. ## Using tmpfs volume
  3098. ##
  3099. # emptyDir:
  3100. # medium: Memory
  3101. # Additional volumes on the output StatefulSet definition.
  3102. volumes: []
  3103. # Additional VolumeMounts on the output StatefulSet definition.
  3104. volumeMounts: []
  3105. ## AdditionalScrapeConfigs allows specifying additional Prometheus scrape configurations. Scrape configurations
  3106. ## are appended to the configurations generated by the Prometheus Operator. Job configurations must have the form
  3107. ## as specified in the official Prometheus documentation:
  3108. ## https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config. As scrape configs are
  3109. ## appended, the user is responsible to make sure it is valid. Note that using this feature may expose the possibility
  3110. ## to break upgrades of Prometheus. It is advised to review Prometheus release notes to ensure that no incompatible
  3111. ## scrape configs are going to break Prometheus after the upgrade.
  3112. ## AdditionalScrapeConfigs can be defined as a list or as a templated string.
  3113. ##
  3114. ## The scrape configuration example below will find master nodes, provided they have the name .*mst.*, relabel the
  3115. ## port to 2379 and allow etcd scraping provided it is running on all Kubernetes master nodes
  3116. ##
  3117. additionalScrapeConfigs: []
  3118. # - job_name: kube-etcd
  3119. # kubernetes_sd_configs:
  3120. # - role: node
  3121. # scheme: https
  3122. # tls_config:
  3123. # ca_file: /etc/prometheus/secrets/etcd-client-cert/etcd-ca
  3124. # cert_file: /etc/prometheus/secrets/etcd-client-cert/etcd-client
  3125. # key_file: /etc/prometheus/secrets/etcd-client-cert/etcd-client-key
  3126. # relabel_configs:
  3127. # - action: labelmap
  3128. # regex: __meta_kubernetes_node_label_(.+)
  3129. # - source_labels: [__address__]
  3130. # action: replace
  3131. # targetLabel: __address__
  3132. # regex: ([^:;]+):(\d+)
  3133. # replacement: ${1}:2379
  3134. # - source_labels: [__meta_kubernetes_node_name]
  3135. # action: keep
  3136. # regex: .*mst.*
  3137. # - source_labels: [__meta_kubernetes_node_name]
  3138. # action: replace
  3139. # targetLabel: node
  3140. # regex: (.*)
  3141. # replacement: ${1}
  3142. # metric_relabel_configs:
  3143. # - regex: (kubernetes_io_hostname|failure_domain_beta_kubernetes_io_region|beta_kubernetes_io_os|beta_kubernetes_io_arch|beta_kubernetes_io_instance_type|failure_domain_beta_kubernetes_io_zone)
  3144. # action: labeldrop
  3145. #
  3146. ## If scrape config contains a repetitive section, you may want to use a template.
  3147. ## In the following example, you can see how to define `gce_sd_configs` for multiple zones
  3148. # additionalScrapeConfigs: |
  3149. # - job_name: "node-exporter"
  3150. # gce_sd_configs:
  3151. # {{range $zone := .Values.gcp_zones}}
  3152. # - project: "project1"
  3153. # zone: "{{$zone}}"
  3154. # port: 9100
  3155. # {{end}}
  3156. # relabel_configs:
  3157. # ...
  3158. ## If additional scrape configurations are already deployed in a single secret file you can use this section.
  3159. ## Expected values are the secret name and key
  3160. ## Cannot be used with additionalScrapeConfigs
  3161. additionalScrapeConfigsSecret: {}
  3162. # enabled: false
  3163. # name:
  3164. # key:
  3165. ## additionalPrometheusSecretsAnnotations allows to add annotations to the kubernetes secret. This can be useful
  3166. ## when deploying via spinnaker to disable versioning on the secret, strategy.spinnaker.io/versioned: 'false'
  3167. additionalPrometheusSecretsAnnotations: {}
  3168. ## AdditionalAlertManagerConfigs allows for manual configuration of alertmanager jobs in the form as specified
  3169. ## in the official Prometheus documentation https://prometheus.io/docs/prometheus/latest/configuration/configuration/#<alertmanager_config>.
  3170. ## AlertManager configurations specified are appended to the configurations generated by the Prometheus Operator.
  3171. ## As AlertManager configs are appended, the user is responsible to make sure it is valid. Note that using this
  3172. ## feature may expose the possibility to break upgrades of Prometheus. It is advised to review Prometheus release
  3173. ## notes to ensure that no incompatible AlertManager configs are going to break Prometheus after the upgrade.
  3174. ##
  3175. additionalAlertManagerConfigs: []
  3176. # - consul_sd_configs:
  3177. # - server: consul.dev.test:8500
  3178. # scheme: http
  3179. # datacenter: dev
  3180. # tag_separator: ','
  3181. # services:
  3182. # - metrics-prometheus-alertmanager
  3183. ## If additional alertmanager configurations are already deployed in a single secret, or you want to manage
  3184. ## them separately from the helm deployment, you can use this section.
  3185. ## Expected values are the secret name and key
  3186. ## Cannot be used with additionalAlertManagerConfigs
  3187. additionalAlertManagerConfigsSecret: {}
  3188. # name:
  3189. # key:
  3190. # optional: false
  3191. ## AdditionalAlertRelabelConfigs allows specifying Prometheus alert relabel configurations. Alert relabel configurations specified are appended
  3192. ## to the configurations generated by the Prometheus Operator. Alert relabel configurations specified must have the form as specified in the
  3193. ## official Prometheus documentation: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#alert_relabel_configs.
  3194. ## As alert relabel configs are appended, the user is responsible to make sure it is valid. Note that using this feature may expose the
  3195. ## possibility to break upgrades of Prometheus. It is advised to review Prometheus release notes to ensure that no incompatible alert relabel
  3196. ## configs are going to break Prometheus after the upgrade.
  3197. ##
  3198. additionalAlertRelabelConfigs: []
  3199. # - separator: ;
  3200. # regex: prometheus_replica
  3201. # replacement: $1
  3202. # action: labeldrop
  3203. ## If additional alert relabel configurations are already deployed in a single secret, or you want to manage
  3204. ## them separately from the helm deployment, you can use this section.
  3205. ## Expected values are the secret name and key
  3206. ## Cannot be used with additionalAlertRelabelConfigs
  3207. additionalAlertRelabelConfigsSecret: {}
  3208. # name:
  3209. # key:
  3210. ## SecurityContext holds pod-level security attributes and common container settings.
  3211. ## This defaults to non root user with uid 1000 and gid 2000.
  3212. ## https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md
  3213. ##
  3214. securityContext:
  3215. runAsGroup: 2000
  3216. runAsNonRoot: true
  3217. runAsUser: 1000
  3218. fsGroup: 2000
  3219. seccompProfile:
  3220. type: RuntimeDefault
  3221. ## Priority class assigned to the Pods
  3222. ##
  3223. priorityClassName: ""
  3224. ## Thanos configuration allows configuring various aspects of a Prometheus server in a Thanos environment.
  3225. ## This section is experimental, it may change significantly without deprecation notice in any release.
  3226. ## This is experimental and may change significantly without backward compatibility in any release.
  3227. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#thanosspec
  3228. ##
  3229. thanos: {}
  3230. # secretProviderClass:
  3231. # provider: gcp
  3232. # parameters:
  3233. # secrets: |
  3234. # - resourceName: "projects/$PROJECT_ID/secrets/testsecret/versions/latest"
  3235. # fileName: "objstore.yaml"
  3236. ## ObjectStorageConfig configures object storage in Thanos.
  3237. # objectStorageConfig:
  3238. # # use existing secret, if configured, objectStorageConfig.secret will not be used
  3239. # existingSecret: {}
  3240. # # name: ""
  3241. # # key: ""
  3242. # # will render objectStorageConfig secret data and configure it to be used by Thanos custom resource,
  3243. # # ignored when prometheusspec.thanos.objectStorageConfig.existingSecret is set
  3244. # # https://thanos.io/tip/thanos/storage.md/#s3
  3245. # secret: {}
  3246. # # type: S3
  3247. # # config:
  3248. # # bucket: ""
  3249. # # endpoint: ""
  3250. # # region: ""
  3251. # # access_key: ""
  3252. # # secret_key: ""
  3253. ## Containers allows injecting additional containers. This is meant to allow adding an authentication proxy to a Prometheus pod.
  3254. ## if using proxy extraContainer update targetPort with proxy container port
  3255. containers: []
  3256. # containers:
  3257. # - name: oauth-proxy
  3258. # image: quay.io/oauth2-proxy/oauth2-proxy:v7.5.1
  3259. # args:
  3260. # - --upstream=http://127.0.0.1:9090
  3261. # - --http-address=0.0.0.0:8081
  3262. # - --metrics-address=0.0.0.0:8082
  3263. # - ...
  3264. # ports:
  3265. # - containerPort: 8081
  3266. # name: oauth-proxy
  3267. # protocol: TCP
  3268. # - containerPort: 8082
  3269. # name: oauth-metrics
  3270. # protocol: TCP
  3271. # resources: {}
  3272. ## InitContainers allows injecting additional initContainers. This is meant to allow doing some changes
  3273. ## (permissions, dir tree) on mounted volumes before starting prometheus
  3274. initContainers: []
  3275. ## PortName to use for Prometheus.
  3276. ##
  3277. portName: "http-web"
  3278. ## ArbitraryFSAccessThroughSMs configures whether configuration based on a service monitor can access arbitrary files
  3279. ## on the file system of the Prometheus container e.g. bearer token files.
  3280. arbitraryFSAccessThroughSMs: false
  3281. ## OverrideHonorLabels if set to true overrides all user configured honor_labels. If HonorLabels is set in ServiceMonitor
  3282. ## or PodMonitor to true, this overrides honor_labels to false.
  3283. overrideHonorLabels: false
  3284. ## OverrideHonorTimestamps allows to globally enforce honoring timestamps in all scrape configs.
  3285. overrideHonorTimestamps: false
  3286. ## When ignoreNamespaceSelectors is set to true, namespaceSelector from all PodMonitor, ServiceMonitor and Probe objects will be ignored,
  3287. ## they will only discover targets within the namespace of the PodMonitor, ServiceMonitor and Probe object,
  3288. ## and servicemonitors will be installed in the default service namespace.
  3289. ## Defaults to false.
  3290. ignoreNamespaceSelectors: false
  3291. ## EnforcedNamespaceLabel enforces adding a namespace label of origin for each alert and metric that is user created.
  3292. ## The label value will always be the namespace of the object that is being created.
  3293. ## Disabled by default
  3294. enforcedNamespaceLabel: ""
  3295. ## PrometheusRulesExcludedFromEnforce - list of prometheus rules to be excluded from enforcing of adding namespace labels.
  3296. ## Works only if enforcedNamespaceLabel set to true. Make sure both ruleNamespace and ruleName are set for each pair
  3297. ## Deprecated, use `excludedFromEnforcement` instead
  3298. prometheusRulesExcludedFromEnforce: []
  3299. ## ExcludedFromEnforcement - list of object references to PodMonitor, ServiceMonitor, Probe and PrometheusRule objects
  3300. ## to be excluded from enforcing a namespace label of origin.
  3301. ## Works only if enforcedNamespaceLabel set to true.
  3302. ## See https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#objectreference
  3303. excludedFromEnforcement: []
  3304. ## QueryLogFile specifies the file to which PromQL queries are logged. Note that this location must be writable,
  3305. ## and can be persisted using an attached volume. Alternatively, the location can be set to a stdout location such
  3306. ## as /dev/stdout to log querie information to the default Prometheus log stream. This is only available in versions
  3307. ## of Prometheus >= 2.16.0. For more details, see the Prometheus docs (https://prometheus.io/docs/guides/query-log/)
  3308. queryLogFile: false
  3309. # Use to set global sample_limit for Prometheus. This act as default SampleLimit for ServiceMonitor or/and PodMonitor.
  3310. # Set to 'false' to disable global sample_limit. or set to a number to override the default value.
  3311. sampleLimit: false
  3312. # EnforcedKeepDroppedTargetsLimit defines on the number of targets dropped by relabeling that will be kept in memory.
  3313. # The value overrides any spec.keepDroppedTargets set by ServiceMonitor, PodMonitor, Probe objects unless spec.keepDroppedTargets
  3314. # is greater than zero and less than spec.enforcedKeepDroppedTargets. 0 means no limit.
  3315. enforcedKeepDroppedTargets: 0
  3316. ## EnforcedSampleLimit defines global limit on number of scraped samples that will be accepted. This overrides any SampleLimit
  3317. ## set per ServiceMonitor or/and PodMonitor. It is meant to be used by admins to enforce the SampleLimit to keep overall
  3318. ## number of samples/series under the desired limit. Note that if SampleLimit is lower that value will be taken instead.
  3319. enforcedSampleLimit: false
  3320. ## EnforcedTargetLimit defines a global limit on the number of scraped targets. This overrides any TargetLimit set
  3321. ## per ServiceMonitor or/and PodMonitor. It is meant to be used by admins to enforce the TargetLimit to keep the overall
  3322. ## number of targets under the desired limit. Note that if TargetLimit is lower, that value will be taken instead, except
  3323. ## if either value is zero, in which case the non-zero value will be used. If both values are zero, no limit is enforced.
  3324. enforcedTargetLimit: false
  3325. ## Per-scrape limit on number of labels that will be accepted for a sample. If more than this number of labels are present
  3326. ## post metric-relabeling, the entire scrape will be treated as failed. 0 means no limit. Only valid in Prometheus versions
  3327. ## 2.27.0 and newer.
  3328. enforcedLabelLimit: false
  3329. ## Per-scrape limit on length of labels name that will be accepted for a sample. If a label name is longer than this number
  3330. ## post metric-relabeling, the entire scrape will be treated as failed. 0 means no limit. Only valid in Prometheus versions
  3331. ## 2.27.0 and newer.
  3332. enforcedLabelNameLengthLimit: false
  3333. ## Per-scrape limit on length of labels value that will be accepted for a sample. If a label value is longer than this
  3334. ## number post metric-relabeling, the entire scrape will be treated as failed. 0 means no limit. Only valid in Prometheus
  3335. ## versions 2.27.0 and newer.
  3336. enforcedLabelValueLengthLimit: false
  3337. ## AllowOverlappingBlocks enables vertical compaction and vertical query merge in Prometheus. This is still experimental
  3338. ## in Prometheus so it may change in any upcoming release.
  3339. allowOverlappingBlocks: false
  3340. ## Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to
  3341. ## be considered available. Defaults to 0 (pod will be considered available as soon as it is ready).
  3342. minReadySeconds: 0
  3343. # Required for use in managed kubernetes clusters (such as AWS EKS) with custom CNI (such as calico),
  3344. # because control-plane managed by AWS cannot communicate with pods' IP CIDR and admission webhooks are not working
  3345. # Use the host's network namespace if true. Make sure to understand the security implications if you want to enable it.
  3346. # When hostNetwork is enabled, this will set dnsPolicy to ClusterFirstWithHostNet automatically.
  3347. hostNetwork: false
  3348. # HostAlias holds the mapping between IP and hostnames that will be injected
  3349. # as an entry in the pod’s hosts file.
  3350. hostAliases: []
  3351. # - ip: 10.10.0.100
  3352. # hostnames:
  3353. # - a1.app.local
  3354. # - b1.app.local
  3355. ## TracingConfig configures tracing in Prometheus.
  3356. ## See https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#prometheustracingconfig
  3357. tracingConfig: {}
  3358. ## Additional configuration which is not covered by the properties above. (passed through tpl)
  3359. additionalConfig: {}
  3360. ## Additional configuration which is not covered by the properties above.
  3361. ## Useful, if you need advanced templating inside alertmanagerSpec.
  3362. ## Otherwise, use prometheus.prometheusSpec.additionalConfig (passed through tpl)
  3363. additionalConfigString: ""
  3364. ## Defines the maximum time that the `prometheus` container's startup probe
  3365. ## will wait before being considered failed. The startup probe will return
  3366. ## success after the WAL replay is complete. If set, the value should be
  3367. ## greater than 60 (seconds). Otherwise it will be equal to 600 seconds (15
  3368. ## minutes).
  3369. maximumStartupDurationSeconds: 0
  3370. additionalRulesForClusterRole: []
  3371. # - apiGroups: [ "" ]
  3372. # resources:
  3373. # - nodes/proxy
  3374. # verbs: [ "get", "list", "watch" ]
  3375. additionalServiceMonitors: []
  3376. ## Name of the ServiceMonitor to create
  3377. ##
  3378. # - name: ""
  3379. ## Additional labels to set used for the ServiceMonitorSelector. Together with standard labels from
  3380. ## the chart
  3381. ##
  3382. # additionalLabels: {}
  3383. ## Service label for use in assembling a job name of the form <label value>-<port>
  3384. ## If no label is specified, the service name is used.
  3385. ##
  3386. # jobLabel: ""
  3387. ## labels to transfer from the kubernetes service to the target
  3388. ##
  3389. # targetLabels: []
  3390. ## labels to transfer from the kubernetes pods to the target
  3391. ##
  3392. # podTargetLabels: []
  3393. ## Label selector for services to which this ServiceMonitor applies
  3394. ##
  3395. # selector: {}
  3396. ## Namespaces from which services are selected
  3397. ##
  3398. # namespaceSelector:
  3399. ## Match any namespace
  3400. ##
  3401. # any: false
  3402. ## Explicit list of namespace names to select
  3403. ##
  3404. # matchNames: []
  3405. ## Endpoints of the selected service to be monitored
  3406. ##
  3407. # endpoints: []
  3408. ## Name of the endpoint's service port
  3409. ## Mutually exclusive with targetPort
  3410. # - port: ""
  3411. ## Name or number of the endpoint's target port
  3412. ## Mutually exclusive with port
  3413. # - targetPort: ""
  3414. ## File containing bearer token to be used when scraping targets
  3415. ##
  3416. # bearerTokenFile: ""
  3417. ## Interval at which metrics should be scraped
  3418. ##
  3419. # interval: 30s
  3420. ## HTTP path to scrape for metrics
  3421. ##
  3422. # path: /metrics
  3423. ## HTTP scheme to use for scraping
  3424. ##
  3425. # scheme: http
  3426. ## TLS configuration to use when scraping the endpoint
  3427. ##
  3428. # tlsConfig:
  3429. ## Path to the CA file
  3430. ##
  3431. # caFile: ""
  3432. ## Path to client certificate file
  3433. ##
  3434. # certFile: ""
  3435. ## Skip certificate verification
  3436. ##
  3437. # insecureSkipVerify: false
  3438. ## Path to client key file
  3439. ##
  3440. # keyFile: ""
  3441. ## Server name used to verify host name
  3442. ##
  3443. # serverName: ""
  3444. ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
  3445. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
  3446. ##
  3447. # metricRelabelings: []
  3448. # - action: keep
  3449. # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
  3450. # sourceLabels: [__name__]
  3451. ## RelabelConfigs to apply to samples before scraping
  3452. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
  3453. ##
  3454. # relabelings: []
  3455. # - sourceLabels: [__meta_kubernetes_pod_node_name]
  3456. # separator: ;
  3457. # regex: ^(.*)$
  3458. # targetLabel: nodename
  3459. # replacement: $1
  3460. # action: replace
  3461. additionalPodMonitors: []
  3462. ## Name of the PodMonitor to create
  3463. ##
  3464. # - name: ""
  3465. ## Additional labels to set used for the PodMonitorSelector. Together with standard labels from
  3466. ## the chart
  3467. ##
  3468. # additionalLabels: {}
  3469. ## Pod label for use in assembling a job name of the form <label value>-<port>
  3470. ## If no label is specified, the pod endpoint name is used.
  3471. ##
  3472. # jobLabel: ""
  3473. ## Label selector for pods to which this PodMonitor applies
  3474. ##
  3475. # selector: {}
  3476. ## PodTargetLabels transfers labels on the Kubernetes Pod onto the target.
  3477. ##
  3478. # podTargetLabels: {}
  3479. ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
  3480. ##
  3481. # sampleLimit: 0
  3482. ## Namespaces from which pods are selected
  3483. ##
  3484. # namespaceSelector:
  3485. ## Match any namespace
  3486. ##
  3487. # any: false
  3488. ## Explicit list of namespace names to select
  3489. ##
  3490. # matchNames: []
  3491. ## Endpoints of the selected pods to be monitored
  3492. ## https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#podmetricsendpoint
  3493. ##
  3494. # podMetricsEndpoints: []
  3495. ## Configuration for thanosRuler
  3496. ## ref: https://thanos.io/tip/components/rule.md/
  3497. ##
  3498. thanosRuler:
  3499. ## Deploy thanosRuler
  3500. ##
  3501. enabled: false
  3502. ## Annotations for ThanosRuler
  3503. ##
  3504. annotations: {}
  3505. ## Service account for ThanosRuler to use.
  3506. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
  3507. ##
  3508. serviceAccount:
  3509. create: true
  3510. name: ""
  3511. annotations: {}
  3512. ## Configure pod disruption budgets for ThanosRuler
  3513. ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/#specifying-a-poddisruptionbudget
  3514. ## This configuration is immutable once created and will require the PDB to be deleted to be changed
  3515. ## https://github.com/kubernetes/kubernetes/issues/45398
  3516. ##
  3517. podDisruptionBudget:
  3518. enabled: false
  3519. minAvailable: 1
  3520. maxUnavailable: ""
  3521. ingress:
  3522. enabled: false
  3523. # For Kubernetes >= 1.18 you should specify the ingress-controller via the field ingressClassName
  3524. # See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#specifying-the-class-of-an-ingress
  3525. # ingressClassName: nginx
  3526. annotations: {}
  3527. labels: {}
  3528. ## Hosts must be provided if Ingress is enabled.
  3529. ##
  3530. hosts: []
  3531. # - thanosruler.domain.com
  3532. ## Paths to use for ingress rules - one path should match the thanosruler.routePrefix
  3533. ##
  3534. paths: []
  3535. # - /
  3536. ## For Kubernetes >= 1.18 you should specify the pathType (determines how Ingress paths should be matched)
  3537. ## See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#better-path-matching-with-path-types
  3538. # pathType: ImplementationSpecific
  3539. ## TLS configuration for ThanosRuler Ingress
  3540. ## Secret must be manually created in the namespace
  3541. ##
  3542. tls: []
  3543. # - secretName: thanosruler-general-tls
  3544. # hosts:
  3545. # - thanosruler.example.com
  3546. ## Configuration for ThanosRuler service
  3547. ##
  3548. service:
  3549. annotations: {}
  3550. labels: {}
  3551. clusterIP: ""
  3552. ## Port for ThanosRuler Service to listen on
  3553. ##
  3554. port: 10902
  3555. ## To be used with a proxy extraContainer port
  3556. ##
  3557. targetPort: 10902
  3558. ## Port to expose on each node
  3559. ## Only used if service.type is 'NodePort'
  3560. ##
  3561. nodePort: 30905
  3562. ## List of IP addresses at which the Prometheus server service is available
  3563. ## Ref: https://kubernetes.io/docs/user-guide/services/#external-ips
  3564. ##
  3565. ## Additional ports to open for ThanosRuler service
  3566. additionalPorts: []
  3567. externalIPs: []
  3568. loadBalancerIP: ""
  3569. loadBalancerSourceRanges: []
  3570. ## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
  3571. ##
  3572. externalTrafficPolicy: Cluster
  3573. ## Service type
  3574. ##
  3575. type: ClusterIP
  3576. ## Configuration for creating a ServiceMonitor for the ThanosRuler service
  3577. ##
  3578. serviceMonitor:
  3579. ## If true, create a serviceMonitor for thanosRuler
  3580. ##
  3581. selfMonitor: true
  3582. ## Scrape interval. If not set, the Prometheus default scrape interval is used.
  3583. ##
  3584. interval: ""
  3585. ## Additional labels
  3586. ##
  3587. additionalLabels: {}
  3588. ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
  3589. ##
  3590. sampleLimit: 0
  3591. ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
  3592. ##
  3593. targetLimit: 0
  3594. ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  3595. ##
  3596. labelLimit: 0
  3597. ## Per-scrape limit on length of labels name that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  3598. ##
  3599. labelNameLengthLimit: 0
  3600. ## Per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
  3601. ##
  3602. labelValueLengthLimit: 0
  3603. ## proxyUrl: URL of a proxy that should be used for scraping.
  3604. ##
  3605. proxyUrl: ""
  3606. ## scheme: HTTP scheme to use for scraping. Can be used with `tlsConfig` for example if using istio mTLS.
  3607. scheme: ""
  3608. ## tlsConfig: TLS configuration to use when scraping the endpoint. For example if using istio mTLS.
  3609. ## Of type: https://github.com/coreos/prometheus-operator/blob/main/Documentation/api.md#tlsconfig
  3610. tlsConfig: {}
  3611. bearerTokenFile:
  3612. ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
  3613. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
  3614. ##
  3615. metricRelabelings: []
  3616. # - action: keep
  3617. # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
  3618. # sourceLabels: [__name__]
  3619. ## RelabelConfigs to apply to samples before scraping
  3620. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
  3621. ##
  3622. relabelings: []
  3623. # - sourceLabels: [__meta_kubernetes_pod_node_name]
  3624. # separator: ;
  3625. # regex: ^(.*)$
  3626. # targetLabel: nodename
  3627. # replacement: $1
  3628. # action: replace
  3629. ## Additional Endpoints
  3630. ##
  3631. additionalEndpoints: []
  3632. # - port: oauth-metrics
  3633. # path: /metrics
  3634. ## Settings affecting thanosRulerpec
  3635. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#thanosrulerspec
  3636. ##
  3637. thanosRulerSpec:
  3638. ## Standard object's metadata. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata
  3639. ## Metadata Labels and Annotations gets propagated to the ThanosRuler pods.
  3640. ##
  3641. podMetadata: {}
  3642. ## Image of ThanosRuler
  3643. ##
  3644. image:
  3645. registry: quay.io
  3646. repository: thanos/thanos
  3647. tag: v0.34.1
  3648. sha: ""
  3649. ## Namespaces to be selected for PrometheusRules discovery.
  3650. ## If nil, select own namespace. Namespaces to be selected for ServiceMonitor discovery.
  3651. ## See https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#namespaceselector for usage
  3652. ##
  3653. ruleNamespaceSelector: {}
  3654. ## If true, a nil or {} value for thanosRuler.thanosRulerSpec.ruleSelector will cause the
  3655. ## prometheus resource to be created with selectors based on values in the helm deployment,
  3656. ## which will also match the PrometheusRule resources created
  3657. ##
  3658. ruleSelectorNilUsesHelmValues: true
  3659. ## PrometheusRules to be selected for target discovery.
  3660. ## If {}, select all PrometheusRules
  3661. ##
  3662. ruleSelector: {}
  3663. ## Example which select all PrometheusRules resources
  3664. ## with label "prometheus" with values any of "example-rules" or "example-rules-2"
  3665. # ruleSelector:
  3666. # matchExpressions:
  3667. # - key: prometheus
  3668. # operator: In
  3669. # values:
  3670. # - example-rules
  3671. # - example-rules-2
  3672. #
  3673. ## Example which select all PrometheusRules resources with label "role" set to "example-rules"
  3674. # ruleSelector:
  3675. # matchLabels:
  3676. # role: example-rules
  3677. ## Define Log Format
  3678. # Use logfmt (default) or json logging
  3679. logFormat: logfmt
  3680. ## Log level for ThanosRuler to be configured with.
  3681. ##
  3682. logLevel: info
  3683. ## Size is the expected size of the thanosRuler cluster. The controller will eventually make the size of the
  3684. ## running cluster equal to the expected size.
  3685. replicas: 1
  3686. ## Time duration ThanosRuler shall retain data for. Default is '24h', and must match the regular expression
  3687. ## [0-9]+(ms|s|m|h) (milliseconds seconds minutes hours).
  3688. ##
  3689. retention: 24h
  3690. ## Interval between consecutive evaluations.
  3691. ##
  3692. evaluationInterval: ""
  3693. ## Storage is the definition of how storage will be used by the ThanosRuler instances.
  3694. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/user-guides/storage.md
  3695. ##
  3696. storage:
  3697. volumeClaimTemplate:
  3698. spec:
  3699. storageClassName: nfs-client
  3700. accessModes: ["ReadWriteOnce"]
  3701. resources:
  3702. requests:
  3703. storage: 50Gi
  3704. ## AlertmanagerConfig define configuration for connecting to alertmanager.
  3705. ## Only available with Thanos v0.10.0 and higher. Maps to the alertmanagers.config Thanos Ruler arg.
  3706. alertmanagersConfig:
  3707. # use existing secret, if configured, alertmanagersConfig.secret will not be used
  3708. existingSecret: {}
  3709. # name: ""
  3710. # key: ""
  3711. # will render render alertmanagersConfig secret data and configure it to be used by Thanos Ruler custom resource, ignored when alertmanagersConfig.existingSecret is set
  3712. # https://thanos.io/tip/components/rule.md/#alertmanager
  3713. secret: {}
  3714. # alertmanagers:
  3715. # - api_version: v2
  3716. # http_config:
  3717. # basic_auth:
  3718. # username: some_user
  3719. # password: some_pass
  3720. # static_configs:
  3721. # - alertmanager.thanos.io
  3722. # scheme: http
  3723. # timeout: 10s
  3724. ## DEPRECATED. Define URLs to send alerts to Alertmanager. For Thanos v0.10.0 and higher, alertmanagersConfig should be used instead.
  3725. ## Note: this field will be ignored if alertmanagersConfig is specified. Maps to the alertmanagers.url Thanos Ruler arg.
  3726. # alertmanagersUrl:
  3727. ## The external URL the Thanos Ruler instances will be available under. This is necessary to generate correct URLs. This is necessary if Thanos Ruler is not served from root of a DNS name. string false
  3728. ##
  3729. externalPrefix:
  3730. ## The route prefix ThanosRuler registers HTTP handlers for. This is useful, if using ExternalURL and a proxy is rewriting HTTP routes of a request, and the actual ExternalURL is still true,
  3731. ## but the server serves requests under a different route prefix. For example for use with kubectl proxy.
  3732. ##
  3733. routePrefix: /
  3734. ## ObjectStorageConfig configures object storage in Thanos
  3735. objectStorageConfig:
  3736. # use existing secret, if configured, objectStorageConfig.secret will not be used
  3737. existingSecret: {}
  3738. # name: ""
  3739. # key: ""
  3740. # will render objectStorageConfig secret data and configure it to be used by Thanos Ruler custom resource, ignored when objectStorageConfig.existingSecret is set
  3741. # https://thanos.io/tip/thanos/storage.md/#s3
  3742. secret: {}
  3743. # type: S3
  3744. # config:
  3745. # bucket: ""
  3746. # endpoint: ""
  3747. # region: ""
  3748. # access_key: ""
  3749. # secret_key: ""
  3750. ## QueryEndpoints defines Thanos querier endpoints from which to query metrics.
  3751. ## Maps to the --query flag of thanos ruler.
  3752. queryEndpoints: []
  3753. ## Define configuration for connecting to thanos query instances. If this is defined, the queryEndpoints field will be ignored.
  3754. ## Maps to the query.config CLI argument. Only available with thanos v0.11.0 and higher.
  3755. queryConfig:
  3756. # use existing secret, if configured, queryConfig.secret will not be used
  3757. existingSecret: {}
  3758. # name: ""
  3759. # key: ""
  3760. # render queryConfig secret data and configure it to be used by Thanos Ruler custom resource, ignored when queryConfig.existingSecret is set
  3761. # https://thanos.io/tip/components/rule.md/#query-api
  3762. secret: {}
  3763. # - http_config:
  3764. # basic_auth:
  3765. # username: some_user
  3766. # password: some_pass
  3767. # static_configs:
  3768. # - URL
  3769. # scheme: http
  3770. # timeout: 10s
  3771. ## Labels configure the external label pairs to ThanosRuler. A default replica
  3772. ## label `thanos_ruler_replica` will be always added as a label with the value
  3773. ## of the pod's name and it will be dropped in the alerts.
  3774. labels: {}
  3775. ## If set to true all actions on the underlying managed objects are not going to be performed, except for delete actions.
  3776. ##
  3777. paused: false
  3778. ## Allows setting additional arguments for the ThanosRuler container
  3779. ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#thanosruler
  3780. ##
  3781. additionalArgs: []
  3782. # - name: remote-write.config
  3783. # value: |-
  3784. # "remote_write":
  3785. # - "name": "receiver-0"
  3786. # "remote_timeout": "30s"
  3787. # "url": "http://thanos-receiver-0.thanos-receiver:8081/api/v1/receive"
  3788. ## Define which Nodes the Pods are scheduled on.
  3789. ## ref: https://kubernetes.io/docs/user-guide/node-selection/
  3790. ##
  3791. nodeSelector: {}
  3792. ## Define resources requests and limits for single Pods.
  3793. ## ref: https://kubernetes.io/docs/user-guide/compute-resources/
  3794. ##
  3795. resources: {}
  3796. # requests:
  3797. # memory: 400Mi
  3798. ## Pod anti-affinity can prevent the scheduler from placing Prometheus replicas on the same node.
  3799. ## The default value "soft" means that the scheduler should *prefer* to not schedule two replica pods onto the same node but no guarantee is provided.
  3800. ## The value "hard" means that the scheduler is *required* to not schedule two replica pods onto the same node.
  3801. ## The value "" will disable pod anti-affinity so that no anti-affinity rules will be configured.
  3802. ##
  3803. podAntiAffinity: ""
  3804. ## If anti-affinity is enabled sets the topologyKey to use for anti-affinity.
  3805. ## This can be changed to, for example, failure-domain.beta.kubernetes.io/zone
  3806. ##
  3807. podAntiAffinityTopologyKey: kubernetes.io/hostname
  3808. ## Assign custom affinity rules to the thanosRuler instance
  3809. ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
  3810. ##
  3811. affinity: {}
  3812. # nodeAffinity:
  3813. # requiredDuringSchedulingIgnoredDuringExecution:
  3814. # nodeSelectorTerms:
  3815. # - matchExpressions:
  3816. # - key: kubernetes.io/e2e-az-name
  3817. # operator: In
  3818. # values:
  3819. # - e2e-az1
  3820. # - e2e-az2
  3821. ## If specified, the pod's tolerations.
  3822. ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
  3823. ##
  3824. tolerations: []
  3825. # - key: "key"
  3826. # operator: "Equal"
  3827. # value: "value"
  3828. # effect: "NoSchedule"
  3829. ## If specified, the pod's topology spread constraints.
  3830. ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
  3831. ##
  3832. topologySpreadConstraints: []
  3833. # - maxSkew: 1
  3834. # topologyKey: topology.kubernetes.io/zone
  3835. # whenUnsatisfiable: DoNotSchedule
  3836. # labelSelector:
  3837. # matchLabels:
  3838. # app: thanos-ruler
  3839. ## SecurityContext holds pod-level security attributes and common container settings.
  3840. ## This defaults to non root user with uid 1000 and gid 2000. *v1.PodSecurityContext false
  3841. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
  3842. ##
  3843. securityContext:
  3844. runAsGroup: 2000
  3845. runAsNonRoot: true
  3846. runAsUser: 1000
  3847. fsGroup: 2000
  3848. seccompProfile:
  3849. type: RuntimeDefault
  3850. ## ListenLocal makes the ThanosRuler server listen on loopback, so that it does not bind against the Pod IP.
  3851. ## Note this is only for the ThanosRuler UI, not the gossip communication.
  3852. ##
  3853. listenLocal: false
  3854. ## Containers allows injecting additional containers. This is meant to allow adding an authentication proxy to an ThanosRuler pod.
  3855. ##
  3856. containers: []
  3857. # Additional volumes on the output StatefulSet definition.
  3858. volumes: []
  3859. # Additional VolumeMounts on the output StatefulSet definition.
  3860. volumeMounts: []
  3861. ## InitContainers allows injecting additional initContainers. This is meant to allow doing some changes
  3862. ## (permissions, dir tree) on mounted volumes before starting prometheus
  3863. initContainers: []
  3864. ## Priority class assigned to the Pods
  3865. ##
  3866. priorityClassName: ""
  3867. ## PortName to use for ThanosRuler.
  3868. ##
  3869. portName: "web"
  3870. ## ExtraSecret can be used to store various data in an extra secret
  3871. ## (use it for example to store hashed basic auth credentials)
  3872. extraSecret:
  3873. ## if not set, name will be auto generated
  3874. # name: ""
  3875. annotations: {}
  3876. data: {}
  3877. # auth: |
  3878. # foo:$apr1$OFG3Xybp$ckL0FHDAkoXYIlH9.cysT0
  3879. # someoneelse:$apr1$DMZX2Z4q$6SbQIfyuLQd.xmo/P0m2c.
  3880. ## Setting to true produces cleaner resource names, but requires a data migration because the name of the persistent volume changes. Therefore this should only be set once on initial installation.
  3881. ##
  3882. cleanPrometheusOperatorObjectNames: false
  3883. ## Extra manifests to deploy as an array
  3884. extraManifests: []
  3885. # - apiVersion: v1
  3886. # kind: ConfigMap
  3887. # metadata:
  3888. # labels:
  3889. # name: prometheus-extra
  3890. # data:
  3891. # extra-data: "value"