values.yaml 135 KB

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