12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872 |
- # Default values for kube-prometheus-stack.
- # This is a YAML-formatted file.
- # Declare variables to be passed into your templates.
- ## Provide a name in place of kube-prometheus-stack for `app:` labels
- ##
- nameOverride: ""
- ## Override the deployment namespace
- ##
- namespaceOverride: ""
- ## Provide a k8s version to auto dashboard import script example: kubeTargetVersionOverride: 1.16.6
- ##
- kubeTargetVersionOverride: ""
- ## Allow kubeVersion to be overridden while creating the ingress
- ##
- kubeVersionOverride: ""
- ## Provide a name to substitute for the full names of resources
- ##
- fullnameOverride: ""
- ## Labels to apply to all resources
- ##
- commonLabels: {}
- # scmhash: abc123
- # myLabel: aakkmd
- ## Create default rules for monitoring the cluster
- ##
- defaultRules:
- create: true
- rules:
- alertmanager: true
- etcd: true
- configReloaders: true
- general: true
- k8s: true
- kubeApiserverAvailability: true
- kubeApiserverBurnrate: true
- kubeApiserverHistogram: true
- kubeApiserverSlos: true
- kubeControllerManager: true
- kubelet: true
- kubeProxy: true
- kubePrometheusGeneral: true
- kubePrometheusNodeRecording: true
- kubernetesApps: true
- kubernetesResources: true
- kubernetesStorage: true
- kubernetesSystem: true
- kubeSchedulerAlerting: true
- kubeSchedulerRecording: true
- kubeStateMetrics: true
- network: true
- node: true
- nodeExporterAlerting: true
- nodeExporterRecording: true
- prometheus: true
- prometheusOperator: true
- ## Reduce app namespace alert scope
- appNamespacesTarget: ".*"
- ## Labels for default rules
- labels: {}
- ## Annotations for default rules
- annotations: {}
- ## Additional labels for PrometheusRule alerts
- additionalRuleLabels: {}
- ## Additional annotations for PrometheusRule alerts
- additionalRuleAnnotations: {}
- ## Prefix for runbook URLs. Use this to override the first part of the runbookURLs that is common to all rules.
- runbookUrl: "https://runbooks.prometheus-operator.dev/runbooks"
- ## Disabled PrometheusRule alerts
- disabled: {}
- # KubeAPIDown: true
- # NodeRAIDDegraded: true
- ## Deprecated way to provide custom recording or alerting rules to be deployed into the cluster.
- ##
- # additionalPrometheusRules: []
- # - name: my-rule-file
- # groups:
- # - name: my_group
- # rules:
- # - record: my_record
- # expr: 100 * my_record
- ## Provide custom recording or alerting rules to be deployed into the cluster.
- ##
- additionalPrometheusRulesMap: {}
- # rule-name:
- # groups:
- # - name: my_group
- # rules:
- # - record: my_record
- # expr: 100 * my_record
- ##
- global:
- rbac:
- create: true
- ## Create ClusterRoles that extend the existing view, edit and admin ClusterRoles to interact with prometheus-operator CRDs
- ## Ref: https://kubernetes.io/docs/reference/access-authn-authz/rbac/#aggregated-clusterroles
- createAggregateClusterRoles: false
- pspEnabled: false
- pspAnnotations: {}
- ## Specify pod annotations
- ## Ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/#apparmor
- ## Ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/#seccomp
- ## Ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/#sysctl
- ##
- # seccomp.security.alpha.kubernetes.io/allowedProfileNames: '*'
- # seccomp.security.alpha.kubernetes.io/defaultProfileName: 'docker/default'
- # apparmor.security.beta.kubernetes.io/defaultProfileName: 'runtime/default'
- ## Global image registry to use if it needs to be overriden for some specific use cases (e.g local registries, custom images, ...)
- ##
- imageRegistry: ""
- ## Reference to one or more secrets to be used when pulling images
- ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
- ##
- imagePullSecrets: []
- # - name: "image-pull-secret"
- # or
- # - "image-pull-secret"
- ## Configuration for alertmanager
- ## ref: https://prometheus.io/docs/alerting/alertmanager/
- ##
- alertmanager:
- ## Deploy alertmanager
- ##
- enabled: true
- ## Annotations for Alertmanager
- ##
- annotations: {}
- ## Api that prometheus will use to communicate with alertmanager. Possible values are v1, v2
- ##
- apiVersion: v2
- ## Service account for Alertmanager to use.
- ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
- ##
- serviceAccount:
- create: true
- name: ""
- annotations: {}
- automountServiceAccountToken: true
- ## Configure pod disruption budgets for Alertmanager
- ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/#specifying-a-poddisruptionbudget
- ## This configuration is immutable once created and will require the PDB to be deleted to be changed
- ## https://github.com/kubernetes/kubernetes/issues/45398
- ##
- podDisruptionBudget:
- enabled: false
- minAvailable: 1
- maxUnavailable: ""
- ## Alertmanager configuration directives
- ## ref: https://prometheus.io/docs/alerting/configuration/#configuration-file
- ## https://prometheus.io/webtools/alerting/routing-tree-editor/
- ##
- config:
- global:
- resolve_timeout: 5m
- inhibit_rules:
- - source_matchers:
- - 'severity = critical'
- target_matchers:
- - 'severity =~ warning|info'
- equal:
- - 'namespace'
- - 'alertname'
- - source_matchers:
- - 'severity = warning'
- target_matchers:
- - 'severity = info'
- equal:
- - 'namespace'
- - 'alertname'
- - source_matchers:
- - 'alertname = InfoInhibitor'
- target_matchers:
- - 'severity = info'
- equal:
- - 'namespace'
- route:
- group_by: ['namespace']
- group_wait: 30s
- group_interval: 5m
- repeat_interval: 12h
- receiver: 'null'
- routes:
- - receiver: 'null'
- matchers:
- - alertname =~ "InfoInhibitor|Watchdog"
- receivers:
- - name: 'null'
- templates:
- - '/etc/alertmanager/config/*.tmpl'
- ## Alertmanager configuration directives (as string type, preferred over the config hash map)
- ## stringConfig will be used only, if tplConfig is true
- ## ref: https://prometheus.io/docs/alerting/configuration/#configuration-file
- ## https://prometheus.io/webtools/alerting/routing-tree-editor/
- ##
- stringConfig: ""
- ## Pass the Alertmanager configuration directives through Helm's templating
- ## engine. If the Alertmanager configuration contains Alertmanager templates,
- ## they'll need to be properly escaped so that they are not interpreted by
- ## Helm
- ## ref: https://helm.sh/docs/developing_charts/#using-the-tpl-function
- ## https://prometheus.io/docs/alerting/configuration/#tmpl_string
- ## https://prometheus.io/docs/alerting/notifications/
- ## https://prometheus.io/docs/alerting/notification_examples/
- tplConfig: false
- ## Alertmanager template files to format alerts
- ## By default, templateFiles are placed in /etc/alertmanager/config/ and if
- ## they have a .tmpl file suffix will be loaded. See config.templates above
- ## to change, add other suffixes. If adding other suffixes, be sure to update
- ## config.templates above to include those suffixes.
- ## ref: https://prometheus.io/docs/alerting/notifications/
- ## https://prometheus.io/docs/alerting/notification_examples/
- ##
- templateFiles: {}
- #
- ## An example template:
- # template_1.tmpl: |-
- # {{ define "cluster" }}{{ .ExternalURL | reReplaceAll ".*alertmanager\\.(.*)" "$1" }}{{ end }}
- #
- # {{ define "slack.myorg.text" }}
- # {{- $root := . -}}
- # {{ range .Alerts }}
- # *Alert:* {{ .Annotations.summary }} - `{{ .Labels.severity }}`
- # *Cluster:* {{ template "cluster" $root }}
- # *Description:* {{ .Annotations.description }}
- # *Graph:* <{{ .GeneratorURL }}|:chart_with_upwards_trend:>
- # *Runbook:* <{{ .Annotations.runbook }}|:spiral_note_pad:>
- # *Details:*
- # {{ range .Labels.SortedPairs }} - *{{ .Name }}:* `{{ .Value }}`
- # {{ end }}
- # {{ end }}
- # {{ end }}
- ingress:
- enabled: false
- # For Kubernetes >= 1.18 you should specify the ingress-controller via the field ingressClassName
- # See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#specifying-the-class-of-an-ingress
- # ingressClassName: nginx
- annotations: {}
- labels: {}
- ## Redirect ingress to an additional defined port on the service
- # servicePort: 8081
- ## Hosts must be provided if Ingress is enabled.
- ##
- hosts: []
- # - alertmanager.domain.com
- ## Paths to use for ingress rules - one path should match the alertmanagerSpec.routePrefix
- ##
- paths: []
- # - /
- ## For Kubernetes >= 1.18 you should specify the pathType (determines how Ingress paths should be matched)
- ## See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#better-path-matching-with-path-types
- # pathType: ImplementationSpecific
- ## TLS configuration for Alertmanager Ingress
- ## Secret must be manually created in the namespace
- ##
- tls: []
- # - secretName: alertmanager-general-tls
- # hosts:
- # - alertmanager.example.com
- ## Configuration for Alertmanager secret
- ##
- secret:
- annotations: {}
- ## Configuration for creating an Ingress that will map to each Alertmanager replica service
- ## alertmanager.servicePerReplica must be enabled
- ##
- ingressPerReplica:
- enabled: false
- # For Kubernetes >= 1.18 you should specify the ingress-controller via the field ingressClassName
- # See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#specifying-the-class-of-an-ingress
- # ingressClassName: nginx
- annotations: {}
- labels: {}
- ## Final form of the hostname for each per replica ingress is
- ## {{ ingressPerReplica.hostPrefix }}-{{ $replicaNumber }}.{{ ingressPerReplica.hostDomain }}
- ##
- ## Prefix for the per replica ingress that will have `-$replicaNumber`
- ## appended to the end
- hostPrefix: ""
- ## Domain that will be used for the per replica ingress
- hostDomain: ""
- ## Paths to use for ingress rules
- ##
- paths: []
- # - /
- ## For Kubernetes >= 1.18 you should specify the pathType (determines how Ingress paths should be matched)
- ## See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#better-path-matching-with-path-types
- # pathType: ImplementationSpecific
- ## Secret name containing the TLS certificate for alertmanager per replica ingress
- ## Secret must be manually created in the namespace
- tlsSecretName: ""
- ## Separated secret for each per replica Ingress. Can be used together with cert-manager
- ##
- tlsSecretPerReplica:
- enabled: false
- ## Final form of the secret for each per replica ingress is
- ## {{ tlsSecretPerReplica.prefix }}-{{ $replicaNumber }}
- ##
- prefix: "alertmanager"
- ## Configuration for Alertmanager service
- ##
- service:
- annotations: {}
- labels: {}
- clusterIP: ""
- ## Port for Alertmanager Service to listen on
- ##
- port: 9093
- ## To be used with a proxy extraContainer port
- ##
- targetPort: 9093
- ## Port to expose on each node
- ## Only used if service.type is 'NodePort'
- ##
- nodePort: 30903
- ## List of IP addresses at which the Prometheus server service is available
- ## Ref: https://kubernetes.io/docs/user-guide/services/#external-ips
- ##
- ## Additional ports to open for Alertmanager service
- additionalPorts: []
- # additionalPorts:
- # - name: authenticated
- # port: 8081
- # targetPort: 8081
- externalIPs: []
- loadBalancerIP: ""
- loadBalancerSourceRanges: []
- ## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
- ##
- externalTrafficPolicy: Cluster
- ## If you want to make sure that connections from a particular client are passed to the same Pod each time
- ## Accepts 'ClientIP' or ''
- ##
- sessionAffinity: ""
- ## Service type
- ##
- type: ClusterIP
- ## Configuration for creating a separate Service for each statefulset Alertmanager replica
- ##
- servicePerReplica:
- enabled: false
- annotations: {}
- ## Port for Alertmanager Service per replica to listen on
- ##
- port: 9093
- ## To be used with a proxy extraContainer port
- targetPort: 9093
- ## Port to expose on each node
- ## Only used if servicePerReplica.type is 'NodePort'
- ##
- nodePort: 30904
- ## Loadbalancer source IP ranges
- ## Only used if servicePerReplica.type is "LoadBalancer"
- loadBalancerSourceRanges: []
- ## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
- ##
- externalTrafficPolicy: Cluster
- ## Service type
- ##
- type: ClusterIP
- ## If true, create a serviceMonitor for alertmanager
- ##
- serviceMonitor:
- ## Scrape interval. If not set, the Prometheus default scrape interval is used.
- ##
- interval: ""
- selfMonitor: true
- ## Additional labels
- ##
- additionalLabels: {}
- ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
- ##
- sampleLimit: 0
- ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
- ##
- targetLimit: 0
- ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
- ##
- labelLimit: 0
- ## 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.
- ##
- labelNameLengthLimit: 0
- ## 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.
- ##
- labelValueLengthLimit: 0
- ## proxyUrl: URL of a proxy that should be used for scraping.
- ##
- proxyUrl: ""
- ## scheme: HTTP scheme to use for scraping. Can be used with `tlsConfig` for example if using istio mTLS.
- scheme: ""
- ## enableHttp2: Whether to enable HTTP2.
- ## See https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#endpoint
- enableHttp2: true
- ## tlsConfig: TLS configuration to use when scraping the endpoint. For example if using istio mTLS.
- ## Of type: https://github.com/coreos/prometheus-operator/blob/main/Documentation/api.md#tlsconfig
- tlsConfig: {}
- bearerTokenFile:
- ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
- ##
- metricRelabelings: []
- # - action: keep
- # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
- # sourceLabels: [__name__]
- ## RelabelConfigs to apply to samples before scraping
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
- ##
- relabelings: []
- # - sourceLabels: [__meta_kubernetes_pod_node_name]
- # separator: ;
- # regex: ^(.*)$
- # targetLabel: nodename
- # replacement: $1
- # action: replace
- ## Settings affecting alertmanagerSpec
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#alertmanagerspec
- ##
- alertmanagerSpec:
- ## Standard object's metadata. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata
- ## Metadata Labels and Annotations gets propagated to the Alertmanager pods.
- ##
- podMetadata: {}
- ## Image of Alertmanager
- ##
- image:
- registry: quay.io
- repository: prometheus/alertmanager
- tag: v0.25.0
- sha: ""
- ## If true then the user will be responsible to provide a secret with alertmanager configuration
- ## So when true the config part will be ignored (including templateFiles) and the one in the secret will be used
- ##
- useExistingSecret: false
- ## Secrets is a list of Secrets in the same namespace as the Alertmanager object, which shall be mounted into the
- ## Alertmanager Pods. The Secrets are mounted into /etc/alertmanager/secrets/.
- ##
- secrets: []
- ## ConfigMaps is a list of ConfigMaps in the same namespace as the Alertmanager object, which shall be mounted into the Alertmanager Pods.
- ## The ConfigMaps are mounted into /etc/alertmanager/configmaps/.
- ##
- configMaps: []
- ## ConfigSecret is the name of a Kubernetes Secret in the same namespace as the Alertmanager object, which contains configuration for
- ## this Alertmanager instance. Defaults to 'alertmanager-' The secret is mounted into /etc/alertmanager/config.
- ##
- # configSecret:
- ## WebTLSConfig defines the TLS parameters for HTTPS
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#alertmanagerwebspec
- web: {}
- ## AlertmanagerConfigs to be selected to merge and configure Alertmanager with.
- ##
- alertmanagerConfigSelector: {}
- ## Example which selects all alertmanagerConfig resources
- ## with label "alertconfig" with values any of "example-config" or "example-config-2"
- # alertmanagerConfigSelector:
- # matchExpressions:
- # - key: alertconfig
- # operator: In
- # values:
- # - example-config
- # - example-config-2
- #
- ## Example which selects all alertmanagerConfig resources with label "role" set to "example-config"
- # alertmanagerConfigSelector:
- # matchLabels:
- # role: example-config
- ## Namespaces to be selected for AlertmanagerConfig discovery. If nil, only check own namespace.
- ##
- alertmanagerConfigNamespaceSelector: {}
- ## Example which selects all namespaces
- ## with label "alertmanagerconfig" with values any of "example-namespace" or "example-namespace-2"
- # alertmanagerConfigNamespaceSelector:
- # matchExpressions:
- # - key: alertmanagerconfig
- # operator: In
- # values:
- # - example-namespace
- # - example-namespace-2
- ## Example which selects all namespaces with label "alertmanagerconfig" set to "enabled"
- # alertmanagerConfigNamespaceSelector:
- # matchLabels:
- # alertmanagerconfig: enabled
- ## AlermanagerConfig to be used as top level configuration
- ##
- alertmanagerConfiguration: {}
- ## Example with select a global alertmanagerconfig
- # alertmanagerConfiguration:
- # name: global-alertmanager-Configuration
- ## Defines the strategy used by AlertmanagerConfig objects to match alerts. eg:
- ##
- alertmanagerConfigMatcherStrategy: {}
- ## Example with use OnNamespace strategy
- # alertmanagerConfigMatcherStrategy:
- # type: OnNamespace
- ## Define Log Format
- # Use logfmt (default) or json logging
- logFormat: logfmt
- ## Log level for Alertmanager to be configured with.
- ##
- logLevel: info
- ## Size is the expected size of the alertmanager cluster. The controller will eventually make the size of the
- ## running cluster equal to the expected size.
- replicas: 1
- ## Time duration Alertmanager shall retain data for. Default is '120h', and must match the regular expression
- ## [0-9]+(ms|s|m|h) (milliseconds seconds minutes hours).
- ##
- retention: 120h
- ## Storage is the definition of how storage will be used by the Alertmanager instances.
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/user-guides/storage.md
- ##
- storage: {}
- # volumeClaimTemplate:
- # spec:
- # storageClassName: gluster
- # accessModes: ["ReadWriteOnce"]
- # resources:
- # requests:
- # storage: 50Gi
- # selector: {}
- ## 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
- ##
- externalUrl:
- ## 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,
- ## but the server serves requests under a different route prefix. For example for use with kubectl proxy.
- ##
- routePrefix: /
- ## If set to true all actions on the underlying managed objects are not going to be performed, except for delete actions.
- ##
- paused: false
- ## Define which Nodes the Pods are scheduled on.
- ## ref: https://kubernetes.io/docs/user-guide/node-selection/
- ##
- nodeSelector: {}
- ## Define resources requests and limits for single Pods.
- ## ref: https://kubernetes.io/docs/user-guide/compute-resources/
- ##
- resources: {}
- # requests:
- # memory: 400Mi
- ## Pod anti-affinity can prevent the scheduler from placing Prometheus replicas on the same node.
- ## 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.
- ## The value "hard" means that the scheduler is *required* to not schedule two replica pods onto the same node.
- ## The value "" will disable pod anti-affinity so that no anti-affinity rules will be configured.
- ##
- podAntiAffinity: ""
- ## If anti-affinity is enabled sets the topologyKey to use for anti-affinity.
- ## This can be changed to, for example, failure-domain.beta.kubernetes.io/zone
- ##
- podAntiAffinityTopologyKey: kubernetes.io/hostname
- ## Assign custom affinity rules to the alertmanager instance
- ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
- ##
- affinity: {}
- # nodeAffinity:
- # requiredDuringSchedulingIgnoredDuringExecution:
- # nodeSelectorTerms:
- # - matchExpressions:
- # - key: kubernetes.io/e2e-az-name
- # operator: In
- # values:
- # - e2e-az1
- # - e2e-az2
- ## If specified, the pod's tolerations.
- ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
- ##
- tolerations: []
- # - key: "key"
- # operator: "Equal"
- # value: "value"
- # effect: "NoSchedule"
- ## If specified, the pod's topology spread constraints.
- ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
- ##
- topologySpreadConstraints: []
- # - maxSkew: 1
- # topologyKey: topology.kubernetes.io/zone
- # whenUnsatisfiable: DoNotSchedule
- # labelSelector:
- # matchLabels:
- # app: alertmanager
- ## SecurityContext holds pod-level security attributes and common container settings.
- ## This defaults to non root user with uid 1000 and gid 2000. *v1.PodSecurityContext false
- ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
- ##
- securityContext:
- runAsGroup: 2000
- runAsNonRoot: true
- runAsUser: 1000
- fsGroup: 2000
- ## ListenLocal makes the Alertmanager server listen on loopback, so that it does not bind against the Pod IP.
- ## Note this is only for the Alertmanager UI, not the gossip communication.
- ##
- listenLocal: false
- ## Containers allows injecting additional containers. This is meant to allow adding an authentication proxy to an Alertmanager pod.
- ##
- containers: []
- # containers:
- # - name: oauth-proxy
- # image: quay.io/oauth2-proxy/oauth2-proxy:v7.3.0
- # args:
- # - --upstream=http://127.0.0.1:9093
- # - --http-address=0.0.0.0:8081
- # - ...
- # ports:
- # - containerPort: 8081
- # name: oauth-proxy
- # protocol: TCP
- # resources: {}
- # Additional volumes on the output StatefulSet definition.
- volumes: []
- # Additional VolumeMounts on the output StatefulSet definition.
- volumeMounts: []
- ## InitContainers allows injecting additional initContainers. This is meant to allow doing some changes
- ## (permissions, dir tree) on mounted volumes before starting prometheus
- initContainers: []
- ## Priority class assigned to the Pods
- ##
- priorityClassName: ""
- ## AdditionalPeers allows injecting a set of additional Alertmanagers to peer with to form a highly available cluster.
- ##
- additionalPeers: []
- ## PortName to use for Alert Manager.
- ##
- portName: "http-web"
- ## 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
- ##
- clusterAdvertiseAddress: false
- ## ForceEnableClusterMode ensures Alertmanager does not deactivate the cluster mode when running with a single replica.
- ## Use case is e.g. spanning an Alertmanager cluster across Kubernetes clusters with a single replica in each.
- forceEnableClusterMode: false
- ## Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to
- ## be considered available. Defaults to 0 (pod will be considered available as soon as it is ready).
- minReadySeconds: 0
- ## ExtraSecret can be used to store various data in an extra secret
- ## (use it for example to store hashed basic auth credentials)
- extraSecret:
- ## if not set, name will be auto generated
- # name: ""
- annotations: {}
- data: {}
- # auth: |
- # foo:$apr1$OFG3Xybp$ckL0FHDAkoXYIlH9.cysT0
- # someoneelse:$apr1$DMZX2Z4q$6SbQIfyuLQd.xmo/P0m2c.
- ## Using default values from https://github.com/grafana/helm-charts/blob/main/charts/grafana/values.yaml
- ##
- grafana:
- enabled: true
- namespaceOverride: ""
- ## ForceDeployDatasources Create datasource configmap even if grafana deployment has been disabled
- ##
- forceDeployDatasources: false
- ## ForceDeployDashboard Create dashboard configmap even if grafana deployment has been disabled
- ##
- forceDeployDashboards: false
- ## Deploy default dashboards
- ##
- defaultDashboardsEnabled: true
- ## Timezone for the default dashboards
- ## Other options are: browser or a specific timezone, i.e. Europe/Luxembourg
- ##
- defaultDashboardsTimezone: Europe/Zurich
- adminPassword: 2FR3pFRfyZpS5meVDzJX
- rbac:
- ## If true, Grafana PSPs will be created
- ##
- pspEnabled: false
- ingress:
- ## If true, Grafana Ingress will be created
- ##
- enabled: true
- ## IngressClassName for Grafana Ingress.
- ## Should be provided if Ingress is enable.
- ##
- ingressClassName: nginx
- ## Annotations for Grafana Ingress
- ##
- annotations: {
- cert-manager.io/cluster-issuer: "letsencrypt",
- acme.cert-manager.io/http01-edit-in-place: "true",
- ingress.kubernetes.io/ssl-redirect: "true",
- nginx.org/redirect-to-https: "true",
- }
- # kubernetes.io/ingress.class: nginx
- # kubernetes.io/tls-acme: "true"
- ## Labels to be added to the Ingress
- ##
- labels: {}
- ## Hostnames.
- ## Must be provided if Ingress is enable.
- ##
- # hosts:
- # - grafana.domain.com
- hosts: ["gfn.dodges.it"]
- ## Path for grafana ingress
- path: /
- ## TLS configuration for grafana Ingress
- ## Secret must be manually created in the namespace
- ##
- #tls: []
- tls:
- - secretName: gfn-le-secret
- hosts:
- - gfn.dodges.it
- sidecar:
- dashboards:
- enabled: true
- label: grafana_dashboard
- labelValue: "1"
- # Allow discovery in all namespaces for dashboards
- searchNamespace: ALL
- ## Annotations for Grafana dashboard configmaps
- ##
- annotations: {}
- multicluster:
- global:
- enabled: false
- etcd:
- enabled: false
- provider:
- allowUiUpdates: false
- datasources:
- enabled: true
- defaultDatasourceEnabled: true
- isDefaultDatasource: true
- uid: prometheus
- ## URL of prometheus datasource
- ##
- # url: http://prometheus-stack-prometheus:9090/
- ## Prometheus request timeout in seconds
- # timeout: 30
- # If not defined, will use prometheus.prometheusSpec.scrapeInterval or its default
- # defaultDatasourceScrapeInterval: 15s
- ## Annotations for Grafana datasource configmaps
- ##
- annotations: {}
- ## Set method for HTTP to send query to datasource
- httpMethod: POST
- ## Create datasource for each Pod of Prometheus StatefulSet;
- ## this uses headless service `prometheus-operated` which is
- ## created by Prometheus Operator
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/0fee93e12dc7c2ea1218f19ae25ec6b893460590/pkg/prometheus/statefulset.go#L255-L286
- createPrometheusReplicasDatasources: false
- label: grafana_datasource
- labelValue: "1"
- ## Field with internal link pointing to existing data source in Grafana.
- ## Can be provisioned via additionalDataSources
- exemplarTraceIdDestinations: {}
- # datasourceUid: Jaeger
- # traceIdLabelName: trace_id
- extraConfigmapMounts: []
- # - name: certs-configmap
- # mountPath: /etc/grafana/ssl/
- # configMap: certs-configmap
- # readOnly: true
- deleteDatasources: []
- # - name: example-datasource
- # orgId: 1
- ## Configure additional grafana datasources (passed through tpl)
- ## ref: http://docs.grafana.org/administration/provisioning/#datasources
- additionalDataSources: []
- # - name: prometheus-sample
- # access: proxy
- # basicAuth: true
- # basicAuthPassword: pass
- # basicAuthUser: daco
- # editable: false
- # jsonData:
- # tlsSkipVerify: true
- # orgId: 1
- # type: prometheus
- # url: https://{{ printf "%s-prometheus.svc" .Release.Name }}:9090
- # version: 1
- ## Passed to grafana subchart and used by servicemonitor below
- ##
- service:
- portName: http-web
- serviceMonitor:
- # If true, a ServiceMonitor CRD is created for a prometheus operator
- # https://github.com/coreos/prometheus-operator
- #
- enabled: true
- # Path to use for scraping metrics. Might be different if server.root_url is set
- # in grafana.ini
- path: "/metrics"
- # namespace: monitoring (defaults to use the namespace this chart is deployed to)
- # labels for the ServiceMonitor
- labels: {}
- # Scrape interval. If not set, the Prometheus default scrape interval is used.
- #
- interval: ""
- scheme: http
- tlsConfig: {}
- scrapeTimeout: 30s
- ## RelabelConfigs to apply to samples before scraping
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
- ##
- relabelings: []
- # - sourceLabels: [__meta_kubernetes_pod_node_name]
- # separator: ;
- # regex: ^(.*)$
- # targetLabel: nodename
- # replacement: $1
- # action: replace
- ## Flag to disable all the kubernetes component scrapers
- ##
- kubernetesServiceMonitors:
- enabled: true
- ## Component scraping the kube api server
- ##
- kubeApiServer:
- enabled: true
- tlsConfig:
- serverName: kubernetes
- insecureSkipVerify: false
- serviceMonitor:
- ## Scrape interval. If not set, the Prometheus default scrape interval is used.
- ##
- interval: ""
- ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
- ##
- sampleLimit: 0
- ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
- ##
- targetLimit: 0
- ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
- ##
- labelLimit: 0
- ## 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.
- ##
- labelNameLengthLimit: 0
- ## 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.
- ##
- labelValueLengthLimit: 0
- ## proxyUrl: URL of a proxy that should be used for scraping.
- ##
- proxyUrl: ""
- jobLabel: component
- selector:
- matchLabels:
- component: apiserver
- provider: kubernetes
- ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
- ##
- metricRelabelings:
- # Drop excessively noisy apiserver buckets.
- - action: drop
- 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)
- sourceLabels:
- - __name__
- - le
- # - action: keep
- # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
- # sourceLabels: [__name__]
- ## RelabelConfigs to apply to samples before scraping
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
- ##
- relabelings: []
- # - sourceLabels:
- # - __meta_kubernetes_namespace
- # - __meta_kubernetes_service_name
- # - __meta_kubernetes_endpoint_port_name
- # action: keep
- # regex: default;kubernetes;https
- # - targetLabel: __address__
- # replacement: kubernetes.default.svc:443
- ## Additional labels
- ##
- additionalLabels: {}
- # foo: bar
- ## Component scraping the kubelet and kubelet-hosted cAdvisor
- ##
- kubelet:
- enabled: true
- namespace: kube-system
- serviceMonitor:
- ## Scrape interval. If not set, the Prometheus default scrape interval is used.
- ##
- interval: ""
- ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
- ##
- sampleLimit: 0
- ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
- ##
- targetLimit: 0
- ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
- ##
- labelLimit: 0
- ## 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.
- ##
- labelNameLengthLimit: 0
- ## 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.
- ##
- labelValueLengthLimit: 0
- ## proxyUrl: URL of a proxy that should be used for scraping.
- ##
- proxyUrl: ""
- ## Enable scraping the kubelet over https. For requirements to enable this see
- ## https://github.com/prometheus-operator/prometheus-operator/issues/926
- ##
- https: true
- ## Enable scraping /metrics/cadvisor from kubelet's service
- ##
- cAdvisor: true
- ## Enable scraping /metrics/probes from kubelet's service
- ##
- probes: true
- ## Enable scraping /metrics/resource from kubelet's service
- ## This is disabled by default because container metrics are already exposed by cAdvisor
- ##
- resource: false
- # From kubernetes 1.18, /metrics/resource/v1alpha1 renamed to /metrics/resource
- resourcePath: "/metrics/resource/v1alpha1"
- ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
- ##
- cAdvisorMetricRelabelings:
- # Drop less useful container CPU metrics.
- - sourceLabels: [__name__]
- action: drop
- regex: 'container_cpu_(cfs_throttled_seconds_total|load_average_10s|system_seconds_total|user_seconds_total)'
- # Drop less useful container / always zero filesystem metrics.
- - sourceLabels: [__name__]
- action: drop
- 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)'
- # Drop less useful / always zero container memory metrics.
- - sourceLabels: [__name__]
- action: drop
- regex: 'container_memory_(mapped_file|swap)'
- # Drop less useful container process metrics.
- - sourceLabels: [__name__]
- action: drop
- regex: 'container_(file_descriptors|tasks_state|threads_max)'
- # Drop container spec metrics that overlap with kube-state-metrics.
- - sourceLabels: [__name__]
- action: drop
- regex: 'container_spec.*'
- # Drop cgroup metrics with no pod.
- - sourceLabels: [id, pod]
- action: drop
- regex: '.+;'
- # - sourceLabels: [__name__, image]
- # separator: ;
- # regex: container_([a-z_]+);
- # replacement: $1
- # action: drop
- # - sourceLabels: [__name__]
- # separator: ;
- # regex: container_(network_tcp_usage_total|network_udp_usage_total|tasks_state|cpu_load_average_10s)
- # replacement: $1
- # action: drop
- ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
- ##
- probesMetricRelabelings: []
- # - sourceLabels: [__name__, image]
- # separator: ;
- # regex: container_([a-z_]+);
- # replacement: $1
- # action: drop
- # - sourceLabels: [__name__]
- # separator: ;
- # regex: container_(network_tcp_usage_total|network_udp_usage_total|tasks_state|cpu_load_average_10s)
- # replacement: $1
- # action: drop
- ## RelabelConfigs to apply to samples before scraping
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
- ##
- ## metrics_path is required to match upstream rules and charts
- cAdvisorRelabelings:
- - action: replace
- sourceLabels: [__metrics_path__]
- targetLabel: metrics_path
- # - sourceLabels: [__meta_kubernetes_pod_node_name]
- # separator: ;
- # regex: ^(.*)$
- # targetLabel: nodename
- # replacement: $1
- # action: replace
- ## RelabelConfigs to apply to samples before scraping
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
- ##
- probesRelabelings:
- - action: replace
- sourceLabels: [__metrics_path__]
- targetLabel: metrics_path
- # - sourceLabels: [__meta_kubernetes_pod_node_name]
- # separator: ;
- # regex: ^(.*)$
- # targetLabel: nodename
- # replacement: $1
- # action: replace
- ## RelabelConfigs to apply to samples before scraping
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
- ##
- resourceRelabelings:
- - action: replace
- sourceLabels: [__metrics_path__]
- targetLabel: metrics_path
- # - sourceLabels: [__meta_kubernetes_pod_node_name]
- # separator: ;
- # regex: ^(.*)$
- # targetLabel: nodename
- # replacement: $1
- # action: replace
- ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
- ##
- metricRelabelings: []
- # - sourceLabels: [__name__, image]
- # separator: ;
- # regex: container_([a-z_]+);
- # replacement: $1
- # action: drop
- # - sourceLabels: [__name__]
- # separator: ;
- # regex: container_(network_tcp_usage_total|network_udp_usage_total|tasks_state|cpu_load_average_10s)
- # replacement: $1
- # action: drop
- ## RelabelConfigs to apply to samples before scraping
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
- ##
- ## metrics_path is required to match upstream rules and charts
- relabelings:
- - action: replace
- sourceLabels: [__metrics_path__]
- targetLabel: metrics_path
- # - sourceLabels: [__meta_kubernetes_pod_node_name]
- # separator: ;
- # regex: ^(.*)$
- # targetLabel: nodename
- # replacement: $1
- # action: replace
- ## Additional labels
- ##
- additionalLabels: {}
- # foo: bar
- ## Component scraping the kube controller manager
- ##
- kubeControllerManager:
- enabled: true
- ## If your kube controller manager is not deployed as a pod, specify IPs it can be found on
- ##
- endpoints: []
- # - 10.141.4.22
- # - 10.141.4.23
- # - 10.141.4.24
- ## If using kubeControllerManager.endpoints only the port and targetPort are used
- ##
- service:
- enabled: true
- ## If null or unset, the value is determined dynamically based on target Kubernetes version due to change
- ## of default port in Kubernetes 1.22.
- ##
- port: null
- targetPort: null
- # selector:
- # component: kube-controller-manager
- serviceMonitor:
- enabled: true
- ## Scrape interval. If not set, the Prometheus default scrape interval is used.
- ##
- interval: ""
- ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
- ##
- sampleLimit: 0
- ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
- ##
- targetLimit: 0
- ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
- ##
- labelLimit: 0
- ## 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.
- ##
- labelNameLengthLimit: 0
- ## 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.
- ##
- labelValueLengthLimit: 0
- ## proxyUrl: URL of a proxy that should be used for scraping.
- ##
- proxyUrl: ""
- ## Enable scraping kube-controller-manager over https.
- ## Requires proper certs (not self-signed) and delegated authentication/authorization checks.
- ## If null or unset, the value is determined dynamically based on target Kubernetes version.
- ##
- https: null
- # Skip TLS certificate validation when scraping
- insecureSkipVerify: null
- # Name of the server to use when validating TLS certificate
- serverName: null
- ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
- ##
- metricRelabelings: []
- # - action: keep
- # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
- # sourceLabels: [__name__]
- ## RelabelConfigs to apply to samples before scraping
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
- ##
- relabelings: []
- # - sourceLabels: [__meta_kubernetes_pod_node_name]
- # separator: ;
- # regex: ^(.*)$
- # targetLabel: nodename
- # replacement: $1
- # action: replace
- ## Additional labels
- ##
- additionalLabels: {}
- # foo: bar
- ## Component scraping coreDns. Use either this or kubeDns
- ##
- coreDns:
- enabled: true
- service:
- port: 9153
- targetPort: 9153
- # selector:
- # k8s-app: kube-dns
- serviceMonitor:
- ## Scrape interval. If not set, the Prometheus default scrape interval is used.
- ##
- interval: ""
- ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
- ##
- sampleLimit: 0
- ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
- ##
- targetLimit: 0
- ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
- ##
- labelLimit: 0
- ## 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.
- ##
- labelNameLengthLimit: 0
- ## 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.
- ##
- labelValueLengthLimit: 0
- ## proxyUrl: URL of a proxy that should be used for scraping.
- ##
- proxyUrl: ""
- ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
- ##
- metricRelabelings: []
- # - action: keep
- # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
- # sourceLabels: [__name__]
- ## RelabelConfigs to apply to samples before scraping
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
- ##
- relabelings: []
- # - sourceLabels: [__meta_kubernetes_pod_node_name]
- # separator: ;
- # regex: ^(.*)$
- # targetLabel: nodename
- # replacement: $1
- # action: replace
- ## Additional labels
- ##
- additionalLabels: {}
- # foo: bar
- ## Component scraping kubeDns. Use either this or coreDns
- ##
- kubeDns:
- enabled: false
- service:
- dnsmasq:
- port: 10054
- targetPort: 10054
- skydns:
- port: 10055
- targetPort: 10055
- # selector:
- # k8s-app: kube-dns
- serviceMonitor:
- ## Scrape interval. If not set, the Prometheus default scrape interval is used.
- ##
- interval: ""
- ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
- ##
- sampleLimit: 0
- ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
- ##
- targetLimit: 0
- ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
- ##
- labelLimit: 0
- ## 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.
- ##
- labelNameLengthLimit: 0
- ## 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.
- ##
- labelValueLengthLimit: 0
- ## proxyUrl: URL of a proxy that should be used for scraping.
- ##
- proxyUrl: ""
- ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
- ##
- metricRelabelings: []
- # - action: keep
- # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
- # sourceLabels: [__name__]
- ## RelabelConfigs to apply to samples before scraping
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
- ##
- relabelings: []
- # - sourceLabels: [__meta_kubernetes_pod_node_name]
- # separator: ;
- # regex: ^(.*)$
- # targetLabel: nodename
- # replacement: $1
- # action: replace
- ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
- ##
- dnsmasqMetricRelabelings: []
- # - action: keep
- # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
- # sourceLabels: [__name__]
- ## RelabelConfigs to apply to samples before scraping
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
- ##
- dnsmasqRelabelings: []
- # - sourceLabels: [__meta_kubernetes_pod_node_name]
- # separator: ;
- # regex: ^(.*)$
- # targetLabel: nodename
- # replacement: $1
- # action: replace
- ## Additional labels
- ##
- additionalLabels: {}
- # foo: bar
- ## Component scraping etcd
- ##
- kubeEtcd:
- enabled: true
- ## If your etcd is not deployed as a pod, specify IPs it can be found on
- ##
- endpoints: []
- # - 10.141.4.22
- # - 10.141.4.23
- # - 10.141.4.24
- ## Etcd service. If using kubeEtcd.endpoints only the port and targetPort are used
- ##
- service:
- enabled: true
- port: 2381
- targetPort: 2381
- # selector:
- # component: etcd
- ## Configure secure access to the etcd cluster by loading a secret into prometheus and
- ## specifying security configuration below. For example, with a secret named etcd-client-cert
- ##
- ## serviceMonitor:
- ## scheme: https
- ## insecureSkipVerify: false
- ## serverName: localhost
- ## caFile: /etc/prometheus/secrets/etcd-client-cert/etcd-ca
- ## certFile: /etc/prometheus/secrets/etcd-client-cert/etcd-client
- ## keyFile: /etc/prometheus/secrets/etcd-client-cert/etcd-client-key
- ##
- serviceMonitor:
- enabled: true
- ## Scrape interval. If not set, the Prometheus default scrape interval is used.
- ##
- interval: ""
- ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
- ##
- sampleLimit: 0
- ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
- ##
- targetLimit: 0
- ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
- ##
- labelLimit: 0
- ## 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.
- ##
- labelNameLengthLimit: 0
- ## 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.
- ##
- labelValueLengthLimit: 0
- ## proxyUrl: URL of a proxy that should be used for scraping.
- ##
- proxyUrl: ""
- scheme: http
- insecureSkipVerify: false
- serverName: ""
- caFile: ""
- certFile: ""
- keyFile: ""
- ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
- ##
- metricRelabelings: []
- # - action: keep
- # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
- # sourceLabels: [__name__]
- ## RelabelConfigs to apply to samples before scraping
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
- ##
- relabelings: []
- # - sourceLabels: [__meta_kubernetes_pod_node_name]
- # separator: ;
- # regex: ^(.*)$
- # targetLabel: nodename
- # replacement: $1
- # action: replace
- ## Additional labels
- ##
- additionalLabels: {}
- # foo: bar
- ## Component scraping kube scheduler
- ##
- kubeScheduler:
- enabled: true
- ## If your kube scheduler is not deployed as a pod, specify IPs it can be found on
- ##
- endpoints: []
- # - 10.141.4.22
- # - 10.141.4.23
- # - 10.141.4.24
- ## If using kubeScheduler.endpoints only the port and targetPort are used
- ##
- service:
- enabled: true
- ## If null or unset, the value is determined dynamically based on target Kubernetes version due to change
- ## of default port in Kubernetes 1.23.
- ##
- port: null
- targetPort: null
- # selector:
- # component: kube-scheduler
- serviceMonitor:
- enabled: true
- ## Scrape interval. If not set, the Prometheus default scrape interval is used.
- ##
- interval: ""
- ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
- ##
- sampleLimit: 0
- ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
- ##
- targetLimit: 0
- ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
- ##
- labelLimit: 0
- ## 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.
- ##
- labelNameLengthLimit: 0
- ## 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.
- ##
- labelValueLengthLimit: 0
- ## proxyUrl: URL of a proxy that should be used for scraping.
- ##
- proxyUrl: ""
- ## Enable scraping kube-scheduler over https.
- ## Requires proper certs (not self-signed) and delegated authentication/authorization checks.
- ## If null or unset, the value is determined dynamically based on target Kubernetes version.
- ##
- https: null
- ## Skip TLS certificate validation when scraping
- insecureSkipVerify: null
- ## Name of the server to use when validating TLS certificate
- serverName: null
- ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
- ##
- metricRelabelings: []
- # - action: keep
- # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
- # sourceLabels: [__name__]
- ## RelabelConfigs to apply to samples before scraping
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
- ##
- relabelings: []
- # - sourceLabels: [__meta_kubernetes_pod_node_name]
- # separator: ;
- # regex: ^(.*)$
- # targetLabel: nodename
- # replacement: $1
- # action: replace
- ## Additional labels
- ##
- additionalLabels: {}
- # foo: bar
- ## Component scraping kube proxy
- ##
- kubeProxy:
- enabled: true
- ## If your kube proxy is not deployed as a pod, specify IPs it can be found on
- ##
- endpoints: []
- # - 10.141.4.22
- # - 10.141.4.23
- # - 10.141.4.24
- service:
- enabled: true
- port: 10249
- targetPort: 10249
- # selector:
- # k8s-app: kube-proxy
- serviceMonitor:
- enabled: true
- ## Scrape interval. If not set, the Prometheus default scrape interval is used.
- ##
- interval: ""
- ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
- ##
- sampleLimit: 0
- ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
- ##
- targetLimit: 0
- ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
- ##
- labelLimit: 0
- ## 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.
- ##
- labelNameLengthLimit: 0
- ## 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.
- ##
- labelValueLengthLimit: 0
- ## proxyUrl: URL of a proxy that should be used for scraping.
- ##
- proxyUrl: ""
- ## Enable scraping kube-proxy over https.
- ## Requires proper certs (not self-signed) and delegated authentication/authorization checks
- ##
- https: false
- ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
- ##
- metricRelabelings: []
- # - action: keep
- # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
- # sourceLabels: [__name__]
- ## RelabelConfigs to apply to samples before scraping
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
- ##
- relabelings: []
- # - action: keep
- # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
- # sourceLabels: [__name__]
- ## Additional labels
- ##
- additionalLabels: {}
- # foo: bar
- ## Component scraping kube state metrics
- ##
- kubeStateMetrics:
- enabled: true
- ## Configuration for kube-state-metrics subchart
- ##
- kube-state-metrics:
- namespaceOverride: ""
- rbac:
- create: true
- releaseLabel: true
- prometheus:
- monitor:
- enabled: true
- ## Scrape interval. If not set, the Prometheus default scrape interval is used.
- ##
- interval: ""
- ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
- ##
- sampleLimit: 0
- ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
- ##
- targetLimit: 0
- ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
- ##
- labelLimit: 0
- ## 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.
- ##
- labelNameLengthLimit: 0
- ## 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.
- ##
- labelValueLengthLimit: 0
- ## Scrape Timeout. If not set, the Prometheus default scrape timeout is used.
- ##
- scrapeTimeout: ""
- ## proxyUrl: URL of a proxy that should be used for scraping.
- ##
- proxyUrl: ""
- # Keep labels from scraped data, overriding server-side labels
- ##
- honorLabels: true
- ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
- ##
- metricRelabelings: []
- # - action: keep
- # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
- # sourceLabels: [__name__]
- ## RelabelConfigs to apply to samples before scraping
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
- ##
- relabelings: []
- # - sourceLabels: [__meta_kubernetes_pod_node_name]
- # separator: ;
- # regex: ^(.*)$
- # targetLabel: nodename
- # replacement: $1
- # action: replace
- selfMonitor:
- enabled: false
- ## Deploy node exporter as a daemonset to all nodes
- ##
- nodeExporter:
- enabled: true
- ## Configuration for prometheus-node-exporter subchart
- ##
- prometheus-node-exporter:
- namespaceOverride: ""
- podLabels:
- ## Add the 'node-exporter' label to be used by serviceMonitor to match standard common usage in rules and grafana dashboards
- ##
- jobLabel: node-exporter
- releaseLabel: true
- extraArgs:
- - --collector.filesystem.mount-points-exclude=^/(dev|proc|sys|var/lib/docker/.+|var/lib/kubelet/.+)($|/)
- - --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)$
- service:
- portName: http-metrics
- prometheus:
- monitor:
- enabled: true
- jobLabel: jobLabel
- ## Scrape interval. If not set, the Prometheus default scrape interval is used.
- ##
- interval: ""
- ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
- ##
- sampleLimit: 0
- ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
- ##
- targetLimit: 0
- ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
- ##
- labelLimit: 0
- ## 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.
- ##
- labelNameLengthLimit: 0
- ## 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.
- ##
- labelValueLengthLimit: 0
- ## How long until a scrape request times out. If not set, the Prometheus default scape timeout is used.
- ##
- scrapeTimeout: ""
- ## proxyUrl: URL of a proxy that should be used for scraping.
- ##
- proxyUrl: ""
- ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
- ##
- metricRelabelings: []
- # - sourceLabels: [__name__]
- # separator: ;
- # regex: ^node_mountstats_nfs_(event|operations|transport)_.+
- # replacement: $1
- # action: drop
- ## RelabelConfigs to apply to samples before scraping
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
- ##
- relabelings: []
- # - sourceLabels: [__meta_kubernetes_pod_node_name]
- # separator: ;
- # regex: ^(.*)$
- # targetLabel: nodename
- # replacement: $1
- # action: replace
- rbac:
- ## If true, create PSPs for node-exporter
- ##
- pspEnabled: false
- ## Manages Prometheus and Alertmanager components
- ##
- prometheusOperator:
- enabled: true
- ## Prometheus-Operator v0.39.0 and later support TLS natively.
- ##
- tls:
- enabled: true
- # Value must match version names from https://golang.org/pkg/crypto/tls/#pkg-constants
- tlsMinVersion: VersionTLS13
- # The default webhook port is 10250 in order to work out-of-the-box in GKE private clusters and avoid adding firewall rules.
- internalPort: 10250
- ## Admission webhook support for PrometheusRules resources added in Prometheus Operator 0.30 can be enabled to prevent incorrectly formatted
- ## rules from making their way into prometheus and potentially preventing the container from starting
- admissionWebhooks:
- ## Valid values: Fail, Ignore, IgnoreOnInstallOnly
- ## IgnoreOnInstallOnly - If Release.IsInstall returns "true", set "Ignore" otherwise "Fail"
- failurePolicy:
- ## The default timeoutSeconds is 10 and the maximum value is 30.
- timeoutSeconds: 10
- enabled: true
- ## A PEM encoded CA bundle which will be used to validate the webhook's server certificate.
- ## If unspecified, system trust roots on the apiserver are used.
- caBundle: ""
- ## If enabled, generate a self-signed certificate, then patch the webhook configurations with the generated data.
- ## On chart upgrades (or if the secret exists) the cert will not be re-generated. You can use this to provide your own
- ## certs ahead of time if you wish.
- ##
- annotations: {}
- # argocd.argoproj.io/hook: PreSync
- # argocd.argoproj.io/hook-delete-policy: HookSucceeded
- patch:
- enabled: true
- image:
- registry: registry.k8s.io
- repository: ingress-nginx/kube-webhook-certgen
- tag: v20221220-controller-v1.5.1-58-g787ea74b6
- sha: ""
- pullPolicy: IfNotPresent
- resources: {}
- ## Provide a priority class name to the webhook patching job
- ##
- priorityClassName: ""
- annotations: {}
- # argocd.argoproj.io/hook: PreSync
- # argocd.argoproj.io/hook-delete-policy: HookSucceeded
- podAnnotations: {}
- nodeSelector: {}
- affinity: {}
- tolerations: []
- ## SecurityContext holds pod-level security attributes and common container settings.
- ## This defaults to non root user with uid 2000 and gid 2000. *v1.PodSecurityContext false
- ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
- ##
- securityContext:
- runAsGroup: 2000
- runAsNonRoot: true
- runAsUser: 2000
- # Security context for create job container
- createSecretJob:
- securityContext: {}
- # Security context for patch job container
- patchWebhookJob:
- securityContext: {}
- # Use certmanager to generate webhook certs
- certManager:
- enabled: false
- # self-signed root certificate
- rootCert:
- duration: "" # default to be 5y
- admissionCert:
- duration: "" # default to be 1y
- # issuerRef:
- # name: "issuer"
- # kind: "ClusterIssuer"
- ## Namespaces to scope the interaction of the Prometheus Operator and the apiserver (allow list).
- ## This is mutually exclusive with denyNamespaces. Setting this to an empty object will disable the configuration
- ##
- namespaces: {}
- # releaseNamespace: true
- # additional:
- # - kube-system
- ## Namespaces not to scope the interaction of the Prometheus Operator (deny list).
- ##
- denyNamespaces: []
- ## Filter namespaces to look for prometheus-operator custom resources
- ##
- alertmanagerInstanceNamespaces: []
- alertmanagerConfigNamespaces: []
- prometheusInstanceNamespaces: []
- thanosRulerInstanceNamespaces: []
- ## The clusterDomain value will be added to the cluster.peer option of the alertmanager.
- ## Without this specified option cluster.peer will have value alertmanager-monitoring-alertmanager-0.alertmanager-operated:9094 (default value)
- ## With this specified option cluster.peer will have value alertmanager-monitoring-alertmanager-0.alertmanager-operated.namespace.svc.cluster-domain:9094
- ##
- # clusterDomain: "cluster.local"
- networkPolicy:
- ## Enable creation of NetworkPolicy resources.
- ##
- enabled: false
- ## Flavor of the network policy to use.
- # Can be:
- # * kubernetes for networking.k8s.io/v1/NetworkPolicy
- # * cilium for cilium.io/v2/CiliumNetworkPolicy
- flavor: kubernetes
- # cilium:
- # egress:
- ## Service account for Alertmanager to use.
- ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
- ##
- serviceAccount:
- create: true
- name: ""
- ## Configuration for Prometheus operator service
- ##
- service:
- annotations: {}
- labels: {}
- clusterIP: ""
- ## Port to expose on each node
- ## Only used if service.type is 'NodePort'
- ##
- nodePort: 30080
- nodePortTls: 30443
- ## Additional ports to open for Prometheus service
- ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#multi-port-services
- ##
- additionalPorts: []
- ## Loadbalancer IP
- ## Only use if service.type is "LoadBalancer"
- ##
- loadBalancerIP: ""
- loadBalancerSourceRanges: []
- ## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
- ##
- externalTrafficPolicy: Cluster
- ## Service type
- ## NodePort, ClusterIP, LoadBalancer
- ##
- type: ClusterIP
- ## List of IP addresses at which the Prometheus server service is available
- ## Ref: https://kubernetes.io/docs/user-guide/services/#external-ips
- ##
- externalIPs: []
- # ## Labels to add to the operator deployment
- # ##
- labels: {}
- ## Annotations to add to the operator deployment
- ##
- annotations: {}
- ## Labels to add to the operator pod
- ##
- podLabels: {}
- ## Annotations to add to the operator pod
- ##
- podAnnotations: {}
- ## Assign a PriorityClassName to pods if set
- # priorityClassName: ""
- ## Define Log Format
- # Use logfmt (default) or json logging
- # logFormat: logfmt
- ## Decrease log verbosity to errors only
- # logLevel: error
- ## If true, the operator will create and maintain a service for scraping kubelets
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/helm/prometheus-operator/README.md
- ##
- kubeletService:
- enabled: true
- namespace: kube-system
- ## Use '{{ template "kube-prometheus-stack.fullname" . }}-kubelet' by default
- name: ""
- ## Create a servicemonitor for the operator
- ##
- serviceMonitor:
- ## Labels for ServiceMonitor
- additionalLabels: {}
- ## Scrape interval. If not set, the Prometheus default scrape interval is used.
- ##
- interval: ""
- ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
- ##
- sampleLimit: 0
- ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
- ##
- targetLimit: 0
- ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
- ##
- labelLimit: 0
- ## 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.
- ##
- labelNameLengthLimit: 0
- ## 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.
- ##
- labelValueLengthLimit: 0
- ## Scrape timeout. If not set, the Prometheus default scrape timeout is used.
- scrapeTimeout: ""
- selfMonitor: true
- ## Metric relabel configs to apply to samples before ingestion.
- ##
- metricRelabelings: []
- # - action: keep
- # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
- # sourceLabels: [__name__]
- # relabel configs to apply to samples before ingestion.
- ##
- relabelings: []
- # - sourceLabels: [__meta_kubernetes_pod_node_name]
- # separator: ;
- # regex: ^(.*)$
- # targetLabel: nodename
- # replacement: $1
- # action: replace
- ## Resource limits & requests
- ##
- resources: {}
- # limits:
- # cpu: 200m
- # memory: 200Mi
- # requests:
- # cpu: 100m
- # memory: 100Mi
- # Required for use in managed kubernetes clusters (such as AWS EKS) with custom CNI (such as calico),
- # because control-plane managed by AWS cannot communicate with pods' IP CIDR and admission webhooks are not working
- ##
- hostNetwork: false
- ## Define which Nodes the Pods are scheduled on.
- ## ref: https://kubernetes.io/docs/user-guide/node-selection/
- ##
- nodeSelector: {}
- ## Tolerations for use with node taints
- ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
- ##
- tolerations: []
- # - key: "key"
- # operator: "Equal"
- # value: "value"
- # effect: "NoSchedule"
- ## Assign custom affinity rules to the prometheus operator
- ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
- ##
- affinity: {}
- # nodeAffinity:
- # requiredDuringSchedulingIgnoredDuringExecution:
- # nodeSelectorTerms:
- # - matchExpressions:
- # - key: kubernetes.io/e2e-az-name
- # operator: In
- # values:
- # - e2e-az1
- # - e2e-az2
- dnsConfig: {}
- # nameservers:
- # - 1.2.3.4
- # searches:
- # - ns1.svc.cluster-domain.example
- # - my.dns.search.suffix
- # options:
- # - name: ndots
- # value: "2"
- # - name: edns0
- securityContext:
- fsGroup: 65534
- runAsGroup: 65534
- runAsNonRoot: true
- runAsUser: 65534
- ## Container-specific security context configuration
- ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
- ##
- containerSecurityContext:
- allowPrivilegeEscalation: false
- readOnlyRootFilesystem: true
- # Enable vertical pod autoscaler support for prometheus-operator
- verticalPodAutoscaler:
- enabled: false
- # List of resources that the vertical pod autoscaler can control. Defaults to cpu and memory
- controlledResources: []
- # Define the max allowed resources for the pod
- maxAllowed: {}
- # cpu: 200m
- # memory: 100Mi
- # Define the min allowed resources for the pod
- minAllowed: {}
- # cpu: 200m
- # memory: 100Mi
- updatePolicy:
- # Specifies whether recommended updates are applied when a Pod is started and whether recommended updates
- # are applied during the life of a Pod. Possible values are "Off", "Initial", "Recreate", and "Auto".
- updateMode: Auto
- ## Prometheus-operator image
- ##
- image:
- registry: quay.io
- repository: prometheus-operator/prometheus-operator
- # if not set appVersion field from Chart.yaml is used
- tag: ""
- sha: ""
- pullPolicy: IfNotPresent
- ## Prometheus image to use for prometheuses managed by the operator
- ##
- # prometheusDefaultBaseImage: prometheus/prometheus
- ## Prometheus image registry to use for prometheuses managed by the operator
- ##
- # prometheusDefaultBaseImageRegistry: quay.io
- ## Alertmanager image to use for alertmanagers managed by the operator
- ##
- # alertmanagerDefaultBaseImage: prometheus/alertmanager
- ## Alertmanager image registry to use for alertmanagers managed by the operator
- ##
- # alertmanagerDefaultBaseImageRegistry: quay.io
- ## Prometheus-config-reloader
- ##
- prometheusConfigReloader:
- image:
- registry: quay.io
- repository: prometheus-operator/prometheus-config-reloader
- # if not set appVersion field from Chart.yaml is used
- tag: ""
- sha: ""
- # add prometheus config reloader liveness and readiness probe. Default: false
- enableProbe: false
- # resource config for prometheusConfigReloader
- resources:
- requests:
- cpu: 200m
- memory: 50Mi
- limits:
- cpu: 200m
- memory: 50Mi
- ## Thanos side-car image when configured
- ##
- thanosImage:
- registry: quay.io
- repository: thanos/thanos
- tag: v0.30.2
- sha: ""
- ## Set a Label Selector to filter watched prometheus and prometheusAgent
- ##
- prometheusInstanceSelector: ""
- ## Set a Label Selector to filter watched alertmanager
- ##
- alertmanagerInstanceSelector: ""
- ## Set a Label Selector to filter watched thanosRuler
- thanosRulerInstanceSelector: ""
- ## Set a Field Selector to filter watched secrets
- ##
- secretFieldSelector: ""
- ## Deploy a Prometheus instance
- ##
- prometheus:
- enabled: true
- ## Annotations for Prometheus
- ##
- annotations: {}
- ## Configure network policy for the prometheus
- networkPolicy:
- enabled: false
- ## Flavor of the network policy to use.
- # Can be:
- # * kubernetes for networking.k8s.io/v1/NetworkPolicy
- # * cilium for cilium.io/v2/CiliumNetworkPolicy
- flavor: kubernetes
- # cilium:
- # endpointSelector:
- # egress:
- # ingress:
- # egress:
- # - {}
- # ingress:
- # - {}
- # podSelector:
- # matchLabels:
- # app: prometheus
- ## Service account for Prometheuses to use.
- ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
- ##
- serviceAccount:
- create: true
- name: ""
- annotations: {}
- # Service for thanos service discovery on sidecar
- # Enable this can make Thanos Query can use
- # `--store=dnssrv+_grpc._tcp.${kube-prometheus-stack.fullname}-thanos-discovery.${namespace}.svc.cluster.local` to discovery
- # Thanos sidecar on prometheus nodes
- # (Please remember to change ${kube-prometheus-stack.fullname} and ${namespace}. Not just copy and paste!)
- thanosService:
- enabled: false
- annotations: {}
- labels: {}
- ## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
- ##
- externalTrafficPolicy: Cluster
- ## Service type
- ##
- type: ClusterIP
- ## gRPC port config
- portName: grpc
- port: 10901
- targetPort: "grpc"
- ## HTTP port config (for metrics)
- httpPortName: http
- httpPort: 10902
- targetHttpPort: "http"
- ## ClusterIP to assign
- # Default is to make this a headless service ("None")
- clusterIP: "None"
- ## Port to expose on each node, if service type is NodePort
- ##
- nodePort: 30901
- httpNodePort: 30902
- # ServiceMonitor to scrape Sidecar metrics
- # Needs thanosService to be enabled as well
- thanosServiceMonitor:
- enabled: false
- interval: ""
- ## Additional labels
- ##
- additionalLabels: {}
- ## scheme: HTTP scheme to use for scraping. Can be used with `tlsConfig` for example if using istio mTLS.
- scheme: ""
- ## tlsConfig: TLS configuration to use when scraping the endpoint. For example if using istio mTLS.
- ## Of type: https://github.com/coreos/prometheus-operator/blob/main/Documentation/api.md#tlsconfig
- tlsConfig: {}
- bearerTokenFile:
- ## Metric relabel configs to apply to samples before ingestion.
- metricRelabelings: []
- ## relabel configs to apply to samples before ingestion.
- relabelings: []
- # Service for external access to sidecar
- # Enabling this creates a service to expose thanos-sidecar outside the cluster.
- thanosServiceExternal:
- enabled: false
- annotations: {}
- labels: {}
- loadBalancerIP: ""
- loadBalancerSourceRanges: []
- ## gRPC port config
- portName: grpc
- port: 10901
- targetPort: "grpc"
- ## HTTP port config (for metrics)
- httpPortName: http
- httpPort: 10902
- targetHttpPort: "http"
- ## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
- ##
- externalTrafficPolicy: Cluster
- ## Service type
- ##
- type: LoadBalancer
- ## Port to expose on each node
- ##
- nodePort: 30901
- httpNodePort: 30902
- ## Configuration for Prometheus service
- ##
- service:
- annotations: {}
- labels: {}
- clusterIP: ""
- ## Port for Prometheus Service to listen on
- ##
- port: 9090
- ## To be used with a proxy extraContainer port
- targetPort: 9090
- ## List of IP addresses at which the Prometheus server service is available
- ## Ref: https://kubernetes.io/docs/user-guide/services/#external-ips
- ##
- externalIPs: []
- ## Port to expose on each node
- ## Only used if service.type is 'NodePort'
- ##
- nodePort: 30090
- ## Loadbalancer IP
- ## Only use if service.type is "LoadBalancer"
- loadBalancerIP: ""
- loadBalancerSourceRanges: []
- ## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
- ##
- externalTrafficPolicy: Cluster
- ## Service type
- ##
- type: ClusterIP
- ## Additional port to define in the Service
- additionalPorts: []
- # additionalPorts:
- # - name: authenticated
- # port: 8081
- # targetPort: 8081
- ## Consider that all endpoints are considered "ready" even if the Pods themselves are not
- ## Ref: https://kubernetes.io/docs/reference/kubernetes-api/service-resources/service-v1/#ServiceSpec
- publishNotReadyAddresses: false
- sessionAffinity: ""
- ## Configuration for creating a separate Service for each statefulset Prometheus replica
- ##
- servicePerReplica:
- enabled: false
- annotations: {}
- ## Port for Prometheus Service per replica to listen on
- ##
- port: 9090
- ## To be used with a proxy extraContainer port
- targetPort: 9090
- ## Port to expose on each node
- ## Only used if servicePerReplica.type is 'NodePort'
- ##
- nodePort: 30091
- ## Loadbalancer source IP ranges
- ## Only used if servicePerReplica.type is "LoadBalancer"
- loadBalancerSourceRanges: []
- ## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
- ##
- externalTrafficPolicy: Cluster
- ## Service type
- ##
- type: ClusterIP
- ## Configure pod disruption budgets for Prometheus
- ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/#specifying-a-poddisruptionbudget
- ## This configuration is immutable once created and will require the PDB to be deleted to be changed
- ## https://github.com/kubernetes/kubernetes/issues/45398
- ##
- podDisruptionBudget:
- enabled: false
- minAvailable: 1
- maxUnavailable: ""
- # Ingress exposes thanos sidecar outside the cluster
- thanosIngress:
- enabled: false
- # For Kubernetes >= 1.18 you should specify the ingress-controller via the field ingressClassName
- # See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#specifying-the-class-of-an-ingress
- # ingressClassName: nginx
- annotations: {}
- labels: {}
- servicePort: 10901
- ## Port to expose on each node
- ## Only used if service.type is 'NodePort'
- ##
- nodePort: 30901
- ## Hosts must be provided if Ingress is enabled.
- ##
- hosts: []
- # - thanos-gateway.domain.com
- ## Paths to use for ingress rules
- ##
- paths: []
- # - /
- ## For Kubernetes >= 1.18 you should specify the pathType (determines how Ingress paths should be matched)
- ## See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#better-path-matching-with-path-types
- # pathType: ImplementationSpecific
- ## TLS configuration for Thanos Ingress
- ## Secret must be manually created in the namespace
- ##
- tls: []
- # - secretName: thanos-gateway-tls
- # hosts:
- # - thanos-gateway.domain.com
- #
- ## ExtraSecret can be used to store various data in an extra secret
- ## (use it for example to store hashed basic auth credentials)
- extraSecret:
- ## if not set, name will be auto generated
- # name: ""
- annotations: {}
- data: {}
- # auth: |
- # foo:$apr1$OFG3Xybp$ckL0FHDAkoXYIlH9.cysT0
- # someoneelse:$apr1$DMZX2Z4q$6SbQIfyuLQd.xmo/P0m2c.
- ingress:
- enabled: false
- # For Kubernetes >= 1.18 you should specify the ingress-controller via the field ingressClassName
- # See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#specifying-the-class-of-an-ingress
- # ingressClassName: nginx
- annotations: {}
- labels: {}
- ## Redirect ingress to an additional defined port on the service
- # servicePort: 8081
- ## Hostnames.
- ## Must be provided if Ingress is enabled.
- ##
- # hosts:
- # - prometheus.domain.com
- hosts: []
- ## Paths to use for ingress rules - one path should match the prometheusSpec.routePrefix
- ##
- paths: []
- # - /
- ## For Kubernetes >= 1.18 you should specify the pathType (determines how Ingress paths should be matched)
- ## See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#better-path-matching-with-path-types
- # pathType: ImplementationSpecific
- ## TLS configuration for Prometheus Ingress
- ## Secret must be manually created in the namespace
- ##
- tls: []
- # - secretName: prometheus-general-tls
- # hosts:
- # - prometheus.example.com
- ## Configuration for creating an Ingress that will map to each Prometheus replica service
- ## prometheus.servicePerReplica must be enabled
- ##
- ingressPerReplica:
- enabled: false
- # For Kubernetes >= 1.18 you should specify the ingress-controller via the field ingressClassName
- # See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#specifying-the-class-of-an-ingress
- # ingressClassName: nginx
- annotations: {}
- labels: {}
- ## Final form of the hostname for each per replica ingress is
- ## {{ ingressPerReplica.hostPrefix }}-{{ $replicaNumber }}.{{ ingressPerReplica.hostDomain }}
- ##
- ## Prefix for the per replica ingress that will have `-$replicaNumber`
- ## appended to the end
- hostPrefix: ""
- ## Domain that will be used for the per replica ingress
- hostDomain: ""
- ## Paths to use for ingress rules
- ##
- paths: []
- # - /
- ## For Kubernetes >= 1.18 you should specify the pathType (determines how Ingress paths should be matched)
- ## See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#better-path-matching-with-path-types
- # pathType: ImplementationSpecific
- ## Secret name containing the TLS certificate for Prometheus per replica ingress
- ## Secret must be manually created in the namespace
- tlsSecretName: ""
- ## Separated secret for each per replica Ingress. Can be used together with cert-manager
- ##
- tlsSecretPerReplica:
- enabled: false
- ## Final form of the secret for each per replica ingress is
- ## {{ tlsSecretPerReplica.prefix }}-{{ $replicaNumber }}
- ##
- prefix: "prometheus"
- ## Configure additional options for default pod security policy for Prometheus
- ## ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/
- podSecurityPolicy:
- allowedCapabilities: []
- allowedHostPaths: []
- volumes: []
- serviceMonitor:
- ## Scrape interval. If not set, the Prometheus default scrape interval is used.
- ##
- interval: ""
- selfMonitor: true
- ## Additional labels
- ##
- additionalLabels: {}
- ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
- ##
- sampleLimit: 0
- ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
- ##
- targetLimit: 0
- ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
- ##
- labelLimit: 0
- ## 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.
- ##
- labelNameLengthLimit: 0
- ## 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.
- ##
- labelValueLengthLimit: 0
- ## scheme: HTTP scheme to use for scraping. Can be used with `tlsConfig` for example if using istio mTLS.
- scheme: ""
- ## tlsConfig: TLS configuration to use when scraping the endpoint. For example if using istio mTLS.
- ## Of type: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#tlsconfig
- tlsConfig: {}
- bearerTokenFile:
- ## Metric relabel configs to apply to samples before ingestion.
- ##
- metricRelabelings: []
- # - action: keep
- # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
- # sourceLabels: [__name__]
- # relabel configs to apply to samples before ingestion.
- ##
- relabelings: []
- # - sourceLabels: [__meta_kubernetes_pod_node_name]
- # separator: ;
- # regex: ^(.*)$
- # targetLabel: nodename
- # replacement: $1
- # action: replace
- ## Settings affecting prometheusSpec
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#prometheusspec
- ##
- prometheusSpec:
- ## If true, pass --storage.tsdb.max-block-duration=2h to prometheus. This is already done if using Thanos
- ##
- disableCompaction: false
- ## APIServerConfig
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#apiserverconfig
- ##
- apiserverConfig: {}
- ## Allows setting additional arguments for the Prometheus container
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#monitoring.coreos.com/v1.Prometheus
- additionalArgs: []
- ## Interval between consecutive scrapes.
- ## Defaults to 30s.
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/release-0.44/pkg/prometheus/promcfg.go#L180-L183
- ##
- scrapeInterval: ""
- ## Number of seconds to wait for target to respond before erroring
- ##
- scrapeTimeout: ""
- ## Interval between consecutive evaluations.
- ##
- evaluationInterval: ""
- ## ListenLocal makes the Prometheus server listen on loopback, so that it does not bind against the Pod IP.
- ##
- listenLocal: false
- ## EnableAdminAPI enables Prometheus the administrative HTTP API which includes functionality such as deleting time series.
- ## This is disabled by default.
- ## ref: https://prometheus.io/docs/prometheus/latest/querying/api/#tsdb-admin-apis
- ##
- enableAdminAPI: false
- ## Sets version of Prometheus overriding the Prometheus version as derived
- ## from the image tag. Useful in cases where the tag does not follow semver v2.
- version: ""
- ## WebTLSConfig defines the TLS parameters for HTTPS
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#webtlsconfig
- web: {}
- ## Exemplars related settings that are runtime reloadable.
- ## It requires to enable the exemplar storage feature to be effective.
- exemplars: ""
- ## Maximum number of exemplars stored in memory for all series.
- ## If not set, Prometheus uses its default value.
- ## A value of zero or less than zero disables the storage.
- # maxSize: 100000
- # EnableFeatures API enables access to Prometheus disabled features.
- # ref: https://prometheus.io/docs/prometheus/latest/disabled_features/
- enableFeatures: []
- # - exemplar-storage
- ## Image of Prometheus.
- ##
- image:
- registry: quay.io
- repository: prometheus/prometheus
- tag: v2.42.0
- sha: ""
- ## Tolerations for use with node taints
- ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
- ##
- tolerations: []
- # - key: "key"
- # operator: "Equal"
- # value: "value"
- # effect: "NoSchedule"
- ## If specified, the pod's topology spread constraints.
- ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
- ##
- topologySpreadConstraints: []
- # - maxSkew: 1
- # topologyKey: topology.kubernetes.io/zone
- # whenUnsatisfiable: DoNotSchedule
- # labelSelector:
- # matchLabels:
- # app: prometheus
- ## Alertmanagers to which alerts will be sent
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#alertmanagerendpoints
- ##
- ## Default configuration will connect to the alertmanager deployed as part of this release
- ##
- alertingEndpoints: []
- # - name: ""
- # namespace: ""
- # port: http
- # scheme: http
- # pathPrefix: ""
- # tlsConfig: {}
- # bearerTokenFile: ""
- # apiVersion: v2
- ## External labels to add to any time series or alerts when communicating with external systems
- ##
- externalLabels: {}
- ## enable --web.enable-remote-write-receiver flag on prometheus-server
- ##
- enableRemoteWriteReceiver: false
- ## Name of the external label used to denote replica name
- ##
- replicaExternalLabelName: ""
- ## If true, the Operator won't add the external label used to denote replica name
- ##
- replicaExternalLabelNameClear: false
- ## Name of the external label used to denote Prometheus instance name
- ##
- prometheusExternalLabelName: ""
- ## If true, the Operator won't add the external label used to denote Prometheus instance name
- ##
- prometheusExternalLabelNameClear: false
- ## External URL at which Prometheus will be reachable.
- ##
- externalUrl: ""
- ## Define which Nodes the Pods are scheduled on.
- ## ref: https://kubernetes.io/docs/user-guide/node-selection/
- ##
- nodeSelector: {}
- ## Secrets is a list of Secrets in the same namespace as the Prometheus object, which shall be mounted into the Prometheus Pods.
- ## The Secrets are mounted into /etc/prometheus/secrets/. Secrets changes after initial creation of a Prometheus object are not
- ## reflected in the running Pods. To change the secrets mounted into the Prometheus Pods, the object must be deleted and recreated
- ## with the new list of secrets.
- ##
- secrets: []
- ## ConfigMaps is a list of ConfigMaps in the same namespace as the Prometheus object, which shall be mounted into the Prometheus Pods.
- ## The ConfigMaps are mounted into /etc/prometheus/configmaps/.
- ##
- configMaps: []
- ## QuerySpec defines the query command line flags when starting Prometheus.
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#queryspec
- ##
- query: {}
- ## If nil, select own namespace. Namespaces to be selected for PrometheusRules discovery.
- ruleNamespaceSelector: {}
- ## Example which selects PrometheusRules in namespaces with label "prometheus" set to "somelabel"
- # ruleNamespaceSelector:
- # matchLabels:
- # prometheus: somelabel
- ## If true, a nil or {} value for prometheus.prometheusSpec.ruleSelector will cause the
- ## prometheus resource to be created with selectors based on values in the helm deployment,
- ## which will also match the PrometheusRule resources created
- ##
- ruleSelectorNilUsesHelmValues: true
- ## PrometheusRules to be selected for target discovery.
- ## If {}, select all PrometheusRules
- ##
- ruleSelector: {}
- ## Example which select all PrometheusRules resources
- ## with label "prometheus" with values any of "example-rules" or "example-rules-2"
- # ruleSelector:
- # matchExpressions:
- # - key: prometheus
- # operator: In
- # values:
- # - example-rules
- # - example-rules-2
- #
- ## Example which select all PrometheusRules resources with label "role" set to "example-rules"
- # ruleSelector:
- # matchLabels:
- # role: example-rules
- ## If true, a nil or {} value for prometheus.prometheusSpec.serviceMonitorSelector will cause the
- ## prometheus resource to be created with selectors based on values in the helm deployment,
- ## which will also match the servicemonitors created
- ##
- serviceMonitorSelectorNilUsesHelmValues: true
- ## ServiceMonitors to be selected for target discovery.
- ## If {}, select all ServiceMonitors
- ##
- serviceMonitorSelector: {}
- ## Example which selects ServiceMonitors with label "prometheus" set to "somelabel"
- # serviceMonitorSelector:
- # matchLabels:
- # prometheus: somelabel
- ## Namespaces to be selected for ServiceMonitor discovery.
- ##
- serviceMonitorNamespaceSelector: {}
- ## Example which selects ServiceMonitors in namespaces with label "prometheus" set to "somelabel"
- # serviceMonitorNamespaceSelector:
- # matchLabels:
- # prometheus: somelabel
- ## If true, a nil or {} value for prometheus.prometheusSpec.podMonitorSelector will cause the
- ## prometheus resource to be created with selectors based on values in the helm deployment,
- ## which will also match the podmonitors created
- ##
- podMonitorSelectorNilUsesHelmValues: true
- ## PodMonitors to be selected for target discovery.
- ## If {}, select all PodMonitors
- ##
- podMonitorSelector: {}
- ## Example which selects PodMonitors with label "prometheus" set to "somelabel"
- # podMonitorSelector:
- # matchLabels:
- # prometheus: somelabel
- ## If nil, select own namespace. Namespaces to be selected for PodMonitor discovery.
- podMonitorNamespaceSelector: {}
- ## Example which selects PodMonitor in namespaces with label "prometheus" set to "somelabel"
- # podMonitorNamespaceSelector:
- # matchLabels:
- # prometheus: somelabel
- ## If true, a nil or {} value for prometheus.prometheusSpec.probeSelector will cause the
- ## prometheus resource to be created with selectors based on values in the helm deployment,
- ## which will also match the probes created
- ##
- probeSelectorNilUsesHelmValues: true
- ## Probes to be selected for target discovery.
- ## If {}, select all Probes
- ##
- probeSelector: {}
- ## Example which selects Probes with label "prometheus" set to "somelabel"
- # probeSelector:
- # matchLabels:
- # prometheus: somelabel
- ## If nil, select own namespace. Namespaces to be selected for Probe discovery.
- probeNamespaceSelector: {}
- ## Example which selects Probe in namespaces with label "prometheus" set to "somelabel"
- # probeNamespaceSelector:
- # matchLabels:
- # prometheus: somelabel
- ## How long to retain metrics
- ##
- retention: 10d
- ## Maximum size of metrics
- ##
- retentionSize: ""
- ## Allow out-of-order/out-of-bounds samples ingested into Prometheus for a specified duration
- ## See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#tsdb
- tsdb:
- outOfOrderTimeWindow: 0s
- ## Enable compression of the write-ahead log using Snappy.
- ##
- walCompression: true
- ## If true, the Operator won't process any Prometheus configuration changes
- ##
- paused: false
- ## Number of replicas of each shard to deploy for a Prometheus deployment.
- ## Number of replicas multiplied by shards is the total number of Pods created.
- ##
- replicas: 1
- ## EXPERIMENTAL: Number of shards to distribute targets onto.
- ## Number of replicas multiplied by shards is the total number of Pods created.
- ## Note that scaling down shards will not reshard data onto remaining instances, it must be manually moved.
- ## Increasing shards will not reshard data either but it will continue to be available from the same instances.
- ## To query globally use Thanos sidecar and Thanos querier or remote write data to a central location.
- ## Sharding is done on the content of the `__address__` target meta-label.
- ##
- shards: 1
- ## Log level for Prometheus be configured in
- ##
- logLevel: info
- ## Log format for Prometheus be configured in
- ##
- logFormat: logfmt
- ## Prefix used to register routes, overriding externalUrl route.
- ## Useful for proxies that rewrite URLs.
- ##
- routePrefix: /
- ## Standard object's metadata. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata
- ## Metadata Labels and Annotations gets propagated to the prometheus pods.
- ##
- podMetadata: {}
- # labels:
- # app: prometheus
- # k8s-app: prometheus
- ## Pod anti-affinity can prevent the scheduler from placing Prometheus replicas on the same node.
- ## 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.
- ## The value "hard" means that the scheduler is *required* to not schedule two replica pods onto the same node.
- ## The value "" will disable pod anti-affinity so that no anti-affinity rules will be configured.
- podAntiAffinity: ""
- ## If anti-affinity is enabled sets the topologyKey to use for anti-affinity.
- ## This can be changed to, for example, failure-domain.beta.kubernetes.io/zone
- ##
- podAntiAffinityTopologyKey: kubernetes.io/hostname
- ## Assign custom affinity rules to the prometheus instance
- ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
- ##
- affinity: {}
- # nodeAffinity:
- # requiredDuringSchedulingIgnoredDuringExecution:
- # nodeSelectorTerms:
- # - matchExpressions:
- # - key: kubernetes.io/e2e-az-name
- # operator: In
- # values:
- # - e2e-az1
- # - e2e-az2
- ## The remote_read spec configuration for Prometheus.
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#remotereadspec
- remoteRead: []
- # - url: http://remote1/read
- ## additionalRemoteRead is appended to remoteRead
- additionalRemoteRead: []
- ## The remote_write spec configuration for Prometheus.
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#remotewritespec
- remoteWrite: []
- # - url: http://remote1/push
- ## additionalRemoteWrite is appended to remoteWrite
- additionalRemoteWrite: []
- ## Enable/Disable Grafana dashboards provisioning for prometheus remote write feature
- remoteWriteDashboards: false
- ## Resource limits & requests
- ##
- resources: {}
- # requests:
- # memory: 400Mi
- ## Prometheus StorageSpec for persistent data
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/user-guides/storage.md
- ##
- storageSpec:
- ## Using PersistentVolumeClaim
- ##
- volumeClaimTemplate:
- spec:
- storageClassName: manual
- accessModes: ["ReadWriteOnce"]
- resources:
- requests:
- storage: 50Gi
- selector: {}
- ## Using tmpfs volume
- ##
- # emptyDir:
- # medium: Memory
- # Additional volumes on the output StatefulSet definition.
- volumes: []
- # Additional VolumeMounts on the output StatefulSet definition.
- volumeMounts: []
- ## AdditionalScrapeConfigs allows specifying additional Prometheus scrape configurations. Scrape configurations
- ## are appended to the configurations generated by the Prometheus Operator. Job configurations must have the form
- ## as specified in the official Prometheus documentation:
- ## https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config. As scrape configs are
- ## appended, the user is responsible to make sure it is valid. Note that using this feature may expose the possibility
- ## to break upgrades of Prometheus. It is advised to review Prometheus release notes to ensure that no incompatible
- ## scrape configs are going to break Prometheus after the upgrade.
- ## AdditionalScrapeConfigs can be defined as a list or as a templated string.
- ##
- ## The scrape configuration example below will find master nodes, provided they have the name .*mst.*, relabel the
- ## port to 2379 and allow etcd scraping provided it is running on all Kubernetes master nodes
- ##
- additionalScrapeConfigs: []
- # - job_name: kube-etcd
- # kubernetes_sd_configs:
- # - role: node
- # scheme: https
- # tls_config:
- # ca_file: /etc/prometheus/secrets/etcd-client-cert/etcd-ca
- # cert_file: /etc/prometheus/secrets/etcd-client-cert/etcd-client
- # key_file: /etc/prometheus/secrets/etcd-client-cert/etcd-client-key
- # relabel_configs:
- # - action: labelmap
- # regex: __meta_kubernetes_node_label_(.+)
- # - source_labels: [__address__]
- # action: replace
- # targetLabel: __address__
- # regex: ([^:;]+):(\d+)
- # replacement: ${1}:2379
- # - source_labels: [__meta_kubernetes_node_name]
- # action: keep
- # regex: .*mst.*
- # - source_labels: [__meta_kubernetes_node_name]
- # action: replace
- # targetLabel: node
- # regex: (.*)
- # replacement: ${1}
- # metric_relabel_configs:
- # - 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)
- # action: labeldrop
- #
- ## If scrape config contains a repetitive section, you may want to use a template.
- ## In the following example, you can see how to define `gce_sd_configs` for multiple zones
- # additionalScrapeConfigs: |
- # - job_name: "node-exporter"
- # gce_sd_configs:
- # {{range $zone := .Values.gcp_zones}}
- # - project: "project1"
- # zone: "{{$zone}}"
- # port: 9100
- # {{end}}
- # relabel_configs:
- # ...
- ## If additional scrape configurations are already deployed in a single secret file you can use this section.
- ## Expected values are the secret name and key
- ## Cannot be used with additionalScrapeConfigs
- additionalScrapeConfigsSecret: {}
- # enabled: false
- # name:
- # key:
- ## additionalPrometheusSecretsAnnotations allows to add annotations to the kubernetes secret. This can be useful
- ## when deploying via spinnaker to disable versioning on the secret, strategy.spinnaker.io/versioned: 'false'
- additionalPrometheusSecretsAnnotations: {}
- ## AdditionalAlertManagerConfigs allows for manual configuration of alertmanager jobs in the form as specified
- ## in the official Prometheus documentation https://prometheus.io/docs/prometheus/latest/configuration/configuration/#<alertmanager_config>.
- ## AlertManager configurations specified are appended to the configurations generated by the Prometheus Operator.
- ## As AlertManager configs are appended, the user is responsible to make sure it is valid. Note that using this
- ## feature may expose the possibility to break upgrades of Prometheus. It is advised to review Prometheus release
- ## notes to ensure that no incompatible AlertManager configs are going to break Prometheus after the upgrade.
- ##
- additionalAlertManagerConfigs: []
- # - consul_sd_configs:
- # - server: consul.dev.test:8500
- # scheme: http
- # datacenter: dev
- # tag_separator: ','
- # services:
- # - metrics-prometheus-alertmanager
- ## If additional alertmanager configurations are already deployed in a single secret, or you want to manage
- ## them separately from the helm deployment, you can use this section.
- ## Expected values are the secret name and key
- ## Cannot be used with additionalAlertManagerConfigs
- additionalAlertManagerConfigsSecret: {}
- # name:
- # key:
- # optional: false
- ## AdditionalAlertRelabelConfigs allows specifying Prometheus alert relabel configurations. Alert relabel configurations specified are appended
- ## to the configurations generated by the Prometheus Operator. Alert relabel configurations specified must have the form as specified in the
- ## official Prometheus documentation: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#alert_relabel_configs.
- ## As alert relabel configs are appended, the user is responsible to make sure it is valid. Note that using this feature may expose the
- ## possibility to break upgrades of Prometheus. It is advised to review Prometheus release notes to ensure that no incompatible alert relabel
- ## configs are going to break Prometheus after the upgrade.
- ##
- additionalAlertRelabelConfigs: []
- # - separator: ;
- # regex: prometheus_replica
- # replacement: $1
- # action: labeldrop
- ## If additional alert relabel configurations are already deployed in a single secret, or you want to manage
- ## them separately from the helm deployment, you can use this section.
- ## Expected values are the secret name and key
- ## Cannot be used with additionalAlertRelabelConfigs
- additionalAlertRelabelConfigsSecret: {}
- # name:
- # key:
- ## SecurityContext holds pod-level security attributes and common container settings.
- ## This defaults to non root user with uid 1000 and gid 2000.
- ## https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md
- ##
- securityContext:
- runAsGroup: 2000
- runAsNonRoot: true
- runAsUser: 1000
- fsGroup: 2000
- ## Priority class assigned to the Pods
- ##
- priorityClassName: ""
- ## Thanos configuration allows configuring various aspects of a Prometheus server in a Thanos environment.
- ## This section is experimental, it may change significantly without deprecation notice in any release.
- ## This is experimental and may change significantly without backward compatibility in any release.
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#thanosspec
- ##
- thanos: {}
- # secretProviderClass:
- # provider: gcp
- # parameters:
- # secrets: |
- # - resourceName: "projects/$PROJECT_ID/secrets/testsecret/versions/latest"
- # fileName: "objstore.yaml"
- # objectStorageConfigFile: /var/secrets/object-store.yaml
- ## Containers allows injecting additional containers. This is meant to allow adding an authentication proxy to a Prometheus pod.
- ## if using proxy extraContainer update targetPort with proxy container port
- containers: []
- # containers:
- # - name: oauth-proxy
- # image: quay.io/oauth2-proxy/oauth2-proxy:v7.3.0
- # args:
- # - --upstream=http://127.0.0.1:9093
- # - --http-address=0.0.0.0:8081
- # - ...
- # ports:
- # - containerPort: 8081
- # name: oauth-proxy
- # protocol: TCP
- # resources: {}
- ## InitContainers allows injecting additional initContainers. This is meant to allow doing some changes
- ## (permissions, dir tree) on mounted volumes before starting prometheus
- initContainers: []
- ## PortName to use for Prometheus.
- ##
- portName: "http-web"
- ## ArbitraryFSAccessThroughSMs configures whether configuration based on a service monitor can access arbitrary files
- ## on the file system of the Prometheus container e.g. bearer token files.
- arbitraryFSAccessThroughSMs: false
- ## OverrideHonorLabels if set to true overrides all user configured honor_labels. If HonorLabels is set in ServiceMonitor
- ## or PodMonitor to true, this overrides honor_labels to false.
- overrideHonorLabels: false
- ## OverrideHonorTimestamps allows to globally enforce honoring timestamps in all scrape configs.
- overrideHonorTimestamps: false
- ## IgnoreNamespaceSelectors if set to true will ignore NamespaceSelector settings from the podmonitor and servicemonitor
- ## configs, and they will only discover endpoints within their current namespace. Defaults to false.
- ignoreNamespaceSelectors: false
- ## EnforcedNamespaceLabel enforces adding a namespace label of origin for each alert and metric that is user created.
- ## The label value will always be the namespace of the object that is being created.
- ## Disabled by default
- enforcedNamespaceLabel: ""
- ## PrometheusRulesExcludedFromEnforce - list of prometheus rules to be excluded from enforcing of adding namespace labels.
- ## Works only if enforcedNamespaceLabel set to true. Make sure both ruleNamespace and ruleName are set for each pair
- ## Deprecated, use `excludedFromEnforcement` instead
- prometheusRulesExcludedFromEnforce: []
- ## ExcludedFromEnforcement - list of object references to PodMonitor, ServiceMonitor, Probe and PrometheusRule objects
- ## to be excluded from enforcing a namespace label of origin.
- ## Works only if enforcedNamespaceLabel set to true.
- ## See https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#objectreference
- excludedFromEnforcement: []
- ## QueryLogFile specifies the file to which PromQL queries are logged. Note that this location must be writable,
- ## and can be persisted using an attached volume. Alternatively, the location can be set to a stdout location such
- ## as /dev/stdout to log querie information to the default Prometheus log stream. This is only available in versions
- ## of Prometheus >= 2.16.0. For more details, see the Prometheus docs (https://prometheus.io/docs/guides/query-log/)
- queryLogFile: false
- ## EnforcedSampleLimit defines global limit on number of scraped samples that will be accepted. This overrides any SampleLimit
- ## set per ServiceMonitor or/and PodMonitor. It is meant to be used by admins to enforce the SampleLimit to keep overall
- ## number of samples/series under the desired limit. Note that if SampleLimit is lower that value will be taken instead.
- enforcedSampleLimit: false
- ## EnforcedTargetLimit defines a global limit on the number of scraped targets. This overrides any TargetLimit set
- ## per ServiceMonitor or/and PodMonitor. It is meant to be used by admins to enforce the TargetLimit to keep the overall
- ## number of targets under the desired limit. Note that if TargetLimit is lower, that value will be taken instead, except
- ## if either value is zero, in which case the non-zero value will be used. If both values are zero, no limit is enforced.
- enforcedTargetLimit: false
- ## Per-scrape limit on number of labels that will be accepted for a sample. If more than this number of labels are present
- ## post metric-relabeling, the entire scrape will be treated as failed. 0 means no limit. Only valid in Prometheus versions
- ## 2.27.0 and newer.
- enforcedLabelLimit: false
- ## Per-scrape limit on length of labels name that will be accepted for a sample. If a label name is longer than this number
- ## post metric-relabeling, the entire scrape will be treated as failed. 0 means no limit. Only valid in Prometheus versions
- ## 2.27.0 and newer.
- enforcedLabelNameLengthLimit: false
- ## Per-scrape limit on length of labels value that will be accepted for a sample. If a label value is longer than this
- ## number post metric-relabeling, the entire scrape will be treated as failed. 0 means no limit. Only valid in Prometheus
- ## versions 2.27.0 and newer.
- enforcedLabelValueLengthLimit: false
- ## AllowOverlappingBlocks enables vertical compaction and vertical query merge in Prometheus. This is still experimental
- ## in Prometheus so it may change in any upcoming release.
- allowOverlappingBlocks: false
- ## Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to
- ## be considered available. Defaults to 0 (pod will be considered available as soon as it is ready).
- minReadySeconds: 0
- # Required for use in managed kubernetes clusters (such as AWS EKS) with custom CNI (such as calico),
- # because control-plane managed by AWS cannot communicate with pods' IP CIDR and admission webhooks are not working
- # Use the host's network namespace if true. Make sure to understand the security implications if you want to enable it.
- # When hostNetwork is enabled, this will set dnsPolicy to ClusterFirstWithHostNet automatically.
- hostNetwork: false
- # HostAlias holds the mapping between IP and hostnames that will be injected
- # as an entry in the pod’s hosts file.
- hostAliases: []
- # - ip: 10.10.0.100
- # hostnames:
- # - a1.app.local
- # - b1.app.local
- additionalRulesForClusterRole: []
- # - apiGroups: [ "" ]
- # resources:
- # - nodes/proxy
- # verbs: [ "get", "list", "watch" ]
- additionalServiceMonitors: []
- ## Name of the ServiceMonitor to create
- ##
- # - name: ""
- ## Additional labels to set used for the ServiceMonitorSelector. Together with standard labels from
- ## the chart
- ##
- # additionalLabels: {}
- ## Service label for use in assembling a job name of the form <label value>-<port>
- ## If no label is specified, the service name is used.
- ##
- # jobLabel: ""
- ## labels to transfer from the kubernetes service to the target
- ##
- # targetLabels: []
- ## labels to transfer from the kubernetes pods to the target
- ##
- # podTargetLabels: []
- ## Label selector for services to which this ServiceMonitor applies
- ##
- # selector: {}
- ## Namespaces from which services are selected
- ##
- # namespaceSelector:
- ## Match any namespace
- ##
- # any: false
- ## Explicit list of namespace names to select
- ##
- # matchNames: []
- ## Endpoints of the selected service to be monitored
- ##
- # endpoints: []
- ## Name of the endpoint's service port
- ## Mutually exclusive with targetPort
- # - port: ""
- ## Name or number of the endpoint's target port
- ## Mutually exclusive with port
- # - targetPort: ""
- ## File containing bearer token to be used when scraping targets
- ##
- # bearerTokenFile: ""
- ## Interval at which metrics should be scraped
- ##
- # interval: 30s
- ## HTTP path to scrape for metrics
- ##
- # path: /metrics
- ## HTTP scheme to use for scraping
- ##
- # scheme: http
- ## TLS configuration to use when scraping the endpoint
- ##
- # tlsConfig:
- ## Path to the CA file
- ##
- # caFile: ""
- ## Path to client certificate file
- ##
- # certFile: ""
- ## Skip certificate verification
- ##
- # insecureSkipVerify: false
- ## Path to client key file
- ##
- # keyFile: ""
- ## Server name used to verify host name
- ##
- # serverName: ""
- additionalPodMonitors: []
- ## Name of the PodMonitor to create
- ##
- # - name: ""
- ## Additional labels to set used for the PodMonitorSelector. Together with standard labels from
- ## the chart
- ##
- # additionalLabels: {}
- ## Pod label for use in assembling a job name of the form <label value>-<port>
- ## If no label is specified, the pod endpoint name is used.
- ##
- # jobLabel: ""
- ## Label selector for pods to which this PodMonitor applies
- ##
- # selector: {}
- ## PodTargetLabels transfers labels on the Kubernetes Pod onto the target.
- ##
- # podTargetLabels: {}
- ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
- ##
- # sampleLimit: 0
- ## Namespaces from which pods are selected
- ##
- # namespaceSelector:
- ## Match any namespace
- ##
- # any: false
- ## Explicit list of namespace names to select
- ##
- # matchNames: []
- ## Endpoints of the selected pods to be monitored
- ## https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#podmetricsendpoint
- ##
- # podMetricsEndpoints: []
- ## Configuration for thanosRuler
- ## ref: https://thanos.io/tip/components/rule.md/
- ##
- thanosRuler:
- ## Deploy thanosRuler
- ##
- enabled: false
- ## Annotations for ThanosRuler
- ##
- annotations: {}
- ## Service account for ThanosRuler to use.
- ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
- ##
- serviceAccount:
- create: true
- name: ""
- annotations: {}
- ## Configure pod disruption budgets for ThanosRuler
- ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/#specifying-a-poddisruptionbudget
- ## This configuration is immutable once created and will require the PDB to be deleted to be changed
- ## https://github.com/kubernetes/kubernetes/issues/45398
- ##
- podDisruptionBudget:
- enabled: false
- minAvailable: 1
- maxUnavailable: ""
- ingress:
- enabled: false
- # For Kubernetes >= 1.18 you should specify the ingress-controller via the field ingressClassName
- # See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#specifying-the-class-of-an-ingress
- # ingressClassName: nginx
- annotations: {}
- labels: {}
- ## Hosts must be provided if Ingress is enabled.
- ##
- hosts: []
- # - thanosruler.domain.com
- ## Paths to use for ingress rules - one path should match the thanosruler.routePrefix
- ##
- paths: []
- # - /
- ## For Kubernetes >= 1.18 you should specify the pathType (determines how Ingress paths should be matched)
- ## See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#better-path-matching-with-path-types
- # pathType: ImplementationSpecific
- ## TLS configuration for ThanosRuler Ingress
- ## Secret must be manually created in the namespace
- ##
- tls: []
- # - secretName: thanosruler-general-tls
- # hosts:
- # - thanosruler.example.com
- ## Configuration for ThanosRuler service
- ##
- service:
- annotations: {}
- labels: {}
- clusterIP: ""
- ## Port for ThanosRuler Service to listen on
- ##
- port: 10902
- ## To be used with a proxy extraContainer port
- ##
- targetPort: 10902
- ## Port to expose on each node
- ## Only used if service.type is 'NodePort'
- ##
- nodePort: 30905
- ## List of IP addresses at which the Prometheus server service is available
- ## Ref: https://kubernetes.io/docs/user-guide/services/#external-ips
- ##
- ## Additional ports to open for ThanosRuler service
- additionalPorts: []
- externalIPs: []
- loadBalancerIP: ""
- loadBalancerSourceRanges: []
- ## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
- ##
- externalTrafficPolicy: Cluster
- ## Service type
- ##
- type: ClusterIP
- ## If true, create a serviceMonitor for thanosRuler
- ##
- serviceMonitor:
- ## Scrape interval. If not set, the Prometheus default scrape interval is used.
- ##
- interval: ""
- selfMonitor: true
- ## Additional labels
- ##
- additionalLabels: {}
- ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
- ##
- sampleLimit: 0
- ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
- ##
- targetLimit: 0
- ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
- ##
- labelLimit: 0
- ## 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.
- ##
- labelNameLengthLimit: 0
- ## 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.
- ##
- labelValueLengthLimit: 0
- ## proxyUrl: URL of a proxy that should be used for scraping.
- ##
- proxyUrl: ""
- ## scheme: HTTP scheme to use for scraping. Can be used with `tlsConfig` for example if using istio mTLS.
- scheme: ""
- ## tlsConfig: TLS configuration to use when scraping the endpoint. For example if using istio mTLS.
- ## Of type: https://github.com/coreos/prometheus-operator/blob/main/Documentation/api.md#tlsconfig
- tlsConfig: {}
- bearerTokenFile:
- ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
- ##
- metricRelabelings: []
- # - action: keep
- # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
- # sourceLabels: [__name__]
- ## RelabelConfigs to apply to samples before scraping
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
- ##
- relabelings: []
- # - sourceLabels: [__meta_kubernetes_pod_node_name]
- # separator: ;
- # regex: ^(.*)$
- # targetLabel: nodename
- # replacement: $1
- # action: replace
- ## Settings affecting thanosRulerpec
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#thanosrulerspec
- ##
- thanosRulerSpec:
- ## Standard object's metadata. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata
- ## Metadata Labels and Annotations gets propagated to the ThanosRuler pods.
- ##
- podMetadata: {}
- ## Image of ThanosRuler
- ##
- image:
- registry: quay.io
- repository: thanos/thanos
- tag: v0.30.2
- sha: ""
- ## Namespaces to be selected for PrometheusRules discovery.
- ## If nil, select own namespace. Namespaces to be selected for ServiceMonitor discovery.
- ## See https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#namespaceselector for usage
- ##
- ruleNamespaceSelector: {}
- ## If true, a nil or {} value for thanosRuler.thanosRulerSpec.ruleSelector will cause the
- ## prometheus resource to be created with selectors based on values in the helm deployment,
- ## which will also match the PrometheusRule resources created
- ##
- ruleSelectorNilUsesHelmValues: true
- ## PrometheusRules to be selected for target discovery.
- ## If {}, select all PrometheusRules
- ##
- ruleSelector: {}
- ## Example which select all PrometheusRules resources
- ## with label "prometheus" with values any of "example-rules" or "example-rules-2"
- # ruleSelector:
- # matchExpressions:
- # - key: prometheus
- # operator: In
- # values:
- # - example-rules
- # - example-rules-2
- #
- ## Example which select all PrometheusRules resources with label "role" set to "example-rules"
- # ruleSelector:
- # matchLabels:
- # role: example-rules
- ## Define Log Format
- # Use logfmt (default) or json logging
- logFormat: logfmt
- ## Log level for ThanosRuler to be configured with.
- ##
- logLevel: info
- ## Size is the expected size of the thanosRuler cluster. The controller will eventually make the size of the
- ## running cluster equal to the expected size.
- replicas: 1
- ## Time duration ThanosRuler shall retain data for. Default is '24h', and must match the regular expression
- ## [0-9]+(ms|s|m|h) (milliseconds seconds minutes hours).
- ##
- retention: 24h
- ## Interval between consecutive evaluations.
- ##
- evaluationInterval: ""
- ## Storage is the definition of how storage will be used by the ThanosRuler instances.
- ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/user-guides/storage.md
- ##
- storage: {}
- # volumeClaimTemplate:
- # spec:
- # storageClassName: gluster
- # accessModes: ["ReadWriteOnce"]
- # resources:
- # requests:
- # storage: 50Gi
- # selector: {}
- ## AlertmanagerConfig define configuration for connecting to alertmanager.
- ## Only available with Thanos v0.10.0 and higher. Maps to the alertmanagers.config Thanos Ruler arg.
- alertmanagersConfig: {}
- # - api_version: v2
- # http_config:
- # basic_auth:
- # username: some_user
- # password: some_pass
- # static_configs:
- # - alertmanager.thanos.io
- # scheme: http
- # timeout: 10s
- ## DEPRECATED. Define URLs to send alerts to Alertmanager. For Thanos v0.10.0 and higher, alertmanagersConfig should be used instead.
- ## Note: this field will be ignored if alertmanagersConfig is specified. Maps to the alertmanagers.url Thanos Ruler arg.
- # alertmanagersUrl:
- ## 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
- ##
- externalPrefix:
- ## 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,
- ## but the server serves requests under a different route prefix. For example for use with kubectl proxy.
- ##
- routePrefix: /
- ## ObjectStorageConfig configures object storage in Thanos. Alternative to
- ## ObjectStorageConfigFile, and lower order priority.
- objectStorageConfig: {}
- ## ObjectStorageConfigFile specifies the path of the object storage configuration file.
- ## When used alongside with ObjectStorageConfig, ObjectStorageConfigFile takes precedence.
- objectStorageConfigFile: ""
- ## QueryEndpoints defines Thanos querier endpoints from which to query metrics.
- ## Maps to the --query flag of thanos ruler.
- queryEndpoints: []
- ## Define configuration for connecting to thanos query instances. If this is defined, the queryEndpoints field will be ignored.
- ## Maps to the query.config CLI argument. Only available with thanos v0.11.0 and higher.
- queryConfig: {}
- ## Labels configure the external label pairs to ThanosRuler. A default replica
- ## label `thanos_ruler_replica` will be always added as a label with the value
- ## of the pod's name and it will be dropped in the alerts.
- labels: {}
- ## If set to true all actions on the underlying managed objects are not going to be performed, except for delete actions.
- ##
- paused: false
- ## Define which Nodes the Pods are scheduled on.
- ## ref: https://kubernetes.io/docs/user-guide/node-selection/
- ##
- nodeSelector: {}
- ## Define resources requests and limits for single Pods.
- ## ref: https://kubernetes.io/docs/user-guide/compute-resources/
- ##
- resources: {}
- # requests:
- # memory: 400Mi
- ## Pod anti-affinity can prevent the scheduler from placing Prometheus replicas on the same node.
- ## 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.
- ## The value "hard" means that the scheduler is *required* to not schedule two replica pods onto the same node.
- ## The value "" will disable pod anti-affinity so that no anti-affinity rules will be configured.
- ##
- podAntiAffinity: ""
- ## If anti-affinity is enabled sets the topologyKey to use for anti-affinity.
- ## This can be changed to, for example, failure-domain.beta.kubernetes.io/zone
- ##
- podAntiAffinityTopologyKey: kubernetes.io/hostname
- ## Assign custom affinity rules to the thanosRuler instance
- ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
- ##
- affinity: {}
- # nodeAffinity:
- # requiredDuringSchedulingIgnoredDuringExecution:
- # nodeSelectorTerms:
- # - matchExpressions:
- # - key: kubernetes.io/e2e-az-name
- # operator: In
- # values:
- # - e2e-az1
- # - e2e-az2
- ## If specified, the pod's tolerations.
- ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
- ##
- tolerations: []
- # - key: "key"
- # operator: "Equal"
- # value: "value"
- # effect: "NoSchedule"
- ## If specified, the pod's topology spread constraints.
- ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
- ##
- topologySpreadConstraints: []
- # - maxSkew: 1
- # topologyKey: topology.kubernetes.io/zone
- # whenUnsatisfiable: DoNotSchedule
- # labelSelector:
- # matchLabels:
- # app: thanos-ruler
- ## SecurityContext holds pod-level security attributes and common container settings.
- ## This defaults to non root user with uid 1000 and gid 2000. *v1.PodSecurityContext false
- ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
- ##
- securityContext:
- runAsGroup: 2000
- runAsNonRoot: true
- runAsUser: 1000
- fsGroup: 2000
- ## ListenLocal makes the ThanosRuler server listen on loopback, so that it does not bind against the Pod IP.
- ## Note this is only for the ThanosRuler UI, not the gossip communication.
- ##
- listenLocal: false
- ## Containers allows injecting additional containers. This is meant to allow adding an authentication proxy to an ThanosRuler pod.
- ##
- containers: []
- # Additional volumes on the output StatefulSet definition.
- volumes: []
- # Additional VolumeMounts on the output StatefulSet definition.
- volumeMounts: []
- ## InitContainers allows injecting additional initContainers. This is meant to allow doing some changes
- ## (permissions, dir tree) on mounted volumes before starting prometheus
- initContainers: []
- ## Priority class assigned to the Pods
- ##
- priorityClassName: ""
- ## PortName to use for ThanosRuler.
- ##
- portName: "web"
- ## ExtraSecret can be used to store various data in an extra secret
- ## (use it for example to store hashed basic auth credentials)
- extraSecret:
- ## if not set, name will be auto generated
- # name: ""
- annotations: {}
- data: {}
- # auth: |
- # foo:$apr1$OFG3Xybp$ckL0FHDAkoXYIlH9.cysT0
- # someoneelse:$apr1$DMZX2Z4q$6SbQIfyuLQd.xmo/P0m2c.
- ## 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.
- ##
- cleanPrometheusOperatorObjectNames: false
|