update stackdriver-exporter to 0.6.0 with new options (#10142)

Signed-off-by: Artur Gadelshin <ar.gadelshin@gmail.com>
Signed-off-by: Torsten Walter <mail@torstenwalter.de>
This commit is contained in:
Artur Gadelshin
2020-10-26 16:49:54 +01:00
committed by Torsten Walter
parent 425d639f53
commit d353b5c1bb
4 changed files with 26 additions and 6 deletions
@@ -1,8 +1,8 @@
apiVersion: v1
description: Stackdriver exporter for Prometheus
name: stackdriver-exporter
version: 0.0.4
appVersion: 0.5.1
version: 0.0.5
appVersion: 0.6.0
home: https://www.stackdriver.com/
sources:
- https://github.com/frodenas/stackdriver_exporter/releases
@@ -60,8 +60,8 @@ Parameter | Description | Def
----------------------------------- | ------------------------------------ | --------------------------------
`replicaCount` | Desired number of pods | `1`
`restartPolicy` | Container restart policy | `Always`
`image.repository` | Container image repository | `justwatch/stackdriver_exporter`
`image.tag` | Container image tag | `1.0.2`
`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`
@@ -72,7 +72,7 @@ Parameter | Description | Def
`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`
`annoations` | Deployment annotations | `{}`
`annotations` | Deployment annotations | `{}`
Specify each parameter using the `--set key=value[,key=value]` argument to
`helm install`. For example,
@@ -47,6 +47,16 @@ spec:
value: {{ .Values.web.listenAddress | quote }}
- name: STACKDRIVER_EXPORTER_WEB_TELEMETRY_PATH
value: {{ .Values.web.path | quote }}
- name: STACKDRIVER_EXPORTER_MAX_RETRIES
value: {{ .Values.maxRetries | quote }}
- name: STACKDRIVER_EXPORTER_HTTP_TIMEOUT
value: {{ .Values.httpTimeout | quote }}
- name: STACKDRIVER_EXPORTER_MAX_BACKOFF_DURATION
value: {{ .Values.maxBackoff | quote }}
- name: STACKDRIVER_EXPORTER_BACKODFF_JITTER_BASE
value: {{ .Values.backoffJitter | quote }}
- name: STACKDRIVER_EXPORTER_RETRY_STATUSES
value: {{ .Values.retryStatuses | quote}}
resources:
{{ toYaml .Values.resources | indent 12 }}
ports:
@@ -6,7 +6,7 @@ restartPolicy: Always
image:
repository: frodenas/stackdriver-exporter
tag: v0.5.1
tag: v0.6.0
pullPolicy: IfNotPresent
resources: {}
@@ -25,6 +25,16 @@ 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
maxRetries: 0
# 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
backoffJitter: 1s
# The HTTP statuses that should trigger a retry
retryStatuses: 503
metrics:
# The prefixes to gather metrics for, we default to just CPU metrics.
typePrefixes: 'compute.googleapis.com/instance/cpu'