Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
prometheus-cloudwatch-exporter: Add containerPort, livenessProbe.path…
Browse files Browse the repository at this point in the history
… and readinessProbe.path variables (#22923)

Signed-off-by: Antony Perigault <[email protected]>
  • Loading branch information
aperigault authored Jul 27, 2020
1 parent 085678d commit 9b630cf
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion stable/prometheus-cloudwatch-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "0.8.0"
description: A Helm chart for prometheus cloudwatch-exporter
name: prometheus-cloudwatch-exporter
version: 0.8.2
version: 0.8.3
home: https://github.com/prometheus/cloudwatch_exporter
sources:
- https://github.com/prometheus/cloudwatch_exporter
Expand Down
1 change: 1 addition & 0 deletions stable/prometheus-cloudwatch-exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ The following table lists the configurable parameters of the Cloudwatch Exporter
| `image.tag` | Image tag | `cloudwatch_exporter-0.8.0` |
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `command` | Container entrypoint command | `[]` |
| `containerPort` | Application listening port | `9106` |
| `service.type` | Service type | `ClusterIP` |
| `service.port` | The service port | `80` |
| `service.portName` | The name of the service port | `http` |
Expand Down
10 changes: 5 additions & 5 deletions stable/prometheus-cloudwatch-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,22 +66,22 @@ spec:
{{- end }}
ports:
- name: container-port
containerPort: 9106
containerPort: {{ .Values.containerPort }}
protocol: TCP
livenessProbe:
httpGet:
path: /-/healthy
path: {{ .Values.livenessProbe.path }}
port: container-port
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds}}
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
successThreshold: {{ .Values.livenessProbe.successThreshold }}
failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
readinessProbe:
httpGet:
path: /-/ready
path: {{ .Values.readinessProbe.path }}
port: container-port
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds}}
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
successThreshold: {{ .Values.readinessProbe.successThreshold }}
Expand Down
4 changes: 4 additions & 0 deletions stable/prometheus-cloudwatch-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ image:

command: []

containerPort: 9106

service:
type: ClusterIP
port: 9106
Expand Down Expand Up @@ -113,13 +115,15 @@ affinity: {}

# Configurable health checks against the /healthy and /ready endpoints
livenessProbe:
path: /-/healthy
initialDelaySeconds: 30
periodSeconds: 5
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 3

readinessProbe:
path: /-/ready
initialDelaySeconds: 30
periodSeconds: 5
timeoutSeconds: 5
Expand Down

0 comments on commit 9b630cf

Please sign in to comment.