[bitnami/kube-prometheus] Fix issue due to crds update (#16895)

* [bitnami/kube-prometheus] fix thanosrulers crd file missnaming issue

Signed-off-by: EtienneBarbier <etienne.barbier@atos.net>

* [bitnami/kube-prometheus] add scrapeConfigSelector and scrapeConfigNamespaceSelector options in values file

Signed-off-by: EtienneBarbier <etienne.barbier@atos.net>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

* [bitnami/kube-prometheus] add permissions on scrapeconfigs and prometheusagents in operator clusterrole

Signed-off-by: EtienneBarbier <etienne.barbier@atos.net>

* Bump kube-prometheus version to next minor

Signed-off-by: EtienneBarbier <etienne.barbier@atos.net>

---------

Signed-off-by: EtienneBarbier <etienne.barbier@atos.net>
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
Signed-off-by: Carlos Rodríguez Hernández <carlosrh@vmware.com>
Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
Co-authored-by: Carlos Rodríguez Hernández <carlosrh@vmware.com>
This commit is contained in:
Etienne Barbier
2023-05-31 10:36:22 +02:00
committed by GitHub
parent 04708485cd
commit 3c0a41b647
7 changed files with 206 additions and 6854 deletions

View File

@@ -32,4 +32,4 @@ maintainers:
name: kube-prometheus name: kube-prometheus
sources: sources:
- https://github.com/bitnami/charts/tree/main/bitnami/kube-prometheus - https://github.com/bitnami/charts/tree/main/bitnami/kube-prometheus
version: 8.11.0 version: 8.12.0

View File

@@ -309,6 +309,8 @@ The command removes all the Kubernetes components associated with the chart and
| `prometheus.podMonitorNamespaceSelector` | Namespaces to be selected for PodMonitor discovery | `{}` | | `prometheus.podMonitorNamespaceSelector` | Namespaces to be selected for PodMonitor discovery | `{}` |
| `prometheus.probeSelector` | Probes to be selected for target discovery. | `{}` | | `prometheus.probeSelector` | Probes to be selected for target discovery. | `{}` |
| `prometheus.probeNamespaceSelector` | Namespaces to be selected for Probe discovery | `{}` | | `prometheus.probeNamespaceSelector` | Namespaces to be selected for Probe discovery | `{}` |
| `prometheus.scrapeConfigSelector` | ScrapeConfig to be selected for target discovery. | `{}` |
| `prometheus.scrapeConfigNamespaceSelector` | Namespaces to be selected for ScrapeConfig discovery | `{}` |
| `prometheus.retention` | Metrics retention days | `10d` | | `prometheus.retention` | Metrics retention days | `10d` |
| `prometheus.retentionSize` | Maximum size of metrics | `""` | | `prometheus.retentionSize` | Maximum size of metrics | `""` |
| `prometheus.disableCompaction` | Disable the compaction of the Prometheus TSDB | `false` | | `prometheus.disableCompaction` | Disable the compaction of the Prometheus TSDB | `false` |

File diff suppressed because it is too large Load Diff

View File

@@ -1,4 +1,4 @@
# https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.63.0/example/prometheus-operator-crd/monitoring.coreos.com_thanosrulers.yaml # https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.65.1/example/prometheus-operator-crd/monitoring.coreos.com_thanosrulers.yaml
apiVersion: apiextensions.k8s.io/v1 apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
@@ -20,10 +20,24 @@ spec:
scope: Namespaced scope: Namespaced
versions: versions:
- additionalPrinterColumns: - additionalPrinterColumns:
- description: The version of Thanos Ruler
jsonPath: .spec.version
name: Version
type: string
- description: The number of desired replicas - description: The number of desired replicas
jsonPath: .spec.replicas jsonPath: .spec.replicas
name: Replicas name: Replicas
type: integer type: integer
- description: The number of ready replicas
jsonPath: .status.availableReplicas
name: Ready
type: integer
- jsonPath: .status.conditions[?(@.type == 'Reconciled')].status
name: Reconciled
type: string
- jsonPath: .status.conditions[?(@.type == 'Available')].status
name: Available
type: string
- jsonPath: .metadata.creationTimestamp - jsonPath: .metadata.creationTimestamp
name: Age name: Age
type: date type: date
@@ -1409,8 +1423,6 @@ spec:
type: integer type: integer
grpc: grpc:
description: GRPC specifies an action involving a GRPC port. description: GRPC specifies an action involving a GRPC port.
This is a beta field and requires enabling GRPCContainerProbe
feature gate.
properties: properties:
port: port:
description: Port number of the gRPC service. Number description: Port number of the gRPC service. Number
@@ -1611,8 +1623,6 @@ spec:
type: integer type: integer
grpc: grpc:
description: GRPC specifies an action involving a GRPC port. description: GRPC specifies an action involving a GRPC port.
This is a beta field and requires enabling GRPCContainerProbe
feature gate.
properties: properties:
port: port:
description: Port number of the gRPC service. Number description: Port number of the gRPC service. Number
@@ -1733,6 +1743,26 @@ spec:
format: int32 format: int32
type: integer type: integer
type: object type: object
resizePolicy:
description: Resources resize policy for the container.
items:
description: ContainerResizePolicy represents resource resize
policy for the container.
properties:
resourceName:
description: 'Name of the resource to which this resource
resize policy applies. Supported values: cpu, memory.'
type: string
restartPolicy:
description: Restart policy to apply when specified resource
is resized. If not specified, it defaults to NotRequired.
type: string
required:
- resourceName
- restartPolicy
type: object
type: array
x-kubernetes-list-type: atomic
resources: resources:
description: 'Compute Resources required by this container. description: 'Compute Resources required by this container.
Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/' Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
@@ -1741,7 +1771,8 @@ spec:
description: "Claims lists the names of resources, defined description: "Claims lists the names of resources, defined
in spec.resourceClaims, that are used by this container. in spec.resourceClaims, that are used by this container.
\n This is an alpha field and requires enabling the DynamicResourceAllocation \n This is an alpha field and requires enabling the DynamicResourceAllocation
feature gate. \n This field is immutable." feature gate. \n This field is immutable. It can only
be set for containers."
items: items:
description: ResourceClaim references one entry in PodSpec.ResourceClaims. description: ResourceClaim references one entry in PodSpec.ResourceClaims.
properties: properties:
@@ -1778,8 +1809,8 @@ spec:
description: 'Requests describes the minimum amount of compute description: 'Requests describes the minimum amount of compute
resources required. If Requests is omitted for a container, resources required. If Requests is omitted for a container,
it defaults to Limits if that is explicitly specified, it defaults to Limits if that is explicitly specified,
otherwise to an implementation-defined value. More info: otherwise to an implementation-defined value. Requests
https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/' cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
type: object type: object
type: object type: object
securityContext: securityContext:
@@ -1992,8 +2023,6 @@ spec:
type: integer type: integer
grpc: grpc:
description: GRPC specifies an action involving a GRPC port. description: GRPC specifies an action involving a GRPC port.
This is a beta field and requires enabling GRPCContainerProbe
feature gate.
properties: properties:
port: port:
description: Port number of the gRPC service. Number description: Port number of the gRPC service. Number
@@ -2888,8 +2917,6 @@ spec:
type: integer type: integer
grpc: grpc:
description: GRPC specifies an action involving a GRPC port. description: GRPC specifies an action involving a GRPC port.
This is a beta field and requires enabling GRPCContainerProbe
feature gate.
properties: properties:
port: port:
description: Port number of the gRPC service. Number description: Port number of the gRPC service. Number
@@ -3090,8 +3117,6 @@ spec:
type: integer type: integer
grpc: grpc:
description: GRPC specifies an action involving a GRPC port. description: GRPC specifies an action involving a GRPC port.
This is a beta field and requires enabling GRPCContainerProbe
feature gate.
properties: properties:
port: port:
description: Port number of the gRPC service. Number description: Port number of the gRPC service. Number
@@ -3212,6 +3237,26 @@ spec:
format: int32 format: int32
type: integer type: integer
type: object type: object
resizePolicy:
description: Resources resize policy for the container.
items:
description: ContainerResizePolicy represents resource resize
policy for the container.
properties:
resourceName:
description: 'Name of the resource to which this resource
resize policy applies. Supported values: cpu, memory.'
type: string
restartPolicy:
description: Restart policy to apply when specified resource
is resized. If not specified, it defaults to NotRequired.
type: string
required:
- resourceName
- restartPolicy
type: object
type: array
x-kubernetes-list-type: atomic
resources: resources:
description: 'Compute Resources required by this container. description: 'Compute Resources required by this container.
Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/' Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
@@ -3220,7 +3265,8 @@ spec:
description: "Claims lists the names of resources, defined description: "Claims lists the names of resources, defined
in spec.resourceClaims, that are used by this container. in spec.resourceClaims, that are used by this container.
\n This is an alpha field and requires enabling the DynamicResourceAllocation \n This is an alpha field and requires enabling the DynamicResourceAllocation
feature gate. \n This field is immutable." feature gate. \n This field is immutable. It can only
be set for containers."
items: items:
description: ResourceClaim references one entry in PodSpec.ResourceClaims. description: ResourceClaim references one entry in PodSpec.ResourceClaims.
properties: properties:
@@ -3257,8 +3303,8 @@ spec:
description: 'Requests describes the minimum amount of compute description: 'Requests describes the minimum amount of compute
resources required. If Requests is omitted for a container, resources required. If Requests is omitted for a container,
it defaults to Limits if that is explicitly specified, it defaults to Limits if that is explicitly specified,
otherwise to an implementation-defined value. More info: otherwise to an implementation-defined value. Requests
https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/' cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
type: object type: object
type: object type: object
securityContext: securityContext:
@@ -3471,8 +3517,6 @@ spec:
type: integer type: integer
grpc: grpc:
description: GRPC specifies an action involving a GRPC port. description: GRPC specifies an action involving a GRPC port.
This is a beta field and requires enabling GRPCContainerProbe
feature gate.
properties: properties:
port: port:
description: Port number of the gRPC service. Number description: Port number of the gRPC service. Number
@@ -3803,8 +3847,9 @@ spec:
type: string type: string
type: object type: object
portName: portName:
description: Port name used for the pods and governing service. This default: web
defaults to web description: Port name used for the pods and governing service. Defaults
to `web`.
type: string type: string
priorityClassName: priorityClassName:
description: Priority class assigned to the Pods description: Priority class assigned to the Pods
@@ -3870,7 +3915,8 @@ spec:
description: "Claims lists the names of resources, defined in description: "Claims lists the names of resources, defined in
spec.resourceClaims, that are used by this container. \n This spec.resourceClaims, that are used by this container. \n This
is an alpha field and requires enabling the DynamicResourceAllocation is an alpha field and requires enabling the DynamicResourceAllocation
feature gate. \n This field is immutable." feature gate. \n This field is immutable. It can only be set
for containers."
items: items:
description: ResourceClaim references one entry in PodSpec.ResourceClaims. description: ResourceClaim references one entry in PodSpec.ResourceClaims.
properties: properties:
@@ -3906,7 +3952,8 @@ spec:
description: 'Requests describes the minimum amount of compute description: 'Requests describes the minimum amount of compute
resources required. If Requests is omitted for a container, resources required. If Requests is omitted for a container,
it defaults to Limits if that is explicitly specified, otherwise it defaults to Limits if that is explicitly specified, otherwise
to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/' to an implementation-defined value. Requests cannot exceed Limits.
More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
type: object type: object
type: object type: object
retention: retention:
@@ -4214,7 +4261,7 @@ spec:
medium EmptyDir would be the minimum value between the SizeLimit medium EmptyDir would be the minimum value between the SizeLimit
specified here and the sum of memory limits of all containers specified here and the sum of memory limits of all containers
in a pod. The default is nil which means that the limit in a pod. The default is nil which means that the limit
is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir' is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir'
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true x-kubernetes-int-or-string: true
type: object type: object
@@ -4369,7 +4416,8 @@ spec:
defined in spec.resourceClaims, that are used defined in spec.resourceClaims, that are used
by this container. \n This is an alpha field by this container. \n This is an alpha field
and requires enabling the DynamicResourceAllocation and requires enabling the DynamicResourceAllocation
feature gate. \n This field is immutable." feature gate. \n This field is immutable. It
can only be set for containers."
items: items:
description: ResourceClaim references one entry description: ResourceClaim references one entry
in PodSpec.ResourceClaims. in PodSpec.ResourceClaims.
@@ -4408,8 +4456,8 @@ spec:
of compute resources required. If Requests is of compute resources required. If Requests is
omitted for a container, it defaults to Limits omitted for a container, it defaults to Limits
if that is explicitly specified, otherwise to if that is explicitly specified, otherwise to
an implementation-defined value. More info: an implementation-defined value. Requests cannot
https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/' exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
type: object type: object
type: object type: object
selector: selector:
@@ -4636,7 +4684,8 @@ spec:
defined in spec.resourceClaims, that are used by defined in spec.resourceClaims, that are used by
this container. \n This is an alpha field and requires this container. \n This is an alpha field and requires
enabling the DynamicResourceAllocation feature gate. enabling the DynamicResourceAllocation feature gate.
\n This field is immutable." \n This field is immutable. It can only be set for
containers."
items: items:
description: ResourceClaim references one entry description: ResourceClaim references one entry
in PodSpec.ResourceClaims. in PodSpec.ResourceClaims.
@@ -4675,7 +4724,8 @@ spec:
of compute resources required. If Requests is omitted of compute resources required. If Requests is omitted
for a container, it defaults to Limits if that is for a container, it defaults to Limits if that is
explicitly specified, otherwise to an implementation-defined explicitly specified, otherwise to an implementation-defined
value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/' value. Requests cannot exceed Limits. More info:
https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
type: object type: object
type: object type: object
selector: selector:
@@ -4785,7 +4835,7 @@ spec:
volume claim. If underlying persistent volume is being volume claim. If underlying persistent volume is being
resized then the Condition will be set to 'ResizeStarted'. resized then the Condition will be set to 'ResizeStarted'.
items: items:
description: PersistentVolumeClaimCondition contails description: PersistentVolumeClaimCondition contains
details about state of pvc details about state of pvc
properties: properties:
lastProbeTime: lastProbeTime:
@@ -4927,14 +4977,18 @@ spec:
type: object type: object
x-kubernetes-map-type: atomic x-kubernetes-map-type: atomic
matchLabelKeys: matchLabelKeys:
description: MatchLabelKeys is a set of pod label keys to select description: "MatchLabelKeys is a set of pod label keys to select
the pods over which spreading will be calculated. The keys the pods over which spreading will be calculated. The keys
are used to lookup values from the incoming pod labels, those are used to lookup values from the incoming pod labels, those
key-value labels are ANDed with labelSelector to select the key-value labels are ANDed with labelSelector to select the
group of existing pods over which spreading will be calculated group of existing pods over which spreading will be calculated
for the incoming pod. Keys that don't exist in the incoming for the incoming pod. The same key is forbidden to exist in
pod labels will be ignored. A null or empty list means only both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot
match against labelSelector. be set when LabelSelector isn't set. Keys that don't exist
in the incoming pod labels will be ignored. A null or empty
list means only match against labelSelector. \n This is a
beta field and requires the MatchLabelKeysInPodTopologySpread
feature gate to be enabled (enabled by default)."
items: items:
type: string type: string
type: array type: array
@@ -5069,6 +5123,48 @@ spec:
version: version:
description: Version of Thanos to be deployed. description: Version of Thanos to be deployed.
type: string type: string
volumeMounts:
description: VolumeMounts allows configuration of additional VolumeMounts
on the output StatefulSet definition. VolumeMounts specified will
be appended to other VolumeMounts in the ruler container, that are
generated as a result of StorageSpec objects.
items:
description: VolumeMount describes a mounting of a Volume within
a container.
properties:
mountPath:
description: Path within the container at which the volume should
be mounted. Must not contain ':'.
type: string
mountPropagation:
description: mountPropagation determines how mounts are propagated
from the host to container and the other way around. When
not set, MountPropagationNone is used. This field is beta
in 1.10.
type: string
name:
description: This must match the Name of a Volume.
type: string
readOnly:
description: Mounted read-only if true, read-write otherwise
(false or unspecified). Defaults to false.
type: boolean
subPath:
description: Path within the volume from which the container's
volume should be mounted. Defaults to "" (volume's root).
type: string
subPathExpr:
description: Expanded path within the volume from which the
container's volume should be mounted. Behaves similarly to
SubPath but environment variable references $(VAR_NAME) are
expanded using the container's environment. Defaults to ""
(volume's root). SubPathExpr and SubPath are mutually exclusive.
type: string
required:
- mountPath
- name
type: object
type: array
volumes: volumes:
description: Volumes allows configuration of additional volumes on description: Volumes allows configuration of additional volumes on
the output StatefulSet definition. Volumes specified will be appended the output StatefulSet definition. Volumes specified will be appended
@@ -5458,7 +5554,7 @@ spec:
medium EmptyDir would be the minimum value between the medium EmptyDir would be the minimum value between the
SizeLimit specified here and the sum of memory limits SizeLimit specified here and the sum of memory limits
of all containers in a pod. The default is nil which means of all containers in a pod. The default is nil which means
that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir' that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir'
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true x-kubernetes-int-or-string: true
type: object type: object
@@ -5630,7 +5726,8 @@ spec:
defined in spec.resourceClaims, that are used defined in spec.resourceClaims, that are used
by this container. \n This is an alpha field by this container. \n This is an alpha field
and requires enabling the DynamicResourceAllocation and requires enabling the DynamicResourceAllocation
feature gate. \n This field is immutable." feature gate. \n This field is immutable.
It can only be set for containers."
items: items:
description: ResourceClaim references one description: ResourceClaim references one
entry in PodSpec.ResourceClaims. entry in PodSpec.ResourceClaims.
@@ -5670,8 +5767,8 @@ spec:
amount of compute resources required. If Requests amount of compute resources required. If Requests
is omitted for a container, it defaults to is omitted for a container, it defaults to
Limits if that is explicitly specified, otherwise Limits if that is explicitly specified, otherwise
to an implementation-defined value. More info: to an implementation-defined value. Requests
https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/' cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
type: object type: object
type: object type: object
selector: selector:
@@ -6632,14 +6729,54 @@ spec:
type: object type: object
status: status:
description: 'Most recent observed status of the ThanosRuler cluster. description: 'Most recent observed status of the ThanosRuler cluster.
Read-only. Not included when requesting from the apiserver, only from Read-only. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status'
the ThanosRuler Operator API itself. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status'
properties: properties:
availableReplicas: availableReplicas:
description: Total number of available pods (ready for at least minReadySeconds) description: Total number of available pods (ready for at least minReadySeconds)
targeted by this ThanosRuler deployment. targeted by this ThanosRuler deployment.
format: int32 format: int32
type: integer type: integer
conditions:
description: The current state of the Alertmanager object.
items:
description: Condition represents the state of the resources associated
with the Prometheus, Alertmanager or ThanosRuler resource.
properties:
lastTransitionTime:
description: lastTransitionTime is the time of the last update
to the current status property.
format: date-time
type: string
message:
description: Human-readable message indicating details for the
condition's last transition.
type: string
observedGeneration:
description: ObservedGeneration represents the .metadata.generation
that the condition was set based upon. For instance, if `.metadata.generation`
is currently 12, but the `.status.conditions[].observedGeneration`
is 9, the condition is out of date with respect to the current
state of the instance.
format: int64
type: integer
reason:
description: Reason for the condition's last transition.
type: string
status:
description: Status of the condition.
type: string
type:
description: Type of the condition being reported.
type: string
required:
- lastTransitionTime
- status
- type
type: object
type: array
x-kubernetes-list-map-keys:
- type
x-kubernetes-list-type: map
paused: paused:
description: Represents whether any actions on the underlying managed description: Represents whether any actions on the underlying managed
objects are being performed. Only delete actions will be performed. objects are being performed. Only delete actions will be performed.
@@ -6671,4 +6808,5 @@ spec:
type: object type: object
served: true served: true
storage: true storage: true
subresources: {} subresources:
status: {}

View File

@@ -28,6 +28,8 @@ rules:
- servicemonitors.monitoring.coreos.com - servicemonitors.monitoring.coreos.com
- thanosrulers.monitoring.coreos.com - thanosrulers.monitoring.coreos.com
- probes.monitoring.coreos.com - probes.monitoring.coreos.com
- scrapeconfigs.monitoring.coreos.com
- prometheusagents.monitoring.coreos.com
resources: resources:
- customresourcedefinitions - customresourcedefinitions
verbs: verbs:
@@ -49,6 +51,10 @@ rules:
- podmonitors - podmonitors
- probes - probes
- prometheusrules - prometheusrules
- scrapeconfigs
- prometheusagent
- prometheusagents/finalizers
- prometheusagents/status
verbs: verbs:
- '*' - '*'
- apiGroups: - apiGroups:

View File

@@ -30,6 +30,11 @@ spec:
{{- else }} {{- else }}
probeSelector: {} probeSelector: {}
{{- end }} {{- end }}
{{- if .Values.prometheus.scrapeConfigSelector }}
scrapeConfigSelector: {{- include "common.tplvalues.render" (dict "value" .Values.prometheus.scrapeConfigSelector "context" $) | nindent 4 }}
{{- else }}
scrapeConfigSelector: {}
{{- end }}
alerting: alerting:
alertmanagers: alertmanagers:
{{- if .Values.prometheus.alertingEndpoints }} {{- if .Values.prometheus.alertingEndpoints }}
@@ -121,6 +126,11 @@ spec:
{{- else }} {{- else }}
probeNamespaceSelector: {} probeNamespaceSelector: {}
{{- end }} {{- end }}
{{- if .Values.prometheus.scrapeConfigNamespaceSelector }}
scrapeConfigNamespaceSelector: {{- include "common.tplvalues.render" (dict "value" .Values.prometheus.scrapeConfigNamespaceSelector "context" $) | nindent 4 }}
{{- else }}
scrapeConfigNamespaceSelector: {}
{{- end }}
enableRemoteWriteReceiver: {{ .Values.prometheus.enableRemoteWriteReceiver }} enableRemoteWriteReceiver: {{ .Values.prometheus.enableRemoteWriteReceiver }}
{{- if .Values.prometheus.remoteRead }} {{- if .Values.prometheus.remoteRead }}
remoteRead: {{- include "common.tplvalues.render" (dict "value" .Values.prometheus.remoteRead "context" $) | nindent 4 }} remoteRead: {{- include "common.tplvalues.render" (dict "value" .Values.prometheus.remoteRead "context" $) | nindent 4 }}

View File

@@ -952,6 +952,14 @@ prometheus:
## See https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#namespaceselector for usage ## See https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#namespaceselector for usage
## ##
probeNamespaceSelector: {} probeNamespaceSelector: {}
## @param prometheus.scrapeConfigSelector ScrapeConfig to be selected for target discovery.
## If {}, select all ScrapeConfig
##
scrapeConfigSelector: {}
## @param prometheus.scrapeConfigNamespaceSelector Namespaces to be selected for ScrapeConfig discovery
## See https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#namespaceselector for usage
##
scrapeConfigNamespaceSelector: {}
## @param prometheus.retention Metrics retention days ## @param prometheus.retention Metrics retention days
## ##
retention: 10d retention: 10d