git clone [email protected]:genia-dev/vibraniumdome.git
cd vibraniumdome/vibraniumdome-opensearch
poetry install
docker-compose up
curl -v -u admin:admin -k https://localhost:9200/_cluster/health
open http://localhost:5601
poetry run python client_example.py
You can check the vibranium index was created succesfully here:
In open search the saved objects can be seen here: http://localhost:5601/app/management/opensearch-dashboards/objects
saved objects such as index pattern, saved searches, dashboards, visualization widgets etc are required for vibranium dashboard to work
it can be loaded to the index (overrite existing version) running this:
curl -X POST "http://localhost:5601/api/saved_objects/_import?overwrite=true" -H "kbn-xsrf: true" --form "[email protected]" -H "osd-xsrf: true" -k -u admin:admin
Important
Note regarding error: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
According to the docs, if you are running the OpenSearch in container, you need to configure the kernel parameter vm.max_map_count
to: 262144
, as the default is 65530
. The suggested solution not working in all environments, so the workaround, is to change it once in docker privileged
mode, then the future commands will be the higher value, the command to set new value is:
docker run --rm --privileged alpine sysctl -w vm.max_map_count=262144