mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/prometheus-operator] Scraping kubelet for /metrics/resource/v1alpha1 (#22586)
[stable/prometheus-operator] Fixing the template Signed-off-by: Mohsen <mohsen0@users.noreply.github.com>
This commit is contained in:
@@ -12,7 +12,7 @@ sources:
|
||||
- https://github.com/coreos/kube-prometheus
|
||||
- https://github.com/coreos/prometheus-operator
|
||||
- https://coreos.com/operators/prometheus
|
||||
version: 8.15.2
|
||||
version: 8.15.3
|
||||
appVersion: 0.38.1
|
||||
tillerVersion: ">=2.12.0"
|
||||
home: https://github.com/coreos/prometheus-operator
|
||||
|
||||
@@ -561,6 +561,9 @@ For a full list of configurable values please refer to the [Grafana chart](https
|
||||
| `kubelet.serviceMonitor.probes` | Enable scraping `/metrics/probes` from kubelet's service | `true` |
|
||||
| `kubelet.serviceMonitor.probesMetricRelabelings` | The `metric_relabel_configs` for scraping kubelet. | `` |
|
||||
| `kubelet.serviceMonitor.probesRelabelings` | The `relabel_configs` for scraping kubelet. | `[{"sourceLabels":["__metrics_path__"], "targetLabel":"metrics_path"}]` |
|
||||
| `kubelet.serviceMonitor.resource` | Enable scraping `/metrics/resource/v1alpha1` from kubelet's service | `true` |
|
||||
| `kubelet.serviceMonitor.resourceMetricRelabelings` | The `metric_relabel_configs` for scraping `/metrics/resource/v1alpha1`. | `` |
|
||||
| `kubelet.serviceMonitor.resourceRelabelings` | The `relabel_configs` for scraping cAdvisor. | `[{"sourceLabels":["__metrics_path__"], "targetLabel":"metrics_path"}]` |
|
||||
| `kubelet.serviceMonitor.https` | Enable scraping of the kubelet over HTTPS. For more information, see https://github.com/coreos/prometheus-operator/issues/926 | `true` |
|
||||
| `kubelet.serviceMonitor.interval` | Scrape interval. If not set, the Prometheus default scrape interval is used | `nil` |
|
||||
| `kubelet.serviceMonitor.metricRelabelings` | The `metric_relabel_configs` for scraping kubelet. | `` |
|
||||
|
||||
@@ -69,6 +69,19 @@ spec:
|
||||
relabelings:
|
||||
{{ toYaml .Values.kubelet.serviceMonitor.probesRelabelings | indent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Values.kubelet.serviceMonitor.resource }}
|
||||
- port: https-metrics
|
||||
scheme: https
|
||||
path: {{ .Values.kubelet.serviceMonitor.resourcePath }}
|
||||
{{- if .Values.kubelet.serviceMonitor.resourceMetricRelabelings }}
|
||||
metricRelabelings:
|
||||
{{ tpl (toYaml .Values.kubelet.serviceMonitor.resourceMetricRelabelings | indent 4) . }}
|
||||
{{- end }}
|
||||
{{- if .Values.kubelet.serviceMonitor.resourceRelabelings }}
|
||||
relabelings:
|
||||
{{ toYaml .Values.kubelet.serviceMonitor.resourceRelabelings | indent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
- port: http-metrics
|
||||
|
||||
@@ -173,6 +173,8 @@ alertmanager:
|
||||
# *Details:*
|
||||
# {{ range .Labels.SortedPairs }} • *{{ .Name }}:* `{{ .Value }}`
|
||||
# {{ end }}
|
||||
# {{ end }}
|
||||
# {{ end }}
|
||||
|
||||
ingress:
|
||||
enabled: false
|
||||
@@ -651,6 +653,11 @@ kubelet:
|
||||
##
|
||||
probes: true
|
||||
|
||||
## Enable scraping /metrics/resource from kubelet's service
|
||||
##
|
||||
resource: true
|
||||
# From kubernetes 1.18, /metrics/resource/v1alpha1 renamed to /metrics/resource
|
||||
resourcePath: "/metrics/resource/v1alpha1"
|
||||
## Metric relabellings to apply to samples before ingestion
|
||||
##
|
||||
cAdvisorMetricRelabelings: []
|
||||
@@ -702,6 +709,16 @@ kubelet:
|
||||
# replacement: $1
|
||||
# action: replace
|
||||
|
||||
resourceRelabelings:
|
||||
- sourceLabels: [__metrics_path__]
|
||||
targetLabel: metrics_path
|
||||
# - sourceLabels: [__meta_kubernetes_pod_node_name]
|
||||
# separator: ;
|
||||
# regex: ^(.*)$
|
||||
# targetLabel: nodename
|
||||
# replacement: $1
|
||||
# action: replace
|
||||
|
||||
metricRelabelings: []
|
||||
# - sourceLabels: [__name__, image]
|
||||
# separator: ;
|
||||
|
||||
Reference in New Issue
Block a user