[stable/redis-ha] Updating Prometheus exporter support in for HAProxy (#18500)

* Updating exporting support in for HAProxy

Signed-off-by: Aaron Layfield <aaron.layfield@gmail.com>

* Bumping chart version

Signed-off-by: Aaron Layfield <aaron.layfield@gmail.com>
This commit is contained in:
Aaron Layfield
2019-11-11 17:22:05 -08:00
committed by Kubernetes Prow Robot
parent fc0a5e4f47
commit 5b58e698cf
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ keywords:
- redis
- keyvalue
- database
version: 3.11.3
version: 3.11.4
appVersion: 5.0.5
description: Highly available Kubernetes implementation of Redis
icon: https://upload.wikimedia.org/wikipedia/en/thumb/6/6b/Redis_Logo.svg/1200px-Redis_Logo.svg.png
@@ -21,9 +21,11 @@ spec:
app: {{ template "redis-ha.name" . }}-haproxy
release: {{ .Release.Name }}
annotations:
{{- if .Values.haproxy.exporter.enabled }}
prometheus.io/path: /metrics
prometheus.io/port: "9101"
prometheus.io/port: {{ default 9101 .Values.haproxy.exporter.port | toString }}
prometheus.io/scrape: "true"
{{- end }}
checksum/config: {{ print (include "config-haproxy.cfg" .) (include "config-haproxy_init.sh" .) | sha256sum }}
{{- if .Values.haproxy.annotations }}
{{ toYaml .Values.haproxy.annotations | indent 8 }}