This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2019-11-08 12:49:28 +00:00
|
|
|
{{- if .Values.monitoring.enabled -}}
|
2019-11-08 11:24:02 +00:00
|
|
|
apiVersion: monitoring.coreos.com/v1
|
|
|
|
kind: ServiceMonitor
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: {{ include "passbook.name" . }}
|
|
|
|
helm.sh/chart: {{ include "passbook.chart" . }}
|
|
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
|
|
name: {{ include "passbook.fullname" . }}-web-monitoring
|
|
|
|
spec:
|
|
|
|
endpoints:
|
|
|
|
- basicAuth:
|
|
|
|
password:
|
|
|
|
name: {{ include "passbook.fullname" . }}-secret-key
|
|
|
|
key: secret_key
|
|
|
|
username:
|
|
|
|
name: {{ include "passbook.fullname" . }}-secret-key
|
|
|
|
key: monitoring_username
|
|
|
|
port: http
|
2020-01-17 09:55:11 +00:00
|
|
|
path: /metrics/
|
2019-11-08 12:49:28 +00:00
|
|
|
interval: 10s
|
2019-11-08 11:24:02 +00:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
k8s.passbook.io/component: web
|
2019-11-08 12:49:28 +00:00
|
|
|
{{- end }}
|