Merge "Kibana: Add support for arbitrary object definitions via overrides"

This commit is contained in:
Zuul 2020-05-20 00:46:46 +00:00 committed by Gerrit Code Review
commit bd1c867913
2 changed files with 10 additions and 7 deletions

@ -14,13 +14,14 @@ limitations under the License.
*/}}
set -ex
{{- range .Values.conf.create_kibana_indexes.indexes }}
{{- range $objectType, $indices := .Values.conf.create_kibana_indexes.indexes }}
{{- range $indices }}
curl -K- <<< "--user ${ELASTICSEARCH_USERNAME}:${ELASTICSEARCH_PASSWORD}" \
-XPOST "${KIBANA_ENDPOINT}/api/saved_objects/index-pattern/{{ . }}*" -H 'kbn-xsrf: true' \
-H 'Content-Type: application/json' -d \
'{"attributes":{"title":"{{ . }}-*","timeFieldName":"@timestamp"}}'
{{ end }}
{{- end }}
{{- end }}
curl -K- <<< "--user ${ELASTICSEARCH_USERNAME}:${ELASTICSEARCH_PASSWORD}" \
-XPOST "${KIBANA_ENDPOINT}/api/kibana/settings/defaultIndex" -H 'kbn-xsrf: true' \

@ -280,10 +280,12 @@ conf:
enabled: true
version: 7.1.0
indexes:
- logstash
- openstack
- journal
- kernel
base:
- logstash
- journal
- kernel
application:
- openstack
default_index: logstash
endpoints: