mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
add configmap and secret collectors (#10665)
Signed-off-by: Louise Champ <louise@livewyer.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
deca61feb5
commit
0af1318445
@@ -5,7 +5,7 @@ keywords:
|
||||
- metric
|
||||
- monitoring
|
||||
- prometheus
|
||||
version: 0.12.1
|
||||
version: 0.12.2
|
||||
appVersion: 1.4.0
|
||||
home: https://github.com/kubernetes/kube-state-metrics/
|
||||
sources:
|
||||
|
||||
@@ -29,6 +29,7 @@ $ helm install stable/kube-state-metrics
|
||||
| `tolerations` | Tolerations for pod assignment | [] |
|
||||
| `podAnnotations` | Annotations to be added to the pod | {} |
|
||||
| `resources` | kube-state-metrics resource requests and limits | {} |
|
||||
| `collectors.configmaps` | Enable the configmaps collector. | true |
|
||||
| `collectors.cronjobs` | Enable the cronjobs collector. | true |
|
||||
| `collectors.daemonsets` | Enable the daemonsets collector. | true |
|
||||
| `collectors.deployments` | Enable the deployments collector. | true |
|
||||
@@ -44,5 +45,6 @@ $ helm install stable/kube-state-metrics
|
||||
| `collectors.replicasets` | Enable the replicasets collector. | true |
|
||||
| `collectors.replicationcontrollers` | Enable the replicationcontrollers collector. | true |
|
||||
| `collectors.resourcequotas` | Enable the resourcequotas collector. | true |
|
||||
| `collectors.secrets` | Enable the secrets collector. | true |
|
||||
| `collectors.services` | Enable the services collector. | true |
|
||||
| `collectors.statefulsets` | Enable the statefulsets collector. | true |
|
||||
|
||||
@@ -9,6 +9,12 @@ metadata:
|
||||
release: {{ .Release.Name }}
|
||||
name: {{ template "kube-state-metrics.fullname" . }}
|
||||
rules:
|
||||
{{ if .Values.collectors.configmaps }}
|
||||
- apiGroups: [""]
|
||||
resources:
|
||||
- configmaps
|
||||
verbs: ["list", "watch"]
|
||||
{{ end -}}
|
||||
{{ if .Values.collectors.cronjobs }}
|
||||
- apiGroups: ["batch"]
|
||||
resources:
|
||||
@@ -99,6 +105,12 @@ rules:
|
||||
- resourcequotas
|
||||
verbs: ["list", "watch"]
|
||||
{{ end -}}
|
||||
{{ if .Values.collectors.secrets }}
|
||||
- apiGroups: [""]
|
||||
resources:
|
||||
- secrets
|
||||
verbs: ["list", "watch"]
|
||||
{{ end -}}
|
||||
{{ if .Values.collectors.services }}
|
||||
- apiGroups: [""]
|
||||
resources:
|
||||
|
||||
@@ -31,6 +31,9 @@ spec:
|
||||
containers:
|
||||
- name: {{ .Chart.Name }}
|
||||
args:
|
||||
{{ if .Values.collectors.configmaps }}
|
||||
- --collectors=configmaps
|
||||
{{ end }}
|
||||
{{ if .Values.collectors.cronjobs }}
|
||||
- --collectors=cronjobs
|
||||
{{ end }}
|
||||
@@ -76,6 +79,9 @@ spec:
|
||||
{{ if .Values.collectors.resourcequotas }}
|
||||
- --collectors=resourcequotas
|
||||
{{ end }}
|
||||
{{ if .Values.collectors.secrets }}
|
||||
- --collectors=secrets
|
||||
{{ end }}
|
||||
{{ if .Values.collectors.services }}
|
||||
- --collectors=services
|
||||
{{ end }}
|
||||
|
||||
@@ -38,6 +38,7 @@ podAnnotations: {}
|
||||
# Available collectors for kube-state-metrics. By default all available
|
||||
# collectors are enabled.
|
||||
collectors:
|
||||
configmaps: true
|
||||
cronjobs: true
|
||||
daemonsets: true
|
||||
deployments: true
|
||||
@@ -53,6 +54,7 @@ collectors:
|
||||
replicasets: true
|
||||
replicationcontrollers: true
|
||||
resourcequotas: true
|
||||
secrets: true
|
||||
services: true
|
||||
statefulsets: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user