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

Commit

Permalink
PR #10142 update stack driver-exporter to 0.6.0 with new options intr…
Browse files Browse the repository at this point in the history
…oduces empty values for deployment env variables. Signed-off-by: Cristina Negrean <hello@cristina.tech>
  • Loading branch information
cristinanegrean committed Jan 2, 2019
1 parent 7d26539 commit 6bb71f3
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 25 deletions.
39 changes: 22 additions & 17 deletions stable/stackdriver-exporter/README.md
Expand Up @@ -56,23 +56,28 @@ deletes the release.
The following table lists the configurable parameters of the
Stackdriver-Exporter chart and their default values.

Parameter | Description | Default
----------------------------------- | ------------------------------------ | --------------------------------
`replicaCount` | Desired number of pods | `1`
`restartPolicy` | Container restart policy | `Always`
`image.repository` | Container image repository | `frodenas/stackdriver-exporter`
`image.tag` | Container image tag | `v0.6.0`
`image.pullPolicy` | Container image pull policy | `IfNotPresent`
`resources` | Resource requests & limits | `{}`
`service.type` | Type of service to create | `ClusterIP`
`service.httpPort` | Port for the http service | `9255`
`stackdriver.projectId` | GCP Project ID | ``
`stackdriver.metrics.typePrefixes` | Comma separated Metric Type prefixes | ``
`stackdriver.metrics.interval` | Metrics interval to request from GCP | `5m`
`stackdriver.metrics.offset` | Offset (into the past) to request | `0s`
`web.listenAddress` | Port to listen on | `9255`
`web.path` | Path under which to expose metrics | `/metrics`
`annotations` | Deployment annotations | `{}`
Parameter | Description | Default
----------------------------------- | ------------------------------------------------------------------------------- | --------------------------------
`replicaCount` | Desired number of pods | `1`
`restartPolicy` | Container restart policy | `Always`
`image.repository` | Container image repository | `frodenas/stackdriver-exporter`
`image.tag` | Container image tag | `v0.6.0`
`image.pullPolicy` | Container image pull policy | `IfNotPresent`
`resources` | Resource requests & limits | `{}`
`service.type` | Type of service to create | `ClusterIP`
`service.httpPort` | Port for the http service | `9255`
`stackdriver.projectId` | GCP Project ID | ``
`stackdriver.maxRetries` | Max number of retries that should be attempted on errors from Stackdriver | `0`
`stackdriver.httpTimeout` | How long should Stackdriver_exporter wait for a result from the Stackdriver API | `10s`
`stackdriver.maxBackoff` | Max time between each request in an exponential backoff scenario | `5s`
`stackdriver.backoffJitter` | The amount of jitter to introduce in an exponential backoff scenario | `1s`
`stackdriver.retryStatuses` | The HTTP statuses that should trigger a retry | `503`
`stackdriver.metrics.typePrefixes` | Comma separated Metric Type prefixes | `compute.googleapis.com/instance/cpu`
`stackdriver.metrics.interval` | Metrics interval to request from GCP | `5m`
`stackdriver.metrics.offset` | Offset (into the past) to request | `0s`
`web.listenAddress` | Port to listen on | `9255`
`web.path` | Path under which to expose metrics | `/metrics`
`annotations` | Deployment annotations | `{}`

Specify each parameter using the `--set key=value[,key=value]` argument to
`helm install`. For example,
Expand Down
10 changes: 5 additions & 5 deletions stable/stackdriver-exporter/templates/deployment.yaml
Expand Up @@ -48,15 +48,15 @@ spec:
- name: STACKDRIVER_EXPORTER_WEB_TELEMETRY_PATH
value: {{ .Values.web.path | quote }}
- name: STACKDRIVER_EXPORTER_MAX_RETRIES
value: {{ .Values.maxRetries | quote }}
value: {{ .Values.stackdriver.maxRetries | quote }}
- name: STACKDRIVER_EXPORTER_HTTP_TIMEOUT
value: {{ .Values.httpTimeout | quote }}
value: {{ .Values.stackdriver.httpTimeout | quote }}
- name: STACKDRIVER_EXPORTER_MAX_BACKOFF_DURATION
value: {{ .Values.maxBackoff | quote }}
value: {{ .Values.stackdriver.maxBackoff | quote }}
- name: STACKDRIVER_EXPORTER_BACKODFF_JITTER_BASE
value: {{ .Values.backoffJitter | quote }}
value: {{ .Values.stackdriver.backoffJitter | quote }}
- name: STACKDRIVER_EXPORTER_RETRY_STATUSES
value: {{ .Values.retryStatuses | quote}}
value: {{ .Values.stackdriver.retryStatuses | quote}}
resources:
{{ toYaml .Values.resources | indent 12 }}
ports:
Expand Down
6 changes: 3 additions & 3 deletions stable/stackdriver-exporter/values.yaml
Expand Up @@ -25,13 +25,13 @@ service:
stackdriver:
# The Google Project ID to gather metrics for
projectId: "FALSE"
# Max number of retries that should be attempted on 503 errors from stackdriver
# Max number of retries that should be attempted on 503 errors from Stackdriver
maxRetries: 0
# How long should stackdriver_exporter wait for a result from the Stackdriver API
# How long should Stackdriver_exporter wait for a result from the Stackdriver API
httpTimeout: 10s
# Max time between each request in an exp backoff scenario
maxBackoff: 5s
# The amount of jitter to introduce in a exp backoff scenario
# The amount of jitter to introduce in an exp backoff scenario
backoffJitter: 1s
# The HTTP statuses that should trigger a retry
retryStatuses: 503
Expand Down

0 comments on commit 6bb71f3

Please sign in to comment.