diff --git a/stable/elasticsearch-exporter/Chart.yaml b/stable/elasticsearch-exporter/Chart.yaml index 8450f4d31c..8aef17597d 100644 --- a/stable/elasticsearch-exporter/Chart.yaml +++ b/stable/elasticsearch-exporter/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: Elasticsearch stats exporter for Prometheus name: elasticsearch-exporter -version: 1.5.0 +version: 1.6.0 appVersion: 1.0.2 home: https://github.com/justwatchcom/elasticsearch_exporter sources: diff --git a/stable/elasticsearch-exporter/README.md b/stable/elasticsearch-exporter/README.md index 20cc6bfdbb..cac99e37a0 100644 --- a/stable/elasticsearch-exporter/README.md +++ b/stable/elasticsearch-exporter/README.md @@ -60,7 +60,8 @@ Parameter | Description | Default `service.metricsPort.name` | name for the http service | `http` `service.annotations` | Annotations on the http service | `{}` `service.labels` | Additional labels for the service definition | `{}` -`es.uri` | address of the Elasticsearch node to connect to | `http://localhost:9200` +`env` | Extra environment variables passed to pod | `{}` +`es.uri` | address of the Elasticsearch node to connect to | `localhost:9200` `es.all` | if `true`, query stats for all nodes in the cluster, rather than just the node we connect to | `true` `es.indices` | if true, query stats for all indices in the cluster | `true` `es.timeout` | timeout for trying to get stats from Elasticsearch | `30s` diff --git a/stable/elasticsearch-exporter/templates/deployment.yaml b/stable/elasticsearch-exporter/templates/deployment.yaml index ad18705009..01d459eb6c 100644 --- a/stable/elasticsearch-exporter/templates/deployment.yaml +++ b/stable/elasticsearch-exporter/templates/deployment.yaml @@ -43,6 +43,13 @@ spec: {{- end }} containers: - name: {{ .Chart.Name }} + {{- if .Values.env }} + env: + {{- range $key, $value := .Values.env }} + - name: {{ $key }} + value: "{{ $value }}" + {{- end }} + {{- end }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} command: ["elasticsearch_exporter", diff --git a/stable/elasticsearch-exporter/values.yaml b/stable/elasticsearch-exporter/values.yaml index ff6c48bb1a..74b93fa3ea 100644 --- a/stable/elasticsearch-exporter/values.yaml +++ b/stable/elasticsearch-exporter/values.yaml @@ -44,6 +44,13 @@ service: annotations: {} labels: {} +## Extra environment variables that will be passed into the exporter pod +## example: +## env: +## KEY_1: value1 +## KEY_2: value2 +# env: + es: ## Address (host and port) of the Elasticsearch node we should connect to. ## This could be a local node (localhost:9200, for instance), or the address