Skip to content

Commit

Permalink
[prometheus-to-sd]add optional monitoredResourceTypes (prometheus-com…
Browse files Browse the repository at this point in the history
…munity#591)

* add optional monitoredResourceTypes to prometheus-to-sd

Signed-off-by: takeshi.nakata <[email protected]>

* bumpup prometheus-to-sd chart version

Signed-off-by: takeshi.nakata <[email protected]>

* add monitoredResourceTypes and set default value to values.yaml

Signed-off-by: takeshi.nakata <[email protected]>

* bumpup prometheus-to-sd chart version to 0.4.0

Signed-off-by: takeshi.nakata <[email protected]>
  • Loading branch information
Takeshi Nakata authored Jan 20, 2021
1 parent d55480a commit ede3fb5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus-to-sd/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ maintainers:
- name: acondrat
email: [email protected]
name: prometheus-to-sd
version: 0.3.1
version: 0.4.0
3 changes: 3 additions & 0 deletions charts/prometheus-to-sd/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/prometheus-to-sd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: []

0 comments on commit ede3fb5

Please sign in to comment.