AETHER-1301 Add Elasticsearch datasources
Change-Id: I74c850b391aa02f881b6f966b6645695f44be1e9
diff --git a/monitoring/grafana-aether/templates/datasource-configmap.yaml b/monitoring/grafana-aether/templates/datasource-configmap.yaml
index 80e3f2e..d61fa99 100644
--- a/monitoring/grafana-aether/templates/datasource-configmap.yaml
+++ b/monitoring/grafana-aether/templates/datasource-configmap.yaml
@@ -21,6 +21,19 @@
isDefault: false
url: {{ .endpoint }}
{{- end }}
+{{- range .Values.elasticsearchDatasources }}
+ - name: {{ .name }}
+ url: {{ .endpoint }}
+ type: elasticsearch
+ access: proxy
+ database: "[fluentbit-]YYYY.MM.DD"
+ jsonData:
+ interval: Daily
+ timeField: "@timestamp"
+ esVersion: 70
+ logMessageField: log
+ logLevelField: logLevel
+{{- end }}
{{- if .Values.googleCloudMonitoring }}
- name: Google Cloud Monitoring
type: stackdriver