Hi,
I have exported some dashboards (ndjson files) and I would like to have these exports imported in a new kibana-helm deployment. Is this possible? If yes, how can I do something like this?
Thank you in advance!
Hi,
I have exported some dashboards (ndjson files) and I would like to have these exports imported in a new kibana-helm deployment. Is this possible? If yes, how can I do something like this?
Thank you in advance!
Hi @Voula_Mikr,
Kibana dashboards import is not supported by design by Elastic Kibana Helm chart.
The best way (not tested) to do that would be to use a lifecycle postStart
hook with a script waiting that kibana is up and calling dashboard import API. postStart
hooks can be defined in chart values.yaml
.
Thank you for the prompt answer!
With dashboard import API I guess that in the script I should do a POST request (that has as body the json that i get with a get request ) to a url.
Is there a posible way to import ndjson files during the helm deployment and not doing POST request?
No that's not possible.
Ok thank you Julien
Hi,
I managed to make it work by making a post-install hook ( https://helm.sh/docs/topics/charts_hooks/ ) that creates a pod (I used alpine-curl) that runs a script which check the status of kibana to be "overall":{"state":"green" (in order kibana container to be Ready - not just the pod to be "Running") and then import the dashboards with curl POST .
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.