You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2020/05/18 21:08:12 UTC
[GitHub] [couchdb-helm] gesellix commented on a change in pull request #10: Add prometheus metrics sidecar
gesellix commented on a change in pull request #10:
URL: https://github.com/apache/couchdb-helm/pull/10#discussion_r426893964
##########
File path: couchdb/templates/statefulset.yaml
##########
@@ -108,6 +112,40 @@ spec:
- name: database-storage
mountPath: /opt/couchdb-search/data
{{- end }}
+{{- if .Values.telemetry.enabled }}
+ - name: telemetry
+ image: "{{ .Values.telemetryImage.repository }}:{{ .Values.telemetryImage.tag }}"
+ imagePullPolicy: {{ .Values.telemetryImage.pullPolicy }}
+ ports:
+ - name: telemetry
+ containerPort: 9984
+ args: ["--couchdb.uri=http://localhost:5984"]
+ livenessProbe:
+ httpGet:
+ path: /metrics
+ port: 9984
+ readinessProbe:
+ httpGet:
+ path: /metrics
+ port: 9984
+ resources:
+{{ toYaml .Values.telemetry.resources | indent 12 }}
+ env:
+ - name: DATABASES
+ value: {{ .Values.telemetry.databases }}
+{{- if not .Values.allowAdminParty }}
+ - name: "COUCHDB.USERNAME"
+ valueFrom:
+ secretKeyRef:
+ name: {{ template "couchdb.fullname" . }}
+ key: adminUsername
+ - name: "COUCHDB.PASSWORD"
+ valueFrom:
+ secretKeyRef:
+ name: {{ template "couchdb.fullname" . }}
Review comment:
This one should be something like `"couchdb.defaultsecret"`?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org