Skip to content

Commit

Permalink
[kube-prometheus-stack] Add more informations to selector of addition…
Browse files Browse the repository at this point in the history
…alPodMonitors and additionalServiceMonitors (#4974)

* add more information to selector of additionalPodMonitors and additionalServiceMonitors

Signed-off-by: zhifanggao <[email protected]>

* remove space

Signed-off-by: gaozf <[email protected]>

---------

Signed-off-by: zhifanggao <[email protected]>
Signed-off-by: gaozf <[email protected]>
Co-authored-by: gaozf <[email protected]>
  • Loading branch information
zhifanggao and gaozf authored Nov 6, 2024
1 parent 686ceff commit 075658d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/kube-prometheus-stack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ name: kube-prometheus-stack
sources:
- https://github.com/prometheus-community/helm-charts
- https://github.com/prometheus-operator/kube-prometheus
version: 65.8.0
version: 65.8.1
appVersion: v0.77.2
kubeVersion: ">=1.19.0-0"
home: https://github.com/prometheus-operator/kube-prometheus
Expand Down
24 changes: 24 additions & 0 deletions charts/kube-prometheus-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4301,6 +4301,18 @@ prometheus:
## Label selector for services to which this ServiceMonitor applies
##
# selector: {}
## Example which selects all services to be monitored
## with label "monitoredby" with values any of "example-service-1" or "example-service-2"
# matchExpressions:
# - key: "monitoredby"
# operator: In
# values:
# - example-service-1
# - example-service-2

## label selector for services
##
# matchLabels: {}

## Namespaces from which services are selected
##
Expand Down Expand Up @@ -4401,6 +4413,18 @@ prometheus:
## Label selector for pods to which this PodMonitor applies
##
# selector: {}
## Example which selects all Pods to be monitored
## with label "monitoredby" with values any of "example-pod-1" or "example-pod-2"
# matchExpressions:
# - key: "monitoredby"
# operator: In
# values:
# - example-pod-1
# - example-pod-2

## label selector for pods
##
# matchLabels: {}

## PodTargetLabels transfers labels on the Kubernetes Pod onto the target.
##
Expand Down

0 comments on commit 075658d

Please sign in to comment.