- Exec into any of the metric beat pod ( part of daemon set ) :
kubectl exec -it <metricbeat-pod-name> bash -n <namespace>
- Run the below command :
./metricbeat setup --dashboards -E setup.kibana.host=kibana-kibana:5601
- Setup.kibana.host is the value of kibana service name.
- If the shell is exiting with erro code 137 while running the above command, its getting OOM while loading the dashboards.
- In that case, increase the memory of metrcbeat daemonset for the timebeing and re-run the command.