Skip to content

Commit

Permalink
[prometheus-stackdriver-exporter] add support for secret labels (prom…
Browse files Browse the repository at this point in the history
  • Loading branch information
katsew authored Dec 2, 2021
1 parent badaf96 commit 65b615c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus-stackdriver-exporter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: Stackdriver exporter for Prometheus
name: prometheus-stackdriver-exporter
version: 1.11.0
version: 1.12.0
appVersion: 0.11.0
home: https://www.stackdriver.com/
sources:
Expand Down
3 changes: 3 additions & 0 deletions charts/prometheus-stackdriver-exporter/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ metadata:
app: {{ template "stackdriver-exporter.name" . }}
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
{{- if .Values.secret.labels }}
{{- toYaml .Values.secret.labels | nindent 4 }}
{{- end }}
type: Opaque
data:
credentials.json: {{ .Values.stackdriver.serviceAccountKey | b64enc | quote }}
Expand Down
3 changes: 3 additions & 0 deletions charts/prometheus-stackdriver-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ service:
httpPort: 9255
annotations: {}

secret:
labels: {}

stackdriver:
# The Google Project ID to gather metrics for
projectId: "FALSE"
Expand Down

0 comments on commit 65b615c

Please sign in to comment.