From 74cf7125ec4945ebce6df894b2a35230030eb627 Mon Sep 17 00:00:00 2001 From: Jonas von Andrian Date: Wed, 24 Jan 2018 17:30:39 +0100 Subject: [PATCH] Influxdb: Support graphite templates (#3333) * Influxdb: Support graphite templates * Fix comment indentation * Step up version --- stable/influxdb/Chart.yaml | 2 +- stable/influxdb/templates/config.yaml | 9 ++++++++- stable/influxdb/values.yaml | 3 +++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/stable/influxdb/Chart.yaml b/stable/influxdb/Chart.yaml index 98696e20cc..331e80061b 100755 --- a/stable/influxdb/Chart.yaml +++ b/stable/influxdb/Chart.yaml @@ -1,5 +1,5 @@ name: influxdb -version: 0.8.0 +version: 0.8.1 description: Scalable datastore for metrics, events, and real-time analytics. keywords: - influxdb diff --git a/stable/influxdb/templates/config.yaml b/stable/influxdb/templates/config.yaml index 62f863c6d4..f943e08903 100644 --- a/stable/influxdb/templates/config.yaml +++ b/stable/influxdb/templates/config.yaml @@ -84,7 +84,7 @@ data: unix-socket-enabled = {{ .Values.config.http.unix_socket_enabled }} bind-socket = "{{ .Values.config.http.bind_socket }}" - # TODO: allow multiple graphite listeners with templates + # TODO: allow multiple graphite listeners [[graphite]] enabled = {{ .Values.config.graphite.enabled }} @@ -98,6 +98,13 @@ data: consistency-level = "{{ .Values.config.graphite.consistency_level }}" separator = "{{ .Values.config.graphite.separator }}" udp-read-buffer = {{ .Values.config.graphite.udp_read_buffer | int64 }} + {{- if .Values.config.graphite.templates }} + templates = [ + {{- range .Values.config.graphite.templates }} + {{ quote . }}, + {{- end }} + ] + {{- end }} # TODO: allow multiple collectd listeners with templates diff --git a/stable/influxdb/values.yaml b/stable/influxdb/values.yaml index e5a95d7aee..bdab55967c 100644 --- a/stable/influxdb/values.yaml +++ b/stable/influxdb/values.yaml @@ -167,6 +167,9 @@ config: consistency_level: one separator: . udp_read_buffer: 0 + # Uncomment to define graphite templates + # templates: + # - "graphite.metric.*.*.* measurement.run" collectd: enabled: false bind_address: 25826