Skip to content

Commit

Permalink
Merge pull request grafana#422 from daixiang0/add-health
Browse files Browse the repository at this point in the history
Add health check
  • Loading branch information
davkal authored Apr 1, 2019
2 parents c994823 + 3732814 commit f019e57
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
8 changes: 8 additions & 0 deletions production/helm/templates/promtail/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ spec:
name: http-metrics
securityContext:
{{- toYaml .Values.promtail.securityContext | nindent 12 }}
{{- if .Values.promtail.livenessProbe }}
livenessProbe:
{{- toYaml .Values.promtail.livenessProbe | nindent 12 }}
{{- end }}
{{- if .Values.promtail.readinessProbe }}
readinessProbe:
{{- toYaml .Values.promtail.readinessProbe | nindent 12 }}
{{- end }}
resources:
{{- toYaml .Values.promtail.resources | nindent 12 }}
nodeSelector:
Expand Down
20 changes: 20 additions & 0 deletions production/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,26 @@ promtail:
mountPath: /var/lib/docker/containers
readOnly: true

readinessProbe:
failureThreshold: 5
httpGet:
path: /metrics
port: http-metrics
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1

livenessProbe:
failureThreshold: 5
httpGet:
path: /metrics
port: http-metrics
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1

resources: {}
# limits:
# cpu: 200m
Expand Down

0 comments on commit f019e57

Please sign in to comment.