github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/prometheus-community/kube-prometheus-stack/templates/prometheus/prometheus.yaml (about) 1 {{- if .Values.prometheus.enabled }} 2 apiVersion: monitoring.coreos.com/v1 3 kind: Prometheus 4 metadata: 5 name: {{ template "kube-prometheus-stack.prometheus.crname" . }} 6 namespace: {{ template "kube-prometheus-stack.namespace" . }} 7 labels: 8 app: {{ template "kube-prometheus-stack.name" . }}-prometheus 9 {{ include "kube-prometheus-stack.labels" . | indent 4 }} 10 {{- if .Values.prometheus.annotations }} 11 annotations: 12 {{ toYaml .Values.prometheus.annotations | indent 4 }} 13 {{- end }} 14 spec: 15 {{- if or .Values.prometheus.prometheusSpec.alertingEndpoints (and .Values.alertmanager.enabled .Values.prometheus.enableDefaultAlertingEndpoint) }} 16 alerting: 17 alertmanagers: 18 {{- if .Values.prometheus.prometheusSpec.alertingEndpoints }} 19 {{ toYaml .Values.prometheus.prometheusSpec.alertingEndpoints | indent 6 }} 20 {{- else if and .Values.alertmanager.enabled .Values.prometheus.enableDefaultAlertingEndpoint }} 21 - namespace: {{ template "kube-prometheus-stack.namespace" . }} 22 name: {{ template "kube-prometheus-stack.fullname" . }}-alertmanager 23 port: {{ .Values.alertmanager.alertmanagerSpec.portName }} 24 {{- if .Values.alertmanager.alertmanagerSpec.routePrefix }} 25 pathPrefix: "{{ .Values.alertmanager.alertmanagerSpec.routePrefix }}" 26 {{- end }} 27 apiVersion: {{ .Values.alertmanager.apiVersion }} 28 {{- end }} 29 {{- end }} 30 {{- if .Values.prometheus.prometheusSpec.apiserverConfig }} 31 apiserverConfig: 32 {{ toYaml .Values.prometheus.prometheusSpec.apiserverConfig | indent 4}} 33 {{- end }} 34 {{- if .Values.prometheus.prometheusSpec.image }} 35 {{- $registry := .Values.global.imageRegistry | default .Values.prometheus.prometheusSpec.image.registry -}} 36 {{- if and .Values.prometheus.prometheusSpec.image.tag .Values.prometheus.prometheusSpec.image.sha }} 37 image: "{{ $registry }}/{{ .Values.prometheus.prometheusSpec.image.repository }}:{{ .Values.prometheus.prometheusSpec.image.tag }}@sha256:{{ .Values.prometheus.prometheusSpec.image.sha }}" 38 {{- else if .Values.prometheus.prometheusSpec.image.sha }} 39 image: "{{ $registry }}/{{ .Values.prometheus.prometheusSpec.image.repository }}@sha256:{{ .Values.prometheus.prometheusSpec.image.sha }}" 40 {{- else if .Values.prometheus.prometheusSpec.image.tag }} 41 image: "{{ $registry }}/{{ .Values.prometheus.prometheusSpec.image.repository }}:{{ .Values.prometheus.prometheusSpec.image.tag }}" 42 {{- else }} 43 image: "{{ $registry }}/{{ .Values.prometheus.prometheusSpec.image.repository }}" 44 {{- end }} 45 version: {{ default .Values.prometheus.prometheusSpec.image.tag .Values.prometheus.prometheusSpec.version }} 46 {{- if .Values.prometheus.prometheusSpec.image.sha }} 47 sha: {{ .Values.prometheus.prometheusSpec.image.sha }} 48 {{- end }} 49 {{- end }} 50 {{- if .Values.prometheus.prometheusSpec.additionalArgs }} 51 additionalArgs: 52 {{ toYaml .Values.prometheus.prometheusSpec.additionalArgs | indent 4}} 53 {{- end -}} 54 {{- if .Values.prometheus.prometheusSpec.externalLabels }} 55 externalLabels: 56 {{ tpl (toYaml .Values.prometheus.prometheusSpec.externalLabels | indent 4) . }} 57 {{- end }} 58 {{- if .Values.prometheus.prometheusSpec.prometheusExternalLabelNameClear }} 59 prometheusExternalLabelName: "" 60 {{- else if .Values.prometheus.prometheusSpec.prometheusExternalLabelName }} 61 prometheusExternalLabelName: "{{ .Values.prometheus.prometheusSpec.prometheusExternalLabelName }}" 62 {{- end }} 63 {{- if .Values.prometheus.prometheusSpec.replicaExternalLabelNameClear }} 64 replicaExternalLabelName: "" 65 {{- else if .Values.prometheus.prometheusSpec.replicaExternalLabelName }} 66 replicaExternalLabelName: "{{ .Values.prometheus.prometheusSpec.replicaExternalLabelName }}" 67 {{- end }} 68 {{- if .Values.prometheus.prometheusSpec.enableRemoteWriteReceiver }} 69 enableRemoteWriteReceiver: {{ .Values.prometheus.prometheusSpec.enableRemoteWriteReceiver }} 70 {{- end }} 71 {{- if .Values.prometheus.prometheusSpec.externalUrl }} 72 externalUrl: "{{ tpl .Values.prometheus.prometheusSpec.externalUrl . }}" 73 {{- else if and .Values.prometheus.ingress.enabled .Values.prometheus.ingress.hosts }} 74 externalUrl: "http://{{ tpl (index .Values.prometheus.ingress.hosts 0) . }}{{ .Values.prometheus.prometheusSpec.routePrefix }}" 75 {{- else }} 76 externalUrl: http://{{ template "kube-prometheus-stack.fullname" . }}-prometheus.{{ template "kube-prometheus-stack.namespace" . }}:{{ .Values.prometheus.service.port }} 77 {{- end }} 78 {{- if .Values.prometheus.prometheusSpec.nodeSelector }} 79 nodeSelector: 80 {{ toYaml .Values.prometheus.prometheusSpec.nodeSelector | indent 4 }} 81 {{- end }} 82 paused: {{ .Values.prometheus.prometheusSpec.paused }} 83 replicas: {{ .Values.prometheus.prometheusSpec.replicas }} 84 shards: {{ .Values.prometheus.prometheusSpec.shards }} 85 logLevel: {{ .Values.prometheus.prometheusSpec.logLevel }} 86 logFormat: {{ .Values.prometheus.prometheusSpec.logFormat }} 87 listenLocal: {{ .Values.prometheus.prometheusSpec.listenLocal }} 88 enableAdminAPI: {{ .Values.prometheus.prometheusSpec.enableAdminAPI }} 89 {{- if .Values.prometheus.prometheusSpec.web }} 90 web: 91 {{ toYaml .Values.prometheus.prometheusSpec.web | indent 4 }} 92 {{- end }} 93 {{- if .Values.prometheus.prometheusSpec.exemplars }} 94 exemplars: 95 {{ toYaml .Values.prometheus.prometheusSpec.exemplars | indent 4 }} 96 {{- end }} 97 {{- if .Values.prometheus.prometheusSpec.enableFeatures }} 98 enableFeatures: 99 {{- range $enableFeatures := .Values.prometheus.prometheusSpec.enableFeatures }} 100 - {{ tpl $enableFeatures $ }} 101 {{- end }} 102 {{- end }} 103 {{- if .Values.prometheus.prometheusSpec.scrapeInterval }} 104 scrapeInterval: {{ .Values.prometheus.prometheusSpec.scrapeInterval }} 105 {{- end }} 106 {{- if .Values.prometheus.prometheusSpec.scrapeTimeout }} 107 scrapeTimeout: {{ .Values.prometheus.prometheusSpec.scrapeTimeout }} 108 {{- end }} 109 {{- if .Values.prometheus.prometheusSpec.evaluationInterval }} 110 evaluationInterval: {{ .Values.prometheus.prometheusSpec.evaluationInterval }} 111 {{- end }} 112 {{- if .Values.prometheus.prometheusSpec.resources }} 113 resources: 114 {{ toYaml .Values.prometheus.prometheusSpec.resources | indent 4 }} 115 {{- end }} 116 retention: {{ .Values.prometheus.prometheusSpec.retention | quote }} 117 {{- if .Values.prometheus.prometheusSpec.retentionSize }} 118 retentionSize: {{ .Values.prometheus.prometheusSpec.retentionSize | quote }} 119 {{- end }} 120 {{- if .Values.prometheus.prometheusSpec.tsdb }} 121 tsdb: 122 {{- if .Values.prometheus.prometheusSpec.tsdb.outOfOrderTimeWindow }} 123 outOfOrderTimeWindow: {{ .Values.prometheus.prometheusSpec.tsdb.outOfOrderTimeWindow }} 124 {{- end }} 125 {{- end }} 126 {{- if eq .Values.prometheus.prometheusSpec.walCompression false }} 127 walCompression: false 128 {{ else }} 129 walCompression: true 130 {{- end }} 131 {{- if .Values.prometheus.prometheusSpec.routePrefix }} 132 routePrefix: {{ .Values.prometheus.prometheusSpec.routePrefix | quote }} 133 {{- end }} 134 {{- if .Values.prometheus.prometheusSpec.secrets }} 135 secrets: 136 {{ toYaml .Values.prometheus.prometheusSpec.secrets | indent 4 }} 137 {{- end }} 138 {{- if .Values.prometheus.prometheusSpec.configMaps }} 139 configMaps: 140 {{ toYaml .Values.prometheus.prometheusSpec.configMaps | indent 4 }} 141 {{- end }} 142 serviceAccountName: {{ template "kube-prometheus-stack.prometheus.serviceAccountName" . }} 143 {{- if .Values.prometheus.prometheusSpec.serviceMonitorSelector }} 144 serviceMonitorSelector: 145 {{ toYaml .Values.prometheus.prometheusSpec.serviceMonitorSelector | indent 4 }} 146 {{ else if .Values.prometheus.prometheusSpec.serviceMonitorSelectorNilUsesHelmValues }} 147 serviceMonitorSelector: 148 matchLabels: 149 release: {{ $.Release.Name | quote }} 150 {{ else }} 151 serviceMonitorSelector: {} 152 {{- end }} 153 {{- if .Values.prometheus.prometheusSpec.serviceMonitorNamespaceSelector }} 154 serviceMonitorNamespaceSelector: 155 {{ toYaml .Values.prometheus.prometheusSpec.serviceMonitorNamespaceSelector | indent 4 }} 156 {{ else }} 157 serviceMonitorNamespaceSelector: {} 158 {{- end }} 159 {{- if .Values.prometheus.prometheusSpec.podMonitorSelector }} 160 podMonitorSelector: 161 {{ toYaml .Values.prometheus.prometheusSpec.podMonitorSelector | indent 4 }} 162 {{ else if .Values.prometheus.prometheusSpec.podMonitorSelectorNilUsesHelmValues }} 163 podMonitorSelector: 164 matchLabels: 165 release: {{ $.Release.Name | quote }} 166 {{ else }} 167 podMonitorSelector: {} 168 {{- end }} 169 {{- if .Values.prometheus.prometheusSpec.podMonitorNamespaceSelector }} 170 podMonitorNamespaceSelector: 171 {{ toYaml .Values.prometheus.prometheusSpec.podMonitorNamespaceSelector | indent 4 }} 172 {{ else }} 173 podMonitorNamespaceSelector: {} 174 {{- end }} 175 {{- if .Values.prometheus.prometheusSpec.probeSelector }} 176 probeSelector: 177 {{ toYaml .Values.prometheus.prometheusSpec.probeSelector | indent 4 }} 178 {{ else if .Values.prometheus.prometheusSpec.probeSelectorNilUsesHelmValues }} 179 probeSelector: 180 matchLabels: 181 release: {{ $.Release.Name | quote }} 182 {{ else }} 183 probeSelector: {} 184 {{- end }} 185 {{- if .Values.prometheus.prometheusSpec.probeNamespaceSelector }} 186 probeNamespaceSelector: 187 {{ toYaml .Values.prometheus.prometheusSpec.probeNamespaceSelector | indent 4 }} 188 {{ else }} 189 probeNamespaceSelector: {} 190 {{- end }} 191 {{- if (or .Values.prometheus.prometheusSpec.remoteRead .Values.prometheus.prometheusSpec.additionalRemoteRead) }} 192 remoteRead: 193 {{- if .Values.prometheus.prometheusSpec.remoteRead }} 194 {{ tpl (toYaml .Values.prometheus.prometheusSpec.remoteRead | indent 4) . }} 195 {{- end }} 196 {{- if .Values.prometheus.prometheusSpec.additionalRemoteRead }} 197 {{ toYaml .Values.prometheus.prometheusSpec.additionalRemoteRead | indent 4 }} 198 {{- end }} 199 {{- end }} 200 {{- if (or .Values.prometheus.prometheusSpec.remoteWrite .Values.prometheus.prometheusSpec.additionalRemoteWrite) }} 201 remoteWrite: 202 {{- if .Values.prometheus.prometheusSpec.remoteWrite }} 203 {{ tpl (toYaml .Values.prometheus.prometheusSpec.remoteWrite | indent 4) . }} 204 {{- end }} 205 {{- if .Values.prometheus.prometheusSpec.additionalRemoteWrite }} 206 {{ toYaml .Values.prometheus.prometheusSpec.additionalRemoteWrite | indent 4 }} 207 {{- end }} 208 {{- end }} 209 {{- if .Values.prometheus.prometheusSpec.securityContext }} 210 securityContext: 211 {{ toYaml .Values.prometheus.prometheusSpec.securityContext | indent 4 }} 212 {{- end }} 213 {{- if .Values.prometheus.prometheusSpec.ruleNamespaceSelector }} 214 ruleNamespaceSelector: 215 {{ toYaml .Values.prometheus.prometheusSpec.ruleNamespaceSelector | indent 4 }} 216 {{ else }} 217 ruleNamespaceSelector: {} 218 {{- end }} 219 {{- if not (has "agent" .Values.prometheus.prometheusSpec.enableFeatures) }} 220 {{- if .Values.prometheus.prometheusSpec.ruleSelector }} 221 ruleSelector: 222 {{ toYaml .Values.prometheus.prometheusSpec.ruleSelector | indent 4}} 223 {{- else if .Values.prometheus.prometheusSpec.ruleSelectorNilUsesHelmValues }} 224 ruleSelector: 225 matchLabels: 226 release: {{ $.Release.Name | quote }} 227 {{ else }} 228 ruleSelector: {} 229 {{- end }} 230 {{- end }} 231 {{- if .Values.prometheus.prometheusSpec.storageSpec }} 232 storage: 233 {{ tpl (toYaml .Values.prometheus.prometheusSpec.storageSpec | indent 4) . }} 234 {{- end }} 235 {{- if .Values.prometheus.prometheusSpec.podMetadata }} 236 podMetadata: 237 {{ tpl (toYaml .Values.prometheus.prometheusSpec.podMetadata | indent 4) . }} 238 {{- end }} 239 {{- if .Values.prometheus.prometheusSpec.query }} 240 query: 241 {{ toYaml .Values.prometheus.prometheusSpec.query | indent 4}} 242 {{- end }} 243 {{- if or .Values.prometheus.prometheusSpec.podAntiAffinity .Values.prometheus.prometheusSpec.affinity }} 244 affinity: 245 {{- if .Values.prometheus.prometheusSpec.affinity }} 246 {{ toYaml .Values.prometheus.prometheusSpec.affinity | indent 4 }} 247 {{- end }} 248 {{- if eq .Values.prometheus.prometheusSpec.podAntiAffinity "hard" }} 249 podAntiAffinity: 250 requiredDuringSchedulingIgnoredDuringExecution: 251 - topologyKey: {{ .Values.prometheus.prometheusSpec.podAntiAffinityTopologyKey }} 252 labelSelector: 253 matchExpressions: 254 - {key: app.kubernetes.io/name, operator: In, values: [prometheus]} 255 - {key: prometheus, operator: In, values: [{{ template "kube-prometheus-stack.prometheus.crname" . }}]} 256 {{- else if eq .Values.prometheus.prometheusSpec.podAntiAffinity "soft" }} 257 podAntiAffinity: 258 preferredDuringSchedulingIgnoredDuringExecution: 259 - weight: 100 260 podAffinityTerm: 261 topologyKey: {{ .Values.prometheus.prometheusSpec.podAntiAffinityTopologyKey }} 262 labelSelector: 263 matchExpressions: 264 - {key: app.kubernetes.io/name, operator: In, values: [prometheus]} 265 - {key: prometheus, operator: In, values: [{{ template "kube-prometheus-stack.prometheus.crname" . }}]} 266 {{- end }} 267 {{- end }} 268 {{- if .Values.prometheus.prometheusSpec.tolerations }} 269 tolerations: 270 {{ toYaml .Values.prometheus.prometheusSpec.tolerations | indent 4 }} 271 {{- end }} 272 {{- if .Values.prometheus.prometheusSpec.topologySpreadConstraints }} 273 topologySpreadConstraints: 274 {{ toYaml .Values.prometheus.prometheusSpec.topologySpreadConstraints | indent 4 }} 275 {{- end }} 276 {{- if .Values.global.imagePullSecrets }} 277 imagePullSecrets: 278 {{ include "kube-prometheus-stack.imagePullSecrets" . | trim | indent 4 }} 279 {{- end }} 280 {{- if .Values.prometheus.prometheusSpec.additionalScrapeConfigs }} 281 additionalScrapeConfigs: 282 name: {{ template "kube-prometheus-stack.fullname" . }}-prometheus-scrape-confg 283 key: additional-scrape-configs.yaml 284 {{- end }} 285 {{- if .Values.prometheus.prometheusSpec.additionalScrapeConfigsSecret.enabled }} 286 additionalScrapeConfigs: 287 name: {{ .Values.prometheus.prometheusSpec.additionalScrapeConfigsSecret.name }} 288 key: {{ .Values.prometheus.prometheusSpec.additionalScrapeConfigsSecret.key }} 289 {{- end }} 290 {{- if or .Values.prometheus.prometheusSpec.additionalAlertManagerConfigs .Values.prometheus.prometheusSpec.additionalAlertManagerConfigsSecret }} 291 additionalAlertManagerConfigs: 292 {{- if .Values.prometheus.prometheusSpec.additionalAlertManagerConfigs }} 293 name: {{ template "kube-prometheus-stack.fullname" . }}-prometheus-am-confg 294 key: additional-alertmanager-configs.yaml 295 {{- end }} 296 {{- if .Values.prometheus.prometheusSpec.additionalAlertManagerConfigsSecret }} 297 name: {{ .Values.prometheus.prometheusSpec.additionalAlertManagerConfigsSecret.name }} 298 key: {{ .Values.prometheus.prometheusSpec.additionalAlertManagerConfigsSecret.key }} 299 {{- if hasKey .Values.prometheus.prometheusSpec.additionalAlertManagerConfigsSecret "optional" }} 300 optional: {{ .Values.prometheus.prometheusSpec.additionalAlertManagerConfigsSecret.optional }} 301 {{- end }} 302 {{- end }} 303 {{- end }} 304 {{- if .Values.prometheus.prometheusSpec.additionalAlertRelabelConfigs }} 305 additionalAlertRelabelConfigs: 306 name: {{ template "kube-prometheus-stack.fullname" . }}-prometheus-am-relabel-confg 307 key: additional-alert-relabel-configs.yaml 308 {{- end }} 309 {{- if .Values.prometheus.prometheusSpec.additionalAlertRelabelConfigsSecret }} 310 additionalAlertRelabelConfigs: 311 name: {{ .Values.prometheus.prometheusSpec.additionalAlertRelabelConfigsSecret.name }} 312 key: {{ .Values.prometheus.prometheusSpec.additionalAlertRelabelConfigsSecret.key }} 313 {{- end }} 314 {{- if .Values.prometheus.prometheusSpec.containers }} 315 containers: 316 {{ toYaml .Values.prometheus.prometheusSpec.containers | indent 4 }} 317 {{- if and (.Values.prometheus.prometheusSpec.thanos) (eq .Values.prometheus.thanos.integration "sidecar") }} 318 - name: thanos-sidecar 319 securityContext: 320 privileged: false 321 {{- end }} 322 {{- end }} 323 {{- if .Values.prometheus.prometheusSpec.initContainers }} 324 initContainers: 325 {{ toYaml .Values.prometheus.prometheusSpec.initContainers | indent 4 }} 326 {{- end }} 327 {{- if .Values.prometheus.prometheusSpec.priorityClassName }} 328 priorityClassName: {{ .Values.prometheus.prometheusSpec.priorityClassName }} 329 {{- end }} 330 {{- if and (.Values.prometheus.prometheusSpec.thanos) (eq .Values.prometheus.thanos.integration "sidecar") }} 331 thanos: 332 {{ toYaml .Values.prometheus.prometheusSpec.thanos | indent 4 }} 333 {{- end }} 334 {{- if .Values.prometheus.prometheusSpec.disableCompaction }} 335 disableCompaction: {{ .Values.prometheus.prometheusSpec.disableCompaction }} 336 {{- end }} 337 portName: {{ .Values.prometheus.prometheusSpec.portName }} 338 {{- if .Values.prometheus.prometheusSpec.volumes }} 339 volumes: 340 {{ toYaml .Values.prometheus.prometheusSpec.volumes | indent 4 }} 341 {{- end }} 342 {{- if .Values.prometheus.prometheusSpec.volumeMounts }} 343 volumeMounts: 344 {{ toYaml .Values.prometheus.prometheusSpec.volumeMounts | indent 4 }} 345 {{- end }} 346 {{- if .Values.prometheus.prometheusSpec.arbitraryFSAccessThroughSMs }} 347 arbitraryFSAccessThroughSMs: 348 {{ toYaml .Values.prometheus.prometheusSpec.arbitraryFSAccessThroughSMs | indent 4 }} 349 {{- end }} 350 {{- if .Values.prometheus.prometheusSpec.overrideHonorLabels }} 351 overrideHonorLabels: {{ .Values.prometheus.prometheusSpec.overrideHonorLabels }} 352 {{- end }} 353 {{- if .Values.prometheus.prometheusSpec.overrideHonorTimestamps }} 354 overrideHonorTimestamps: {{ .Values.prometheus.prometheusSpec.overrideHonorTimestamps }} 355 {{- end }} 356 {{- if .Values.prometheus.prometheusSpec.ignoreNamespaceSelectors }} 357 ignoreNamespaceSelectors: {{ .Values.prometheus.prometheusSpec.ignoreNamespaceSelectors }} 358 {{- end }} 359 {{- if .Values.prometheus.prometheusSpec.enforcedNamespaceLabel }} 360 enforcedNamespaceLabel: {{ .Values.prometheus.prometheusSpec.enforcedNamespaceLabel }} 361 {{- $prometheusDefaultRulesExcludedFromEnforce := (include "rules.names" .) | fromYaml }} 362 prometheusRulesExcludedFromEnforce: 363 {{- range $prometheusDefaultRulesExcludedFromEnforce.rules }} 364 - ruleNamespace: "{{ template "kube-prometheus-stack.namespace" $ }}" 365 ruleName: "{{ printf "%s-%s" (include "kube-prometheus-stack.fullname" $) . | trunc 63 | trimSuffix "-" }}" 366 {{- end }} 367 {{- if .Values.prometheus.prometheusSpec.prometheusRulesExcludedFromEnforce }} 368 {{ toYaml .Values.prometheus.prometheusSpec.prometheusRulesExcludedFromEnforce | indent 4 }} 369 {{- end }} 370 excludedFromEnforcement: 371 {{- range $prometheusDefaultRulesExcludedFromEnforce.rules }} 372 - resource: prometheusrules 373 namespace: "{{ template "kube-prometheus-stack.namespace" $ }}" 374 name: "{{ printf "%s-%s" (include "kube-prometheus-stack.fullname" $) . | trunc 63 | trimSuffix "-" }}" 375 {{- end }} 376 {{- if .Values.prometheus.prometheusSpec.excludedFromEnforcement }} 377 {{ tpl (toYaml .Values.prometheus.prometheusSpec.excludedFromEnforcement | indent 4) . }} 378 {{- end }} 379 {{- end }} 380 {{- if .Values.prometheus.prometheusSpec.queryLogFile }} 381 queryLogFile: {{ .Values.prometheus.prometheusSpec.queryLogFile }} 382 {{- end }} 383 {{- if .Values.prometheus.prometheusSpec.enforcedSampleLimit }} 384 enforcedSampleLimit: {{ .Values.prometheus.prometheusSpec.enforcedSampleLimit }} 385 {{- end }} 386 {{- if .Values.prometheus.prometheusSpec.enforcedTargetLimit }} 387 enforcedTargetLimit: {{ .Values.prometheus.prometheusSpec.enforcedTargetLimit }} 388 {{- end }} 389 {{- if .Values.prometheus.prometheusSpec.enforcedLabelLimit }} 390 enforcedLabelLimit: {{ .Values.prometheus.prometheusSpec.enforcedLabelLimit }} 391 {{- end }} 392 {{- if .Values.prometheus.prometheusSpec.enforcedLabelNameLengthLimit }} 393 enforcedLabelNameLengthLimit: {{ .Values.prometheus.prometheusSpec.enforcedLabelNameLengthLimit }} 394 {{- end }} 395 {{- if .Values.prometheus.prometheusSpec.enforcedLabelValueLengthLimit}} 396 enforcedLabelValueLengthLimit: {{ .Values.prometheus.prometheusSpec.enforcedLabelValueLengthLimit }} 397 {{- end }} 398 {{- if .Values.prometheus.prometheusSpec.allowOverlappingBlocks }} 399 allowOverlappingBlocks: {{ .Values.prometheus.prometheusSpec.allowOverlappingBlocks }} 400 {{- end }} 401 {{- if .Values.prometheus.prometheusSpec.minReadySeconds }} 402 minReadySeconds: {{ .Values.prometheus.prometheusSpec.minReadySeconds }} 403 {{- end }} 404 hostNetwork: {{ .Values.prometheus.prometheusSpec.hostNetwork }} 405 {{- if .Values.prometheus.prometheusSpec.hostAliases }} 406 hostAliases: 407 {{ toYaml .Values.prometheus.prometheusSpec.hostAliases | indent 4 }} 408 {{- end }} 409 {{- end }}