Skip to content

Commit

Permalink
Prometheus
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktor Farcic committed Aug 22, 2018
1 parent 6c82aca commit 4e70e7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helm/go-demo-5/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ spec:
value: {{ template "helm.fullname" . }}-db
readinessProbe:
httpGet:
path: /demo/hello
path: /demo/hello?health=true
port: 8080
periodSeconds: 1
livenessProbe:
httpGet:
path: /demo/hello
path: /demo/hello?health=true
port: 8080
resources:
{{ toYaml .Values.resources | indent 10 }}
3 changes: 3 additions & 0 deletions helm/go-demo-5/templates/svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ metadata:
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
annotations:
prometheus.io/scrape: "true"
prometheus.io.port: "8080"
spec:
ports:
- port: 8080
Expand Down

0 comments on commit 4e70e7e

Please sign in to comment.