mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/prometheus] allow for relabeling in the apiserver ServiceMonitor (#11015)
* Relablings for the API Server ServiceMonitor Signed-off-by: Arcadie Condrat <arcadie.condrat@gmail.com> * removed extra spaces Signed-off-by: Arcadie Condrat <arcadie.condrat@gmail.com> * version bump Signed-off-by: Arcadie Condrat <arcadie.condrat@gmail.com> * version bump Signed-off-by: Arcadie Condrat <arcadie.condrat@gmail.com> * version bump Signed-off-by: Arcadie Condrat <arcadie.condrat@gmail.com> * version bump Signed-off-by: Arcadie Condrat <arcadie.condrat@gmail.com> * version bump Signed-off-by: acondrat <arcadie.condrat@gmail.com> * version bump Signed-off-by: acondrat <arcadie.condrat@gmail.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
57e7476a38
commit
51b2fd57f5
@@ -9,7 +9,7 @@ name: prometheus-operator
|
||||
sources:
|
||||
- https://github.com/coreos/prometheus-operator
|
||||
- https://coreos.com/operators/prometheus
|
||||
version: 2.2.5
|
||||
version: 2.2.6
|
||||
appVersion: 0.26.0
|
||||
home: https://github.com/coreos/prometheus-operator
|
||||
keywords:
|
||||
|
||||
@@ -254,6 +254,7 @@ The following tables lists the configurable parameters of the prometheus-operato
|
||||
| Parameter | Description | Default |
|
||||
| ----- | ----------- | ------ |
|
||||
| `kubeApiServer.enabled` | Deploy `serviceMonitor` to scrape the Kubernetes API server | `true` |
|
||||
| `kubeApiServer.relabelings` | Relablings for the API Server ServiceMonitor | `[]` |
|
||||
| `kubeApiServer.tlsConfig.serverName` | Name of the server to use when validating TLS certificate | `kubernetes` |
|
||||
| `kubeApiServer.tlsConfig.insecureSkipVerify` | Skip TLS certificate validation when scraping | `false` |
|
||||
| `kubeApiServer.serviceMonitor.jobLabel` | The name of the label on the target service to use as the job name in prometheus | `component` |
|
||||
|
||||
@@ -12,6 +12,10 @@ spec:
|
||||
interval: 30s
|
||||
port: https
|
||||
scheme: https
|
||||
{{- if .Values.kubeApiServer.relabelings }}
|
||||
relabelings:
|
||||
{{ toYaml .Values.kubeApiServer.relabelings | indent 6 }}
|
||||
{{- end }}
|
||||
tlsConfig:
|
||||
caFile: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
|
||||
serverName: {{ .Values.kubeApiServer.tlsConfig.serverName }}
|
||||
|
||||
@@ -364,6 +364,18 @@ kubeApiServer:
|
||||
serverName: kubernetes
|
||||
insecureSkipVerify: false
|
||||
|
||||
## If your API endpoint address is not reachable (as in AKS) you can replace it with the kubernetes service
|
||||
##
|
||||
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
|
||||
|
||||
serviceMonitor:
|
||||
jobLabel: component
|
||||
selector:
|
||||
|
||||
Reference in New Issue
Block a user