SEBA-772 Use voltha_kpi_broker value for kafka host
Change-Id: Ia171de80ef9cb95c6694b2685b525607c40e04e8
diff --git a/nem-monitoring/templates/_helpers.tpl b/nem-monitoring/templates/_helpers.tpl
new file mode 100644
index 0000000..c1565c1
--- /dev/null
+++ b/nem-monitoring/templates/_helpers.tpl
@@ -0,0 +1,36 @@
+{{/* vim: set filetype=mustache: */}}
+{{/*
+Copyright 2018-present Open Networking Foundation
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/}}
+
+{{- define "exporter.config" -}}
+---
+broker:
+ name: broker-name
+ host: {{ .Values.args.voltha_kpi_broker }}
+ description: The kafka broker
+ topics:
+ - onos.aaa.stats.kpis
+ - onos.kpis
+ - voltha.kpis
+logger:
+ loglevel: info
+ host: {{ .Values.args.voltha_kpi_broker }}
+target:
+ type: prometheus-target
+ name: http-server
+ port: 8080
+ description: http target for prometheus
+{{- end -}}