values.yaml 152 KB

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