values.yaml 135 KB

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