Commit 7a211dbe authored by Thomas Beermann's avatar Thomas Beermann
Browse files

add prometheus scrape annotations

parent 7832f18e
......@@ -20,6 +20,13 @@ spec:
app: {{ template "hifiscp.name" . }}-cerebrum
template:
metadata:
{{- if .Values.monitoring.enabled }}
annotations:
prometheus.io/scrape: "true"
prometheus.io/path: /actuator/prometheus
prometheus.io/scheme: http
prometheus.io/port: {{ .Values.webapp.service.targetPort | quote }}
{{- end }}
labels:
app: {{ template "hifiscp.name" . }}-cerebrum
chart: {{ template "hifiscp.chart" . }}
......
......@@ -20,6 +20,13 @@ spec:
app: {{ template "hifiscp.name" . }}-webapp
template:
metadata:
{{- if .Values.monitoring.enabled }}
annotations:
prometheus.io/scrape: "true"
prometheus.io/path: /actuator/prometheus
prometheus.io/scheme: http
prometheus.io/port: {{ .Values.webapp.service.targetPort | quote }}
{{- end }}
labels:
app: {{ template "hifiscp.name" . }}-webapp
chart: {{ template "hifiscp.chart" . }}
......
......@@ -114,6 +114,9 @@ webapp:
affinity: {}
monitoring:
enabled: true
ingress:
- name: "host1"
contextPath: "/"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment