diff --git a/charts/prometheus-to-sd/Chart.yaml b/charts/prometheus-to-sd/Chart.yaml index 861807c7..30bf1b90 100644 --- a/charts/prometheus-to-sd/Chart.yaml +++ b/charts/prometheus-to-sd/Chart.yaml @@ -9,4 +9,4 @@ maintainers: - name: acondrat email: arcadie.condrat@gmail.com name: prometheus-to-sd -version: 0.3.1 +version: 0.4.0 diff --git a/charts/prometheus-to-sd/templates/deployment.yaml b/charts/prometheus-to-sd/templates/deployment.yaml index 6f4d2b4b..ef589603 100644 --- a/charts/prometheus-to-sd/templates/deployment.yaml +++ b/charts/prometheus-to-sd/templates/deployment.yaml @@ -32,6 +32,9 @@ spec: {{- range $key, $value := .Values.metricsSources }} - --source={{ $key }}:{{ $value }} {{- end }} + {{- with .Values.monitoredResourceTypes }} + - --monitored-resource-types={{ . }} + {{- end }} resources: {{ toYaml .Values.resources | indent 12 }} {{- if .Values.nodeSelector }} diff --git a/charts/prometheus-to-sd/values.yaml b/charts/prometheus-to-sd/values.yaml index 187a48b1..c90b44d4 100644 --- a/charts/prometheus-to-sd/values.yaml +++ b/charts/prometheus-to-sd/values.yaml @@ -7,5 +7,7 @@ resources: {} port: 6060 metricsSources: kube-state-metrics: http://kube-state-metrics:8080 +# The monitored resource types to use, either the legacy 'gke_container', or the new 'k8s' +monitoredResourceTypes: gke_container nodeSelector: {} tolerations: []