I'm not really sure how you want to use those features but, yeah, all the current examples only deal with kibana.
The elasticsearch-xpack python repo is what I'm using for ML to use in the way I needed. Using this repo, you should be able to develop your own ways to use Monitoring and Security. This code repo is available in Java, PhP, and many others as well.
I don't think you will find many examples online so you will need to put additional effort in accomplishing your goals without kibana.
Rohith