I’m a new prospective user of Sensu, wondering about its API possibilities.
I am developing an app which creates more webapp on-demand on a PaaS (OpenShift), and I’d like to start with simple web monitoring of my apps from an external server so the main app knows if something went wrong with an OpS instance (I could also use internal metrics using a sensu-client cartiridge but this is for later developments).
My idea was to have a side configuration of Sensu Server+Client colocated on a server, then install the check-http plugin there. Then I wanted to exploit Sensu’s API to create my checks… unfortunately I’m not sure if it’s actually possible.
Checks are written statically on a JSON file on the client as far as I understand, with static parameters (as per the doc, for instance a specific command line script). If I had only one static webapp to monitor, it would be easy, but it’s not my case.
It seems I would have to actually write a json file on the client in conf.d for each new webapp I create, so that check-http does the GET request on the specified url. It seems a bit heavyweight (esp. since it might also require a service restart, not sure about that)…
Is there a way to create one sample parameterizable check on the client, then through a POST create an instance of this check with the URL I want as parameter?